New: live data for Youpin, CSFloat, and Steam

POST /v1/live/steam/buy_orders

Returns Steam's current orderbook for one item: the highest buy order, the lowest sell order, the total quantity on each side, and the price levels on both sides. For every item's book, updated every ~3-10 minutes, use GET /v1/market/steam/latest.

Available on all plans, at 30 requests per minute on Developer and 180 on Scale. Each request is for one item.

Prices are in USD and aren't converted. Data is real-time.

Inputs#

FieldRequiredMeaning
market_hash_nameYesThe item, by its exact name with the wear.
raw_responseNofalse returns the structured book instead of Steam's JSON.
{
  "market_hash_name": "AK-47 | Redline (Field-Tested)"
}

Steam buy orders take no filters and no sorting. Steam reports its orderbook as totals per price, with no single orders and no float or sticker conditions.

Request#

POSTapi.cs2.sh/v1/live/steam/buy_orders
curl -X POST https://api.cs2.sh/v1/live/steam/buy_orders \
  -H "Authorization: Bearer <<YOUR_API_KEY>>" \
  -H "Accept-Encoding: gzip" --compressed \
  -H "Content-Type: application/json" \
  -d '{
  "market_hash_name": "AK-47 | Redline (Field-Tested)",
  "raw_response": false
}'

Response#

{
  "market": "string",
  "operation": "string",
  "data": null,
  "page": {
    "page_size": 0,
    "has_next": false,
    "next_cursor": "string",
    "cursor_expires_at": "string",
    "total_count": 0,
    "total_exact": false
  },
  "warnings": [
    {
      "code": "string",
      "field": "string",
      "message": "string"
    }
  ],
  "response_time": "string"
}

Response fields#

LiveResponse fields:

FieldTypeRequiredDescription
marketstringNoThe marketplace: youpin, csfloat, or steam.
operationstringNoThe operation that ran, such as listings.
dataobjectNoWith raw_response: true, the default, the marketplace's own JSON, unchanged. With raw_response: false, the operation's structured object, which is one of LiveListingsData, LiveListingDetailData, LiveBuyOrdersData, SteamBuyOrderBook, LiveFloatRankData, or LiveSearchData.
pageLivePage | nullNoPaging for the next request. null on operations that aren't paged.
warningsLiveRequestWarning[]NoNotes about the request itself. Absent when there are none.
response_timestring (date-time)NoWhen cs2.sh sent the response (UTC).

Response data#

By default, data is Steam's own JSON. With raw_response: false, data is one SteamBuyOrderBook:

FieldDescription
currencyUSD.
highest_buy_orderThe highest price a buyer is offering.
lowest_sell_orderThe lowest price the item is listed at.
buy_order_quantityHow many items buyers want, across all buy orders.
sell_order_quantityHow many items are listed for sale.
buy_levels[], sell_levels[]The price levels on each side. Each level has a price and the quantity at that price alone, not a running total.

lowest_sell_order and sell_levels[].price are the listing prices the Steam Market shows.

Errors#

A group ID returns 400, because the item must be an exact name. A Doppler or Gamma Doppler variant name returns 400 too, because Steam keeps one orderbook for all phases of an item. Send the base name instead.

If Steam has no item with that exact name, the request returns 404 with details.field set to market_hash_name. Other errors are the shared live errors.

POST /v1/live/steam/buy_orders/options#

Steam buy orders take no filters and no sorting, so this options path has nothing to list. Item names come from search or the schema.

Request#

POSTapi.cs2.sh/v1/live/steam/buy_orders/options
curl -X POST https://api.cs2.sh/v1/live/steam/buy_orders/options \
  -H "Authorization: Bearer <<YOUR_API_KEY>>" \
  -H "Accept-Encoding: gzip" --compressed \
  -H "Content-Type: application/json" \
  -d '{
  "field": "string",
  "contains": "string",
  "cursor": "string"
}'

Parameters#

FieldTypeRequiredDescription
fieldstringYesThe request field to list choices for, such as filters.weapon or filters.stickers.entries[].name.
containsstringNoText that a choice's label must contain, matched without regard to case.
cursorstringNoThe page.next_cursor from the previous page of choices, sent as the only field.

Response#

{
  "market": "string",
  "operation": "string",
  "field": "string",
  "availability": "string",
  "completeness": "string",
  "options": [
    {
      "label": "string",
      "query": {
        "path": "string",
        "body": null
      }
    }
  ],
  "metadata": null,
  "page": {
    "page_size": 0,
    "has_next": false,
    "next_cursor": "string",
    "cursor_expires_at": "string",
    "total_count": 0,
    "total_exact": false
  },
  "response_time": "string"
}

Response fields#

LiveOptionsResponse fields:

FieldTypeRequiredDescription
marketstringNoThe marketplace.
operationstringNoThe data operation the choices apply to.
fieldstringNoThe request field the choices are for.
availabilitystringNoWhether choices could be loaded for this request.
completenessstringNocomplete when the list holds every accepted value. partial when it holds suggestions, and other values may also work.
optionsLiveOption[]NoThe choices.
metadataobjectNoInformation about the choice list, such as when it was fetched.
pageLivePageNoPaging for long choice lists.
response_timestring (date-time)NoWhen cs2.sh sent the response (UTC).