New: live data for Youpin, CSFloat, and Steam

POST /v1/live/csfloat/store

Returns one CSFloat seller's current listings.

Available on all plans, at 30 requests per minute on Developer and 180 on Scale. Each request is for one seller, with up to 50 listings per page.

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

Inputs#

FieldRequiredMeaning
seller_idYesThe seller's SteamID64, as a string of 17 digits.
listing_typeNobuy_now or auction. See Listing types. Without it, the request returns buy now listings.
market_hash_nameNoOne exact item name. Returns only that item from the store.
filtersNoSee Filters.
sortNoSee Sorting.
raw_responseNofalse returns structured rows instead of CSFloat's JSON.
{
  "seller_id": "76561198316699667",
  "filters": { "max_price": 100 },
  "sort": { "field": "price" }
}

The ID is the seller_id of a structured listings row, whose store_query is this request.

Filters#

Every filter is optional, and a listing must match all of them. A store takes fewer filters than listings.

FilterTypeMeaning
min_price, max_pricenumberThe listing price in USD, inclusive. Buy now listings only.
min_float, max_floatnumberThe float, from 0 to 1, inclusive.
paint_seedsinteger[]The paint seed to match. A store takes exactly one per request.
stickersobjectUp to 5 entries, each by name or id, and the listing must have all of them. A store doesn't take count, slot, or category.

market_parameters accepts no parameters on this operation.

Sorting#

sort.direction reverses a field that has a default direction.

sort.fieldDirectionOrder
priceAscending by defaultBy price. Buy now only.
floatAscending by defaultBy float.
created_atDescending onlyNewest listings first.

Request#

POSTapi.cs2.sh/v1/live/csfloat/store
curl -X POST https://api.cs2.sh/v1/live/csfloat/store \
  -H "Authorization: Bearer <<YOUR_API_KEY>>" \
  -H "Accept-Encoding: gzip" --compressed \
  -H "Content-Type: application/json" \
  -d '{
  "seller_id": "76561198316699667",
  "filters": {
    "max_price": 100
  },
  "sort": {
    "field": "price"
  },
  "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 CSFloat's own JSON, with prices in cents. With raw_response: false, data.listings[] holds one LiveListing per listing, with the same fields a listings row has. Auction rows add the auction object.

Notes#

CSFloat can return a cursor after the last listings, so the last page can be empty.

When you sort by float, page.total_count is null. CSFloat's total counts items that have no float, and a float sort leaves those out.

Errors#

A seller CSFloat doesn't have, or one whose store is private, returns 404 with details.field set to seller_id.

With listing_type set to auction, min_price, max_price, and sort.field price return 400, because auctions can't be filtered or sorted by price.

Other errors are the shared live errors.

POST /v1/live/csfloat/store/options#

Returns the valid choices for one field of a store request. These fields have choices:

fieldChoicesNeeds a seller
sortThe sorts availableNo
listing_typeThe listing typesNo

To get one listing type's choices, send listing_type with field. Each option's query is a store request with the choice applied. Without a seller_id in the options request, add one to query.body before you POST it.

{
  "listing_type": "auction",
  "field": "sort"
}

Sticker names come from the listings options path.

Request#

POSTapi.cs2.sh/v1/live/csfloat/store/options
curl -X POST https://api.cs2.sh/v1/live/csfloat/store/options \
  -H "Authorization: Bearer <<YOUR_API_KEY>>" \
  -H "Accept-Encoding: gzip" --compressed \
  -H "Content-Type: application/json" \
  -d '{
  "listing_type": "auction",
  "field": "sort"
}'

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).