Counter-Strike 2 developer API
CS2 API for inventories, prices and Inspect
Use one WOK key to read public CS2 items, search saved USD market observations and inspect supported individual assets. Steam AppID 730 uses inventory context 2. Match history, competitive rank and player performance are outside this API.
game=cs2Steam AppID 730 / context 2Updated
WOK APIcurl --fail-with-body -H "Authorization: Bearer $WOK_API_KEY" --get "https://woksteamapi.com/v1/inventory" --data-urlencode "steam_id=76561198090744629" --data-urlencode "game=cs2" --data-urlencode "top=0"Choose the endpoint for the data you need
One server-side WOK key authenticates every route below. An inventory request depends on Steam visibility; a saved catalog read does not depend on a player's profile.
| Task | WOK request | Response to check |
|---|---|---|
| Read public owned items | GET /v1/inventory?game=cs2 | status, items, items_total, unpriced and meta.cache_age. |
| Browse matching market names | GET /v1/items?game=cs2&q=... | Source-specific items[].prices[], market_hash_name and next_cursor. |
| Quote one exact item | GET /v1/price?game=cs2&name=... | Selected price, source, sources and updated_at. |
| Read observed daily history | GET /v1/price-history?game=cs2&name=... | Source and returned OHLC points; unobserved days are absent. |
| Decode supported CS2 assets | POST /v1/cs2/inspect | An optional add-on decodes supported links. A missing or legacy link is not inferred. |
| Read CS2 Market listing floats | GET /v1/cs2/market-listings | With the Inspect add-on, read paginated current offers with observed float, seed and native-currency price. Send the exact market_hash_name and follow next_start. See the listing guide. |
The catalog covers named items WOK has observed; it does not promise a current quote for every item or a complete past series. Read the history coverage rules before using sparse data in a chart.
Run an inventory read, catalog search and item quote
Set WOK_API_KEY on your server. The sample SteamID and item name show valid request syntax; visibility and saved price coverage can change.
WOK APIcurl --fail-with-body -H "Authorization: Bearer $WOK_API_KEY" --get "https://woksteamapi.com/v1/inventory" --data-urlencode "steam_id=76561198090744629" --data-urlencode "game=cs2" --data-urlencode "top=0"WOK APIcurl --fail-with-body -H "Authorization: Bearer $WOK_API_KEY" --get "https://woksteamapi.com/v1/items" --data-urlencode "game=cs2" --data-urlencode "q=AK-47 | Redline (Field-Tested)" --data-urlencode "limit=50"WOK APIcurl --fail-with-body -H "Authorization: Bearer $WOK_API_KEY" --get "https://woksteamapi.com/v1/price" --data-urlencode "game=cs2" --data-urlencode "name=AK-47 | Redline (Field-Tested)"q is a substring search, so compare market_hash_name exactly and follow next_cursor. name in the quote route is exact and returns 404 if WOK has no saved quote. Both catalog endpoints read local observations; neither scans a player inventory or forces a live market fetch.
CS2 market name, asset ID and Inspect answer different questions
A quote for a market hash name is a baseline for a class of items. It cannot identify the float, pattern or applied stickers of a particular asset.
GET /v1/inventory?game=cs2&top=0 returns grouped public items, counts, trade state and matched USD values. Read status first; private is not an empty inventory.
GET /v1/items?game=cs2&source=steam_market reads saved lowest-listing observations. Filter source=buff only when you explicitly need the separate BUFF163 catalog. Market names and timestamps must be checked per row.
With the Inspect add-on, include_inspect=1 exposes only valid Steam-supplied inspect actions. POST /v1/cs2/inspect decodes supported self-encoded links locally; legacy links can return legacy_gc_required. Neither result appraises a float premium.
Inspect links, asset IDs and Doppler examplesBUFF163 opt-in pricing rulesInventory value and fallback modesFACEIT data is a separate integration
Read status and freshness before displaying a value
CS2 saved observations can include Steam Market, sale medians and configured third-party sources. BUFF163 is opt-in: source=buff filters catalog rows, while price_source=buff with strict=1 changes inventory valuation. Auto does not include BUFF.
A native inventory may return HTTP 200 with status=private, notfound, limited or error. Do not display its total as a zero-value backpack. Authentication, quota and request validation have their own HTTP errors.
meta.cache_age describes the inventory snapshot. items[].priceupdatedat describes the selected saved price observation. These ages can differ because a cache hit can revalue the same item list locally.
The USD total includes only matched, counted items under WOK's value rules. Show unpriced and individual pricesource fields; market prices are estimates, not guaranteed sale proceeds.
CS2 inventory and Inspect referenceSteam Market source guidePrice quote and batch referenceOpenAPI contractRequest quotas