{
  "schemaVersion": "1.0",
  "name": "cs2.sh Price Data API",
  "description": "Read-only REST API for Counter-Strike 2 (CS2) item market data: current and historical prices, OHLC candles, live Youpin, CSFloat, and Steam listings, search, buy orders, and stores, individual CSFloat sales, liquidity rankings and estimated sale times, multi-year archives, BUFF float/fade buckets, and full-depth Steam orderbooks. Items are identified by Steam market_hash_name (fuzzy lookup). Doppler, Gamma Doppler, and Case Hardened variants are priced individually. Prices are USD by default; the optional 'currency' parameter converts them to AUD, CAD, CHF, CNY, EUR, GBP, JPY, NZD, or SGD.",
  "provider": {
    "name": "cs2.sh",
    "url": "https://cs2.sh"
  },
  "service": {
    "url": "https://api.cs2.sh",
    "protocol": "https",
    "interface": "rest+openapi"
  },
  "documentationUrl": "https://cs2.sh/docs",
  "openapi": "https://cs2.sh/openapi.yaml",
  "capabilities": {
    "streaming": false,
    "stateTransitionHistory": false,
    "pushNotifications": false,
    "batchRequests": true
  },
  "authentication": {
    "type": "http",
    "scheme": "bearer",
    "description": "Send 'Authorization: Bearer <api_key>' on every /v1 request, using an API key issued for your cs2.sh account. The public https://api.cs2.sh/health endpoint needs no auth. Demo keys expire at the timestamp shown when they are issued; duration can differ by issuance channel. See https://cs2.sh/docs/quickstart."
  },
  "requestConventions": {
    "requiredHeaders": {
      "Authorization": "Bearer <api_key> (all /v1 endpoints)",
      "Accept-Encoding": "gzip (required on all /v1 endpoints; successful 2xx responses are gzipped, error responses are uncompressed)"
    },
    "itemIdentifier": "Steam market_hash_name, e.g. 'AK-47 | Redline (Field-Tested)'. Lookup is fuzzy on alphanumeric content ('ak47redlinefieldtested' resolves).",
    "rateLimitPerSecond": 10,
    "batch": {
      "maxItemsPerRequest": 100,
      "maxBodyBytes": 1048576,
      "maxBodyHuman": "1 MiB",
      "rejectsUnknownFields": true,
      "itemsTrimmedAndDeduped": true,
      "partialSuccess": "POST endpoints return successful items alongside a per-item 'errors' array."
    },
    "currency": "USD",
    "responseShape": "JSON object with an 'items' map keyed by market_hash_name, plus 'response_time' and (on price endpoints) 'currency'."
  },
  "variants": {
    "families": [
      "Doppler",
      "Gamma Doppler",
      "Case Hardened"
    ],
    "description": "Items with Doppler/Gamma Doppler phases or Case Hardened tiers can include a 'variants' object, each with the same per-source shape as the base item. Switch on the stable 'version' code in client code.",
    "versionCodes": [
      "p1",
      "p2",
      "p3",
      "p4",
      "ruby",
      "sapphire",
      "blackpearl",
      "emerald",
      "t1",
      "t2",
      "t3",
      "t4",
      "singleblue"
    ],
    "supportedBy": "General price, history, archive, liquidity, and BUFF market endpoints. The dedicated Steam orderbook and native Steam sale-history endpoints (GET/POST /v1/market/steam/* and POST /v1/archive/steam) do not support variants."
  },
  "data": {
    "sources": [
      "buff",
      "youpin",
      "csfloat",
      "skinport",
      "steam",
      "c5game"
    ],
    "sourceFields": "Per source: ask/bid plus ask_volume/bid_volume where available. csfloat provides bid but omits bid_volume; c5game omits bid_volume; skinport adds max_ask/mean_ask/median_ask and rolling 24h/7d/30d/90d windows.",
    "plans": [
      "demo",
      "developer",
      "scale",
      "enterprise"
    ],
    "plansDescription": "Demo and Developer plans can call the latest endpoints (prices/latest, market/buff/latest, market/steam/latest), GET /v1/schema, GET /v1/fx, GET /v1/account, GET /v1/live/capabilities, and every live operation (/v1/live/*); other endpoints return 403 forbidden. Scale has full access. All plans include all marketplaces and a 10 req/s limit on non-live endpoints. Live operations have per-minute limits per operation (Scale ~6x Developer); a demo key gets 100 live requests in total, one every 5 seconds."
  },
  "skills": [
    {
      "id": "prices-latest-all",
      "name": "Get all latest prices",
      "method": "GET",
      "endpoint": "https://api.cs2.sh/v1/prices/latest",
      "tag": "Prices",
      "description": "Current prices for every tracked item across all marketplaces, keyed by market_hash_name. Prices refresh roughly every 5 minutes. Includes variant prices.",
      "plans": [
        "demo",
        "developer",
        "scale",
        "enterprise"
      ],
      "supportsVariants": true
    },
    {
      "id": "prices-latest-batch",
      "name": "Get latest prices for specific items",
      "method": "POST",
      "endpoint": "https://api.cs2.sh/v1/prices/latest",
      "tag": "Prices",
      "description": "Current prices for up to 100 specific items passed as an 'items' array. Returns partial success with a per-item 'errors' array.",
      "plans": [
        "demo",
        "developer",
        "scale",
        "enterprise"
      ],
      "supportsVariants": true
    },
    {
      "id": "prices-history",
      "name": "Get historical OHLC prices",
      "method": "POST",
      "endpoint": "https://api.cs2.sh/v1/prices/history",
      "tag": "Prices",
      "description": "Continuously updated OHLC (open/high/low/close) price history for up to 100 items, with optional 'sources' filter. Interval max ranges: 5m→14d, 30m→90d, 1h→365d, 1d→unlimited.",
      "plans": [
        "scale",
        "enterprise"
      ],
      "supportsVariants": true,
      "intervals": [
        "5m",
        "30m",
        "1h",
        "1d"
      ],
      "coverageSince": "2025-12-24"
    },
    {
      "id": "archive-history",
      "name": "Get historical archive prices",
      "method": "POST",
      "endpoint": "https://api.cs2.sh/v1/archive/history",
      "tag": "Archive",
      "description": "Long-term per-platform price history for up to 100 items. The 'aggregate' source adds hourly_volume and total_supply. Sources: aggregate, buff, youpin, c5game. Updates ~1-2x per day.",
      "plans": [
        "scale",
        "enterprise"
      ],
      "supportsVariants": true,
      "intervals": [
        "1h",
        "1d"
      ],
      "coverageSince": "2022"
    },
    {
      "id": "buff-float-latest",
      "name": "Get BUFF float and fade buckets",
      "method": "GET",
      "endpoint": "https://api.cs2.sh/v1/market/buff/latest",
      "tag": "BUFF Market",
      "description": "All-item snapshot of BUFF float and fade price buckets, keyed by bucket_type (base, float, fade, float_fade). Refreshes every 10 minutes. USD by default; '?currency=' converts.",
      "plans": [
        "demo",
        "developer",
        "scale",
        "enterprise"
      ],
      "supportsVariants": true
    },
    {
      "id": "buff-float-history",
      "name": "Get OHLC history for BUFF float and fade buckets",
      "method": "POST",
      "endpoint": "https://api.cs2.sh/v1/market/buff/history",
      "tag": "BUFF Market",
      "description": "OHLC history for BUFF float and fade buckets for up to 100 items. Interval max ranges: 30m→90d, 1h→365d, 1d→unlimited.",
      "plans": [
        "scale",
        "enterprise"
      ],
      "supportsVariants": true,
      "intervals": [
        "30m",
        "1h",
        "1d"
      ],
      "coverageSince": "2026-05-19"
    },
    {
      "id": "live-capabilities",
      "name": "Get live operation schemas",
      "method": "GET",
      "endpoint": "https://api.cs2.sh/v1/live/capabilities",
      "tag": "Live",
      "description": "Machine-readable request, options, and response JSON Schemas, filters, sort fields, listing types, page sizes, and examples for every live operation. Works with any valid key. Optional '?market=' and '?operation='.",
      "plans": [
        "demo",
        "developer",
        "scale",
        "enterprise"
      ],
      "supportsVariants": false
    },
    {
      "id": "account",
      "name": "Get your API key's plan, limits, and endpoint access",
      "method": "GET",
      "endpoint": "https://api.cs2.sh/v1/account",
      "tag": "Account",
      "description": "The calling key's plan, key type and demo expiry, the per-second request limit, each live operation's per-minute limit with what's left and when it refills (or a demo key's remaining live requests), and every /v1 endpoint with whether the key can call it and, if not, the lowest plan that can. Works with any valid key and counts only toward the 10 req/s limit.",
      "plans": [
        "demo",
        "developer",
        "scale",
        "enterprise"
      ],
      "supportsVariants": false
    },
    {
      "id": "live-youpin-listings",
      "name": "Query live Youpin listings",
      "method": "POST",
      "endpoint": "https://api.cs2.sh/v1/live/youpin/listings",
      "tag": "Live",
      "description": "Every current Youpin listing of one item (buy now, rental, auction, or pre-sale), with float, paint seed, stickers, and price in CNY. 20 per page. Marketplace currency, no conversion. Raw marketplace JSON by default; raw_response:false returns structured rows. Filter choices: POST the same path + '/options'.",
      "plans": [
        "demo",
        "developer",
        "scale",
        "enterprise"
      ],
      "supportsVariants": true
    },
    {
      "id": "live-youpin-search",
      "name": "Search Youpin live",
      "method": "POST",
      "endpoint": "https://api.cs2.sh/v1/live/youpin/search",
      "tag": "Live",
      "description": "Search the Youpin market by weapon, type, quality, rarity, wear, collection, and price. Text search matches Chinese names only. 20 per page. Marketplace currency, no conversion. Raw marketplace JSON by default; raw_response:false returns structured rows. Filter choices: POST the same path + '/options'.",
      "plans": [
        "demo",
        "developer",
        "scale",
        "enterprise"
      ],
      "supportsVariants": true
    },
    {
      "id": "live-youpin-buy-orders",
      "name": "Query live Youpin buy orders",
      "method": "POST",
      "endpoint": "https://api.cs2.sh/v1/live/youpin/buy_orders",
      "tag": "Live",
      "description": "Current Youpin buy orders for one item. A float filter matches an order's exact float bounds. 100 per page. Marketplace currency, no conversion. Raw marketplace JSON by default; raw_response:false returns structured rows. Filter choices: POST the same path + '/options'.",
      "plans": [
        "demo",
        "developer",
        "scale",
        "enterprise"
      ],
      "supportsVariants": true
    },
    {
      "id": "live-youpin-float-rank",
      "name": "Query Youpin float rank",
      "method": "POST",
      "endpoint": "https://api.cs2.sh/v1/live/youpin/float_rank",
      "tag": "Live",
      "description": "Youpin's float ranking for one item, with each ranked copy's current listing. 20 per page. Marketplace currency, no conversion. Raw marketplace JSON by default; raw_response:false returns structured rows. Filter choices: POST the same path + '/options'.",
      "plans": [
        "demo",
        "developer",
        "scale",
        "enterprise"
      ],
      "supportsVariants": true
    },
    {
      "id": "live-youpin-listing-detail",
      "name": "Get one live Youpin listing",
      "method": "POST",
      "endpoint": "https://api.cs2.sh/v1/live/youpin/listing_detail",
      "tag": "Live",
      "description": "One Youpin listing in full, by listing.listing_id. Marketplace currency, no conversion. Raw marketplace JSON by default; raw_response:false returns structured rows. Filter choices: POST the same path + '/options'.",
      "plans": [
        "demo",
        "developer",
        "scale",
        "enterprise"
      ],
      "supportsVariants": true
    },
    {
      "id": "live-youpin-store",
      "name": "Query a Youpin store",
      "method": "POST",
      "endpoint": "https://api.cs2.sh/v1/live/youpin/store",
      "tag": "Live",
      "description": "A Youpin seller's current inventory by seller_id: sale, rental, or pre-sale. 100 per page. Marketplace currency, no conversion. Raw marketplace JSON by default; raw_response:false returns structured rows. Filter choices: POST the same path + '/options'.",
      "plans": [
        "demo",
        "developer",
        "scale",
        "enterprise"
      ],
      "supportsVariants": true
    },
    {
      "id": "live-csfloat-listings",
      "name": "Query live CSFloat listings",
      "method": "POST",
      "endpoint": "https://api.cs2.sh/v1/live/csfloat/listings",
      "tag": "Live",
      "description": "Current CSFloat listings for one item, a group such as 'Redline', or 1-50 names, with float, paint seed, stickers, charms, and price in USD. Buy now or auction. 50 per page. Marketplace currency, no conversion. Raw marketplace JSON by default; raw_response:false returns structured rows. Filter choices: POST the same path + '/options'.",
      "plans": [
        "demo",
        "developer",
        "scale",
        "enterprise"
      ],
      "supportsVariants": true
    },
    {
      "id": "live-csfloat-buy-orders",
      "name": "Query live CSFloat buy orders",
      "method": "POST",
      "endpoint": "https://api.cs2.sh/v1/live/csfloat/buy_orders",
      "tag": "Live",
      "description": "Current CSFloat buy orders for one item or one listing, grouped by price, with their float, paint seed, and sticker conditions. Marketplace currency, no conversion. Raw marketplace JSON by default; raw_response:false returns structured rows. Filter choices: POST the same path + '/options'.",
      "plans": [
        "demo",
        "developer",
        "scale",
        "enterprise"
      ],
      "supportsVariants": true
    },
    {
      "id": "live-csfloat-listing-detail",
      "name": "Get one live CSFloat listing",
      "method": "POST",
      "endpoint": "https://api.cs2.sh/v1/live/csfloat/listing_detail",
      "tag": "Live",
      "description": "One CSFloat listing in full, by listing.listing_id. Marketplace currency, no conversion. Raw marketplace JSON by default; raw_response:false returns structured rows. Filter choices: POST the same path + '/options'.",
      "plans": [
        "demo",
        "developer",
        "scale",
        "enterprise"
      ],
      "supportsVariants": true
    },
    {
      "id": "live-csfloat-store",
      "name": "Query a CSFloat store",
      "method": "POST",
      "endpoint": "https://api.cs2.sh/v1/live/csfloat/store",
      "tag": "Live",
      "description": "A CSFloat seller's current listings by seller_id (SteamID64). 50 per page. Marketplace currency, no conversion. Raw marketplace JSON by default; raw_response:false returns structured rows. Filter choices: POST the same path + '/options'.",
      "plans": [
        "demo",
        "developer",
        "scale",
        "enterprise"
      ],
      "supportsVariants": true
    },
    {
      "id": "live-steam-listings",
      "name": "Query live Steam listings",
      "method": "POST",
      "endpoint": "https://api.cs2.sh/v1/live/steam/listings",
      "tag": "Live",
      "description": "Current Steam Community Market listings for one item, or a whole listing group by item_id, with stickers and buyer-total prices in USD. 20 per page. Marketplace currency, no conversion. Raw marketplace JSON by default; raw_response:false returns structured rows. Filter choices: POST the same path + '/options'.",
      "plans": [
        "demo",
        "developer",
        "scale",
        "enterprise"
      ],
      "supportsVariants": false
    },
    {
      "id": "live-steam-search",
      "name": "Search the Steam market live",
      "method": "POST",
      "endpoint": "https://api.cs2.sh/v1/live/steam/search",
      "tag": "Live",
      "description": "Search the Steam Community Market by weapon, wear, quality, rarity, collection, tournament, team, and player. 30 per page. Marketplace currency, no conversion. Raw marketplace JSON by default; raw_response:false returns structured rows. Filter choices: POST the same path + '/options'.",
      "plans": [
        "demo",
        "developer",
        "scale",
        "enterprise"
      ],
      "supportsVariants": false
    },
    {
      "id": "live-steam-buy-orders",
      "name": "Query a live Steam order book",
      "method": "POST",
      "endpoint": "https://api.cs2.sh/v1/live/steam/buy_orders",
      "tag": "Live",
      "description": "The current Steam order book for one exact item: highest buy order, lowest listing, quantities, and price levels on both sides. Marketplace currency, no conversion. Raw marketplace JSON by default; raw_response:false returns structured rows. Filter choices: POST the same path + '/options'.",
      "plans": [
        "demo",
        "developer",
        "scale",
        "enterprise"
      ],
      "supportsVariants": false
    },
    {
      "id": "sales-csfloat",
      "name": "Get individual CSFloat sales",
      "method": "POST",
      "endpoint": "https://api.cs2.sh/v1/sales/csfloat",
      "tag": "Sales",
      "description": "Single completed CSFloat sales of one item: price, time, listing type, float, paint seed, stickers with placement, and charms. One market_hash_name per request, newest first, 100 per page, cursor valid 24 hours. Window defaults to the last 7 days. Full collection since about 2026-11-01.",
      "plans": [
        "scale",
        "enterprise"
      ],
      "supportsVariants": true
    },
    {
      "id": "archive-youpin",
      "name": "Get Youpin sale history",
      "method": "POST",
      "endpoint": "https://api.cs2.sh/v1/archive/youpin",
      "tag": "Archive",
      "description": "Youpin sale prices at 1h/4h/12h intervals for up to 100 items, in USD. Youpin keeps one sale per sampling bucket, and each item and variant carries an 'intervals' map keyed 1h, 4h, and 12h. Each key holds an independent series of exactly 'count' and 'data'; points carry 'bucket', 'time', and 'price', with no per-point interval field. A key appears only when that width was observed in the requested window, so count 0 with empty data means observed and no sales, and an absent key means not observed. 'count' is the number of points, never a sale volume, and no volume field exists. Series are independent samplings of the same market and must never be summed or interleaved.",
      "plans": [
        "scale",
        "enterprise"
      ],
      "supportsVariants": true
    },
    {
      "id": "archive-buff",
      "name": "Get BUFF sale history and supply",
      "method": "POST",
      "endpoint": "https://api.cs2.sh/v1/archive/buff",
      "tag": "Archive",
      "description": "BUFF sale prices and daily total supply for up to 100 items, in USD, as one chronological 'data' series per item and variant. Each point carries 'time', 'sale_price', and 'total_supply': a point is a sample from BUFF's transaction-price chart, not a verified trade, and there is no volume field. Sampling is denser for recent history (every few hours over the last month, every few days beyond a year). A day that reported supply with no sampled sale carries one supply-only row with a null 'sale_price'; 'total_supply' is null when BUFF reported none that day. 'count' is the number of points, never a sale volume. Omitting 'start' and 'end' returns all collected history. Updates ~1x per day.",
      "plans": [
        "scale",
        "enterprise"
      ],
      "supportsVariants": true,
      "coverageSince": "2024-09-06"
    },
    {
      "id": "archive-csfloat",
      "name": "Get CSFloat historical sales",
      "method": "POST",
      "endpoint": "https://api.cs2.sh/v1/archive/csfloat",
      "tag": "Archive",
      "description": "Daily CSFloat sale data for up to 100 items: 'volume' (items sold that day) and 'price' (arithmetic average of that day's sales). Updates ~1-2x per day.",
      "plans": [
        "scale",
        "enterprise"
      ],
      "supportsVariants": true,
      "intervals": [
        "1d"
      ],
      "coverageSince": "2023"
    },
    {
      "id": "archive-steam",
      "name": "Get native Steam archive buckets",
      "method": "POST",
      "endpoint": "https://api.cs2.sh/v1/archive/steam",
      "tag": "Archive",
      "description": "Native Steam Community Market sale-history buckets for up to 100 items: 'price' is Steam's median sale price and 'volume' is the Steam purchases count. Both intervals are unlimited in range. Variants not supported.",
      "plans": [
        "scale",
        "enterprise"
      ],
      "supportsVariants": false,
      "intervals": [
        "1h",
        "1d"
      ],
      "coverageSince": "2013-04-26"
    },
    {
      "id": "csfloat-orderbook-latest",
      "name": "Get latest CSFloat buy-order books",
      "method": "GET",
      "endpoint": "https://api.cs2.sh/v1/market/csfloat/latest",
      "tag": "CSFloat Market",
      "description": "Current CSFloat buy-order books for every item with standing orders: price-descending order ladders with quantities and per-order conditions (float ranges, paint indexes, stickers, charms, charm-pattern ranges, paint seeds). Doppler and Gamma Doppler phase books nest under variants. Refreshes every ~10-30 minutes by item liquidity. USD by default; '?currency=' converts.",
      "plans": [
        "scale",
        "enterprise"
      ],
      "supportsVariants": true
    },
    {
      "id": "csfloat-orderbook-history",
      "name": "Get CSFloat buy-order book history",
      "method": "POST",
      "endpoint": "https://api.cs2.sh/v1/market/csfloat/history",
      "tag": "CSFloat Market",
      "description": "CSFloat buy-order book snapshots over time (newest book per bucket, not OHLC) for up to 100 items. Intervals: 1h→365d, 1d→unlimited. Data begins 2026-08-10.",
      "plans": [
        "scale",
        "enterprise"
      ],
      "supportsVariants": true,
      "intervals": [
        "1h",
        "1d"
      ],
      "coverageSince": "2026-08-10"
    },
    {
      "id": "steam-orderbook-latest",
      "name": "Get latest Steam full-depth orderbooks",
      "method": "GET",
      "endpoint": "https://api.cs2.sh/v1/market/steam/latest",
      "tag": "Steam Market",
      "description": "Latest full snapshot of Steam Community Market bid/ask order ladders for all tracked regular items — per-level prices with volume at each level. USD by default; '?currency=' converts.",
      "plans": [
        "demo",
        "developer",
        "scale",
        "enterprise"
      ],
      "supportsVariants": false
    },
    {
      "id": "steam-orderbook-history",
      "name": "Get Steam orderbook bucket snapshots",
      "method": "POST",
      "endpoint": "https://api.cs2.sh/v1/market/steam/history",
      "tag": "Steam Market",
      "description": "Full-depth Steam orderbook snapshots over time (point-in-time depth, not OHLC) for up to 100 items. Intervals: 1h→90d, 1d→unlimited. Variants not supported.",
      "plans": [
        "scale",
        "enterprise"
      ],
      "supportsVariants": false,
      "intervals": [
        "1h",
        "1d"
      ],
      "coverageSince": "2026-06-09"
    },
    {
      "id": "item-schema",
      "name": "Get the public item schema",
      "method": "GET",
      "endpoint": "https://api.cs2.sh/v1/schema",
      "tag": "Schema",
      "description": "Generation-bound public item schema and metadata keyed by market_hash_name. Use the response generation identity and validators when caching it.",
      "plans": [
        "demo",
        "developer",
        "scale",
        "enterprise"
      ],
      "supportsVariants": true
    },
    {
      "id": "liquidity-items",
      "name": "Get item liquidity buckets",
      "method": "GET",
      "endpoint": "https://api.cs2.sh/v1/liquidity/items",
      "tag": "Liquidity",
      "description": "Production-derived liquidity bucket (e.g. liquid, very_liquid) and 80th-percentile estimated sale time for every item, computed from real price and sale-volume history.",
      "plans": [
        "scale",
        "enterprise"
      ],
      "supportsVariants": true
    },
    {
      "id": "fx-rates",
      "name": "Get exchange rates",
      "method": "GET",
      "endpoint": "https://api.cs2.sh/v1/fx",
      "tag": "FX",
      "description": "Current USD-based exchange rates used to convert latest prices when a request sets 'currency' (AUD, CAD, CHF, CNY, EUR, GBP, JPY, NZD, SGD, USD).",
      "plans": [
        "demo",
        "developer",
        "scale",
        "enterprise"
      ],
      "supportsVariants": false
    }
  ],
  "healthEndpoint": {
    "method": "GET",
    "endpoint": "https://api.cs2.sh/health",
    "authRequired": false,
    "description": "Service health: overall status (up/degraded/down), per-source/variant/endpoint freshness, and aggregate stats (total_events, market_hash_names, variant_items)."
  },
  "endpointsDoc": {
    "base": "https://api.cs2.sh/v1",
    "note": "https://cs2.sh/openapi.yaml is the authoritative machine-readable contract; this card is a convenience index of the same endpoints. Endpoint availability is plan-gated — see 'data.plansDescription' and the OpenAPI description. Human docs: https://cs2.sh/docs; getting started/auth: https://cs2.sh/docs/quickstart."
  },
  "markdown": {
    "perPage": "Append .md to any public cs2.sh page URL for a markdown rendition (home page: https://cs2.sh/index.md).",
    "negotiation": "GET the HTML URL with Accept: text/markdown; the response is a 302 to the page's .md URL, so follow redirects.",
    "corpora": [
      "https://cs2.sh/llms.txt",
      "https://cs2.sh/llms-full.txt"
    ]
  }
}