Common tasks

Query one item

Get the quotes of one item, narrow them by market, side, and currency, and tell an empty result from a missing item.

Use GET /prices when you need the quotes of one item and want to narrow them by market, side, or currency.

Before you begin, complete Your first request. The command below uses the CSCHEAP_API_KEY environment variable set there. Check Request costs before you run repeated requests.

Send a filtered request

curl --get 'https://api.cs.cheap/prices' \
  --header "Authorization: Bearer $CSCHEAP_API_KEY" \
  --data-urlencode 'app_id=730' \
  --data-urlencode 'market_hash_name=AK-47 | Redline (Field-Tested)' \
  --data-urlencode 'markets=BUFF,UUYP' \
  --data-urlencode 'side=ask' \
  --data-urlencode 'currency=USD'

This command selects sell-listing quotes from BUFF and UUYP. To verify the result, check data.markets. Each returned row matches those filters.

Choose filters

market_hash_name is required. URL-encode the item name, and send your API key in the Authorization header. The other parameters are optional.

ParameterUse
app_idSet it to query a game other than the default 730.
marketsA comma-separated list of uppercase market codes, such as BUFF,UUYP.
sideask, bid, mid, or all. The default is all.
currencyThe currency of the converted amounts (buy_amount, sale_amount, payout_amount) and of the CSCP valuation.

currency accepts any official currency code. It defaults to the base currency of your account, and to USD when no base currency is set. Market prices stay in the currency of each market.

For all constraints, see the Get prices for one item reference.

Interpret empty results

What you seeWhat it means
404The item has no price rows for the requested app_id.
200 with an empty markets arrayThe item exists, but your filters exclude all its rows.

A 200 with an empty markets array is a successful request and follows the normal billing rule. Remove the filters to tell the two cases apart.

Next steps