New: live data for Youpin, CSFloat, and Steam

GET /v1/account

Returns your API key's plan, its request limits, each live limit and what's left of it, and every /v1 endpoint with whether the key can call it.

Available on all plans, at 10 requests per second. It doesn't count toward the live limits or use a demo key's live requests.

Request#

GETapi.cs2.sh/v1/account
curl https://api.cs2.sh/v1/account \
  -H "Authorization: Bearer <<YOUR_API_KEY>>" \
  -H "Accept-Encoding: gzip" --compressed

Response#

{
  "plan": "developer",
  "key": {
    "type": "paid",
    "expires_at": null
  },
  "limits": {
    "requests_per_second": 10,
    "live_requests_per_minute": {
      "youpin/listings": 6,
      "csfloat/listings": 6,
      "steam/listings": 40
    }
  },
  "live": {
    "youpin/listings": {
      "remaining": 6,
      "resets_at": "2026-11-30T05:43:35Z"
    },
    "csfloat/listings": {
      "remaining": 5,
      "resets_at": "2026-11-30T05:43:45Z"
    },
    "steam/listings": {
      "remaining": 40,
      "resets_at": "2026-11-30T05:43:35Z"
    }
  },
  "endpoints": [
    {
      "method": "GET",
      "path": "/v1/account",
      "available": true
    },
    {
      "method": "POST",
      "path": "/v1/prices/latest",
      "available": true
    },
    {
      "method": "POST",
      "path": "/v1/live/csfloat/listings",
      "available": true
    },
    {
      "method": "POST",
      "path": "/v1/sales/csfloat",
      "available": false,
      "plan": "scale"
    }
  ]
}

Response fields#

AccountResponse fields:

FieldTypeRequiredDescription
planstringYesAllowed: DEMO, developer, scale, enterprise. The key's plan. A demo key's plan is DEMO.
keyobjectYesThe API key that made the request.
limitsobjectYesYour account's request limits.
liveRecord<string, object>NoWhat's left of each live limit now, with the same keys as limits.live_requests_per_minute. Absent on a demo key.
live_demoobjectNoA demo key's live requests. Present only on a demo key.
endpointsobject[]YesEvery /v1 endpoint, with each live operation as its own path.

The sample response is shortened to three live operations and four endpoints. A real response lists every live limit and every endpoint.

Response data#

FieldMeaning
key.typedemo for a free 2-day demo key, otherwise paid.
key.expires_atWhen a demo key expires. null for a paid key.
limits.requests_per_secondRequests per second, shared by every key on your account. Live requests don't count toward it.
limits.live_requests_per_minuteEach live operation's per-minute limit, keyed by <market>/<operation>, such as csfloat/listings. <market>/options is the one limit that marketplace's /options paths share. Absent on a demo key.
live.<key>.remainingRequests you can send now.
live.<key>.resets_atWhen the limit is full again. Limits refill continuously.
live_demo.limitLive requests a demo key gets in total.
live_demo.remainingLive requests the demo key has left.
live_demo.requests_per_minuteLive requests a demo key can send per minute.
endpoints[].method, endpoints[].pathThe endpoint's HTTP method and path. Each live operation is its own path.
endpoints[].availableWhether the key's plan includes the endpoint. A demo key with no live requests left still shows the live endpoints as available.
endpoints[].planThe lowest plan that includes the endpoint. Present only when available is false.

Errors#

The request returns 400 validation_error with details.code set to unexpected_query_parameters when it has a query string, or to unexpected_body when it has a body.

Other errors are the shared request errors.