{"openapi":"3.1.0","info":{"title":"CS Price API","version":"1.6.0","description":"Public price API for the CS2 (Counter-Strike 2) skin ecosystem.\n\nLatest listing prices are available via a single item-centric endpoint\n`GET` / `POST` `/v1/prices/latest` (optional `markets` filter). Use\n`/v1/prices/search` for one skin with Doppler phase expansion, plus\nbuy-orders, float-ranged, price history, YouPin market-cap indexes and\nmarket-sales export.\n\nSubscription customers can additionally download a daily **ZIP export** of\nhistorical marketplace sales (`/v1/market-sales/export`) as three CSV files\n(sales, stickers, keychains) covering the last 24 hours.\n\n## Subscription plans\n\nAPI access is grouped by plan. Higher tiers include all endpoints from lower\ntiers:\n\n| Plan | Included categories |\n|------|---------------------|\n| **Basic** | Listing Prices |\n| **Pro** | Basic + Buyorder Prices + Float Ranged |\n| **Enterprise** | Pro + Price History + Sales Data (full API access) |\n\nEach API key is issued for a specific plan and may be further restricted via\nendpoint ACL (`allowed_endpoints`).\n\n## Authentication\n\nEvery non-documentation endpoint requires an API key in the `x-api-key`\nrequest header. Keys are issued per customer and optionally scoped to a\nsubset of endpoints (endpoint ACL). Every key is limited to 10 requests\nper second; there is no daily or monthly cap. Requests over the limit get\n`429` with a `Retry-After: 1` header.\n\n\n## Response format stability\n\nAll response shapes documented here reflect what the server **currently**\nreturns. In particular:\n\n- Numeric fields for prices, percentage changes, averages and liquidity\n  are serialized as **strings**, not numbers.\n  Example: `\"price_rmb\": \"7333.0000\"`. Clients must parse them as\n  fixed-point / arbitrary-precision decimals.\n- `stattrak` and `souvenir` are serialized as **integers** (`0` or `1`),\n  not booleans.\n- `updated_at` is ISO-8601 UTC (`YYYY-MM-DDTHH:mm:ss.sssZ`).\n- `liquidity` is an internal liquidity score and may be `null` if\n  unavailable for that skin.\n","contact":{"name":"CS Price API Support","url":"https://cspriceapi.com"}},"servers":[{"url":"https://api.cspriceapi.com","description":"Production"},{"url":"http://localhost:8080","description":"Local development"}],"tags":[{"name":"Listing Prices","description":"Latest listing prices across marketplaces via `/v1/prices/latest`, plus\nthe single-skin `/v1/prices/search` helper.\n\n**Plan: Basic** (included in Pro and Enterprise).\n"},{"name":"Steam","description":"Steam Community Market data from **`itemordershistogram`**: best ask/bid,\nspread, order-book depth, and internal liquidity. Requires `item_nameid`.\n\n**Plan: Basic** (included in Pro and Enterprise). Legacy ACL path\n`/v1/prices/steam` still grants access.\n"},{"name":"Buyorder Prices","description":"Buy-order price data from supported marketplaces.\n\n**Plan: Pro** (included in Enterprise).\n"},{"name":"Float Ranged","description":"Float-range filtered listing prices (buckets such as `0.00-0.07`),\nincluding listing counts, phase translations for Doppler skins, and fade\npercentage for Fade skins.\n\n**Plan: Pro** (included in Enterprise).\n"},{"name":"Price History","description":"Historical listing prices per marketplace. Use `resolution=hourly` for up\nto ~100 days (≈24 points/day) or `resolution=daily` for the full daily\nseries (1 point/day). Exactly one `market_hash_name` per request.\n\n**Plan: Enterprise**.\n"},{"name":"Indexes","description":"Aggregate YouPin market-cap time series for the CS2 skin economy\n(`price × listing count`, outlier-filtered). Same series as the public\nMarket Index page.\n\n**Plan: Enterprise**.\n"},{"name":"Sales Data","description":"Daily ZIP/CSV bulk export of historical marketplace sales.\nRequires a subscription API key scoped to `/v1/market-sales/export`.\n\n**Plan: Enterprise** (includes all API endpoints).\n"}],"security":[{"ApiKeyAuth":[]}],"paths":{"/v1/steam":{"get":{"tags":["Steam"],"summary":"Steam Community Market snapshot (Basic)","description":"Returns Steam Community Market rows in the standard CS Price API envelope\n(`data`, `meta`, `source`, `requestor`, `plan`, `timestamp`).\n\nEach row includes `best_ask` / `best_bid`, listing counts, computed\n`spread` / `spread_pct`, `orderbook` levels, and internal `liquidity`. Prices are decimal **strings**\n(USD for CS2).\n\nOmit `market_hash_name` for the full catalog (~27k skins). Pass one or\nmore comma-separated names to filter (max 100). Prefer gzip for full\nsnapshots.\n","operationId":"getSteamMarket","parameters":[{"name":"market_hash_name","in":"query","required":false,"description":"Optional filter. One Steam `market_hash_name`, or comma-separated list\n(max 100). Omit for all items.\n","schema":{"type":"string","example":"AK-47 | Redline (Field-Tested)"}},{"name":"bucket","in":"query","required":false,"description":"Optional collector bucket filter (`1` = hot, `2` = warm, `3` = cold).\n","schema":{"type":"integer","enum":[1,2,3]}}],"responses":{"200":{"description":"Steam Community Market rows (`data` array) with `meta` summary.","headers":{"Cache-Control":{"schema":{"type":"string","example":"public, max-age=30"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SteamMarketResponse"},"examples":{"single":{"summary":"Single skin","value":{"data":[{"market_hash_name":"AK-47 | Redline (Field-Tested)","stattrak":0,"souvenir":0,"exterior":"Field-Tested","item_page_url":"https://steamcommunity.com/market/listings/730/AK-47%20%7C%20Redline%20(Field-Tested)","item_nameid":165027595,"currency":"USD","liquidity":"8.40","best_ask":"12.45","ask_listings":85,"best_bid":"11.90","bid_orders":240,"spread":"0.55","spread_pct":"4.42","bucket":1,"collected_at":"2026-08-28T10:00:30.000Z","updated_at":"2026-08-28T10:00:30.000Z","orderbook":{"ask_levels":3,"bid_levels":2,"asks":[{"price":"12.45","quantity":2},{"price":"12.50","quantity":1}],"bids":[{"price":"11.90","quantity":3}]}}],"meta":{"count":1,"currency":"USD","filtered":["AK-47 | Redline (Field-Tested)"]},"source":"Steam Community Market","requestor":"you@example.com","plan":"basic","timestamp":"2026-08-28T10:00:35.000Z"}}}}}},"400":{"description":"Invalid query parameters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"API key not allowed for this endpoint","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v1/prices/latest":{"get":{"tags":["Listing Prices"],"summary":"Latest listing prices across marketplaces (Basic)","description":"Returns the latest prices for all items across supported marketplaces\n(YouPin, Buff163, C5Game, EcoSteam, SkinBaron, Skinport, CSFloat,\nLisskins, DMarket, ShadowPay, Waxpeer, Market.CSGO).\n\nMost prices update about every 5 minutes, depending on the marketplace.\nOptional `markets` filters which sources are included. Prefer gzip —\nfull snapshots are large. Prices use each marketplace's native currency.\n\n**CSFloat:** `price` and `avg_*` are in **US cents** (as CSFloat reports them,\ne.g. 2466 = $24.66); every other marketplace uses whole currency units.\n","operationId":"getLatestPrices","parameters":[{"name":"markets","in":"query","required":false,"description":"Comma-separated marketplace slugs (e.g. `youpin,buff163`).\nOmit to include all listing marketplaces your key is allowed to access.\n","schema":{"type":"string","example":"youpin,buff163"}}],"responses":{"200":{"description":"Latest prices keyed by market_hash_name.","headers":{"Cache-Control":{"schema":{"type":"string","example":"public, max-age=30"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LatestPricesResponse"},"examples":{"ok":{"summary":"Two marketplaces, one skin excerpt","value":{"items":{"AK-47 | Redline (Field-Tested)":{"market_hash_name":"AK-47 | Redline (Field-Tested)","youpin":{"id":210,"market_hash_name":"AK-47 | Redline (Field-Tested)","stattrak":0,"souvenir":0,"price_rmb":"142.00","change_24h":"0.30","change_7d":"1.10","change_30d":"-0.80","change_90d":"4.20","avg_7d":"141.20","avg_30d":"143.80","avg_90d":"136.00","count":612,"phase":"","updated_at":"2026-04-21T12:06:35.000Z","youpin_template_id":1021,"liquidity":"8.90"},"buff163":{"id":62235,"market_hash_name":"AK-47 | Redline (Field-Tested)","stattrak":0,"souvenir":0,"exterior":"Field-Tested","price":"138.80","change_24h":"0.10","change_7d":"0.90","change_30d":"-1.10","change_90d":"3.80","avg_7d":"138.20","avg_30d":"140.10","avg_90d":"133.50","count":1203,"updated_at":"2026-04-21T12:20:00.000Z","item_page_url":"https://buff.163.com/goods/35247","liquidity":"9.10"}}},"markets":["youpin","buff163"],"requestor":"customer@example.com","plan":"pro","timestamp":"2026-08-27T14:50:00.000Z"}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}}},"post":{"tags":["Listing Prices"],"summary":"Latest prices for selected items (Basic)","description":"Same latest-price data as `GET /v1/prices/latest`, filtered to up to\n**100** requested `market_hash_name` values.\n\nMost prices update about every 5 minutes, depending on the marketplace.\nOptional `markets` limits which sources are loaded. Missing items appear\nin `errors` (`not_found`); if none match, the API returns `404`.\n\n**CSFloat:** `price` and `avg_*` are in **US cents** (as CSFloat reports them,\ne.g. 2466 = $24.66); every other marketplace uses whole currency units.\n","operationId":"postLatestPrices","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["items"],"properties":{"items":{"type":"array","minItems":1,"maxItems":100,"items":{"type":"string"},"description":"market_hash_name values to look up.","example":["AK-47 | Redline (Field-Tested)","USP-S | Printstream (Factory New)"]},"markets":{"type":"array","items":{"type":"string"},"description":"Optional marketplace filter (same slugs as GET).","example":["youpin","buff163","csfloat"]}}},"examples":{"filter":{"value":{"items":["AK-47 | Redline (Field-Tested)"],"markets":["youpin","buff163"]}}}}}},"parameters":[{"name":"markets","in":"query","required":false,"description":"Optional CSV marketplace filter if not sent in the JSON body.","schema":{"type":"string"}}],"responses":{"200":{"description":"Latest prices for the requested items (partial success possible).","headers":{"Cache-Control":{"schema":{"type":"string","example":"public, max-age=30"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LatestPricesResponse"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"description":"None of the requested items were found.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"errors":{"type":"array","items":{"$ref":"#/components/schemas/LatestItemError"}}}}}}},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}}}},"/v1/prices/youpin/buyorder":{"get":{"tags":["Buyorder Prices"],"summary":"Get current YouPin buy-order prices (Pro)","description":"Returns YouPin buy-order bids (and the separate \"blue\" buy-order price\nused for certain items, e.g. Dopplers) for every tracked skin.\n","operationId":"getYoupinBuyorders","responses":{"200":{"description":"Successful response with current YouPin buy-orders.","headers":{"Cache-Control":{"schema":{"type":"string","example":"public, max-age=30"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/YoupinBuyorderResponse"},"examples":{"ok":{"value":{"data":[{"id":1,"market_hash_name":"Glock-18 | Gamma Doppler (Factory New) (Phase 2)","templateId":57912,"buyorder_price":"1122.50","blue_buyorder_price":"980.00","phase":"Phase 2","typeId":42,"updated_at":"2026-04-21T12:15:00.000Z","count":36}],"source":"YouPin","requestor":"customer@example.com","plan":"pro","timestamp":"2026-04-21T12:20:00.000Z"}}}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}}}},"/v1/prices/youpin/float-buyorder":{"get":{"tags":["Buyorder Prices"],"summary":"YouPin Float Buyorder","description":"**Every open YouPin buy order** per skin, each with its own conditions:\na float range (or any float), a Doppler phase, a Fade % range or a\nCase Hardened tier. Orders are sorted by price, highest first.\n\nUse the filters to price a specific item:\n- `float=0.153` returns only orders that accept a float of 0.153\n  (range lower bound included, upper bound excluded, like YouPin's wear\n  ranges). `best_price_rmb` is then the highest buy order for that float.\n- `phase` (Doppler / Gamma Doppler), `fade` (Fade %) and `tier`\n  (Case Hardened) work the same way. Orders without such a condition\n  accept any item and are always included.\n\nIdentical orders (same price and same condition) are merged into one\nentry: `quantity` is their sum and `orders` says how many buy orders it\nstands for.\n\nWithout `market_hash_name` the response covers every tracked skin\n(~4,000 skins, ~27,000 order entries, about 6 MB uncompressed and\n~0.4 MB with `Accept-Encoding: gzip`). Each skin is re-scanned about once an hour;\n`scraped_at` tells when.\n\nOrder fields depend on the condition (`kind`):\n- `doppler_phase` → `phase` (\"Phase 1\"–\"Phase 4\", \"Ruby\", \"Sapphire\",\n  \"Black Pearl\", \"Emerald\" or \"any\")\n- `fade` → `fade_range`, `min_fade`, `max_fade`\n- `case_hardened_tier` → `tier` (\"T1\"–\"T4\", \"Full Blue\" or \"any\")\n- no `kind` → a plain float-range order\n","operationId":"getYoupinFloatBuyorders","parameters":[{"name":"market_hash_name","in":"query","required":false,"description":"One or more skins (comma-separated or repeated, max 100). Omit for all skins.","schema":{"type":"string"},"example":"AK-47 | Redline (Field-Tested)"},{"name":"float","in":"query","required":false,"description":"Only orders that accept this float value (0–1).","schema":{"type":"number","minimum":0,"maximum":1},"example":0.153},{"name":"phase","in":"query","required":false,"description":"Doppler phase of the item; keeps orders for that phase or any phase.","schema":{"type":"string","enum":["Phase 1","Phase 2","Phase 3","Phase 4","Ruby","Sapphire","Black Pearl","Emerald"]}},{"name":"fade","in":"query","required":false,"description":"Fade % of the item (0–100); keeps orders whose fade range contains it or that have no fade condition.","schema":{"type":"number","minimum":0,"maximum":100}},{"name":"tier","in":"query","required":false,"description":"Case Hardened tier of the item; keeps orders for that tier or any tier.","schema":{"type":"string","enum":["T1","T2","T3","T4","Full Blue"]}},{"name":"limit","in":"query","required":false,"description":"Maximum order entries returned per skin (1–500). Omit it to get every order. Totals in the item still count all matching orders.","schema":{"type":"integer","minimum":1,"maximum":500}}],"responses":{"200":{"description":"Buy orders per skin, highest price first.","headers":{"Cache-Control":{"schema":{"type":"string","example":"public, max-age=30"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/YoupinFloatBuyorderResponse"},"examples":{"ok":{"value":{"data":[{"template_id":1414,"market_hash_name":"AK-47 | Redline (Field-Tested)","best_price_rmb":"379.00","best_quantity":1,"total_quantity":100,"order_count":37,"orders_on_youpin":52,"truncated":false,"scraped_at":"2026-10-07T05:42:39.000Z","orders":[{"price_rmb":"379.00","quantity":1,"orders":1,"float_range":"0.15-0.16","min_float":0.15,"max_float":0.16,"auto_accept":true,"first_seen":"2026-10-06T15:46:55.000Z","updated_at":"2026-10-07T05:42:39.000Z"},{"price_rmb":"352.00","quantity":2,"orders":1,"float_range":"0.15-0.18","min_float":0.15,"max_float":0.18,"auto_accept":true,"first_seen":"2026-10-06T06:10:36.000Z","updated_at":"2026-10-07T05:42:39.000Z"}]}],"meta":{"count":1,"orders":32,"max_orders_per_item":null,"currency":"CNY","filters":{"market_hash_name":1,"float":0.153,"phase":null,"tier":null,"fade":null},"updated_at":"2026-10-07T05:42:39.000Z"},"source":"YouPin","requestor":"customer@example.com","plan":"pro","timestamp":"2026-10-07T06:00:00.000Z"}}}}}},"400":{"description":"Invalid filter (e.g. float outside 0–1, unknown phase, limit outside 1–500).","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}}},"example":{"error":"Invalid parameter: float (0 to 1)"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}}}},"/v1/prices/buff163/buyorder":{"get":{"tags":["Buyorder Prices"],"summary":"Get current Buff163 buy-order prices (Pro)","description":"Returns the highest Buff163 buy order and the number of buy orders for\nevery tracked skin, including Doppler / Gamma Doppler phases and pattern\ntiers as separate rows (e.g. `… (Factory New) (Ruby)`,\n`AK-47 | Case Hardened (Factory New) (T1)`).\n\n`buyorder_price` is in CNY and `null` when the skin has no buy order.\nFor a phase or tier row it is the highest order that would buy that\nvariant, so general orders without a phase condition count too.\nBuff reports this value per item; orders limited to a float range can\nbe higher and are listed per range in `/v1/prices/buff163/float-buyorder`.\n`templateId` is the Buff `goods_id`, `typeId` the Buff tag id of the\nphase/tier. Data refreshes about every 10 minutes.\n","operationId":"getBuffBuyorders","responses":{"200":{"description":"Successful response with current Buff163 buy orders.","headers":{"Cache-Control":{"schema":{"type":"string","example":"public, max-age=30"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BuffBuyorderResponse"},"examples":{"ok":{"value":{"data":[{"id":1,"market_hash_name":"★ Karambit | Doppler (Factory New) (Ruby)","templateId":42998,"buyorder_price":"41000.00","phase":"Ruby","typeId":446958,"updated_at":"2026-10-18T08:12:22.000Z","count":8}],"source":"Buff163","requestor":"customer@example.com","plan":"pro","timestamp":"2026-10-18T08:20:00.000Z"}}}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}}}},"/v1/prices/buff163/float-buyorder":{"get":{"tags":["Buyorder Prices"],"summary":"Buff163 Float Buyorder","description":"Highest **Buff163 buy order per float range** (and per Fade % range,\nDoppler phase or pattern tier) for every tracked skin, with the number\nof buy orders in that range. Buff publishes these as aggregates, so\nunlike the YouPin endpoint there is one entry per range, not one per\norder.\n\nRanges are Buff's fixed buckets (e.g. `0.15-0.18`), closed on both ends.\nFade skins come as a matrix: float ranges, Fade ranges and every\nfloat × Fade combination (`\"any\"` marks the axis that is not limited).\n\nUse the filters to price a specific item:\n- `float=0.153` keeps the ranges containing 0.153; `best_price_rmb` is\n  then the highest buy order for that float.\n- `fade=97.5` keeps the Fade ranges containing 97.5 (combined with\n  `float` when both are given).\n- `phase` (Doppler / Gamma Doppler) or `tier` (`T1`–`T4` for Case\n  Hardened / Heat Treated, `T1`–`T10` Marble Fade, `T1`–`T6` Crimson\n  Kimono) selects that variant. Items without such variants fall back\n  to their plain ranges.\n\nWithout `phase`/`tier`, every variant is returned and `best_price_rmb`\ncovers only the plain (variant-less) ranges. Data refreshes about every\n10 minutes.\n","operationId":"getBuffFloatBuyorders","parameters":[{"name":"market_hash_name","in":"query","required":false,"description":"One or more skins (comma-separated or repeated, max 100). Omit for all skins.","schema":{"type":"string"},"example":"AK-47 | Redline (Field-Tested)"},{"name":"float","in":"query","required":false,"description":"Only ranges that contain this float value (0–1).","schema":{"type":"number","minimum":0,"maximum":1},"example":0.153},{"name":"phase","in":"query","required":false,"description":"Doppler phase of the item.","schema":{"type":"string","enum":["Phase 1","Phase 2","Phase 3","Phase 4","Ruby","Sapphire","Black Pearl","Emerald"]}},{"name":"fade","in":"query","required":false,"description":"Fade % of the item (0–100); keeps the Fade ranges that contain it.","schema":{"type":"number","minimum":0,"maximum":100}},{"name":"tier","in":"query","required":false,"description":"Pattern tier of the item (cannot be combined with phase).","schema":{"type":"string","enum":["T1","T2","T3","T4","T5","T6","T7","T8","T9","T10"]}}],"responses":{"200":{"description":"Buy-order ranges per skin.","headers":{"Cache-Control":{"schema":{"type":"string","example":"public, max-age=30"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BuffFloatBuyorderResponse"},"examples":{"ok":{"value":{"data":[{"goods_id":33960,"market_hash_name":"AK-47 | Redline (Field-Tested)","best_price_rmb":"327.00","best_order_count":124,"updated_at":"2026-10-18T08:12:22.000Z","ranges":[{"float_range":"0.15-0.18","min_float":0.15,"max_float":0.18,"fade_range":"any","min_fade":null,"max_fade":null,"phase":null,"tier":null,"price_rmb":"327.00","order_count":124,"updated_at":"2026-10-18T08:12:22.000Z"}]}],"meta":{"count":1,"ranges":1,"currency":"CNY","filters":{"market_hash_name":1,"float":0.153,"phase":null,"tier":null,"fade":null},"updated_at":"2026-10-18T08:12:22.000Z"},"source":"Buff163","requestor":"customer@example.com","plan":"enterprise","timestamp":"2026-10-18T08:20:00.000Z"}}}}}},"400":{"description":"Invalid filter (e.g. float outside 0–1, unknown phase/tier, phase and tier together).","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}}},"example":{"error":"Invalid parameter: float (0 to 1)"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}}}},"/v1/prices/{market}/history":{"get":{"tags":["Price History"],"summary":"Get historical prices for one skin (Enterprise)","description":"Returns historical listing prices for **exactly one**\n`market_hash_name` on a given marketplace.\n\n\n| `resolution` | Source | Density | Typical retention |\n|--------------|--------|---------|-------------------|\n| `hourly` | `price_history_*` | up to 24 points/day (`slot`) | last ~100 days |\n| `daily` (default) | `price_daily_*` | 1 point/day | full history |\n\nRequesting `hourly` for a `from`/`to` window longer than **100 days**\nreturns `400` — use `daily` for longer ranges.\n\n\n`youpin`, `buff163`, `c5game`, `skinport`, `skinbaron`, `market-csgo`,\n`csfloat`, `dmarket`, `ecosteam`, `lisskins`, `skinland`, `shadowpay`,\n`waxpeer`.\n\n\nPrices are decimal **strings** in the marketplace's native currency\n(`currency` in the response): CNY / EUR / USD. CSFloat history is stored\nin USD cents and converted to USD for the response.\n","operationId":"getMarketPriceHistory","parameters":[{"name":"market","in":"path","required":true,"schema":{"type":"string","enum":["youpin","buff163","c5game","skinport","skinbaron","market-csgo","csfloat","dmarket","ecosteam","lisskins","skinland","shadowpay","waxpeer"]},"description":"Marketplace slug (same as live price routes)."},{"name":"market_hash_name","in":"query","required":true,"description":"Steam `market_hash_name`. **Only one** name per request\n(no comma-separated lists, no repeated params).\n","schema":{"type":"string","minLength":1},"example":"AK-47 | Redline (Field-Tested)"},{"name":"resolution","in":"query","required":false,"schema":{"type":"string","enum":["hourly","daily"],"default":"daily"},"description":"Point density. Defaults to `daily`."},{"name":"from","in":"query","required":false,"schema":{"type":"string","format":"date"},"description":"Inclusive start date (`YYYY-MM-DD`). Defaults to 30 days before `to`\nfor `hourly`, or 365 days before `to` for `daily`.\n"},{"name":"to","in":"query","required":false,"schema":{"type":"string","format":"date"},"description":"Inclusive end date (`YYYY-MM-DD`). Defaults to today (UTC)."}],"responses":{"200":{"description":"Historical price series for the requested skin.","headers":{"Cache-Control":{"schema":{"type":"string","example":"public, max-age=60"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PriceHistoryResponse"},"examples":{"daily":{"summary":"Daily resolution","value":{"market":"youpin","market_hash_name":"AK-47 | Redline (Field-Tested)","resolution":"daily","currency":"CNY","from":"2025-08-21","to":"2026-08-21","count":2,"data":[{"day":"2025-08-21","price":"210.5000","count":8421},{"day":"2026-08-21","price":"185.5000","count":11507}],"source":"YouPin History","requestor":"customer@example.com","plan":"enterprise","timestamp":"2026-08-21T06:00:00.000Z"}},"hourly":{"summary":"Hourly resolution","value":{"market":"youpin","market_hash_name":"AK-47 | Redline (Field-Tested)","resolution":"hourly","currency":"CNY","from":"2026-07-22","to":"2026-08-21","count":2,"data":[{"day":"2026-08-20","slot":10,"last_ts":"2026-08-20 10:15:00","price":"186.2000","count":11404},{"day":"2026-08-20","slot":11,"last_ts":"2026-08-20 11:15:00","price":"186.2600","count":11420}],"source":"YouPin History","requestor":"customer@example.com","plan":"enterprise","timestamp":"2026-08-21T06:00:00.000Z"}}}}}},"400":{"description":"Invalid parameters or hourly range too long.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"multi":{"value":{"error":"Only one market_hash_name is allowed per request"}},"hourlyTooLong":{"value":{"error":"hourly resolution supports at most 100 days; use resolution=daily for longer ranges","from":"2025-01-01","to":"2026-08-21","days":598}}}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"description":"Unknown marketplace slug.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}}}},"/v2/prices/float-ranged":{"get":{"tags":["Float Ranged"],"summary":"Get float-ranged prices v2 (Pro)","description":"Returns float-ranged listing prices (v2).\n\nThis v2 payload is intentionally slim and only includes:\n`market_hash_name`, `float_range`, `phase`, `fade`, `count`,\n`price_rmb` and `updated_at`.\n\nThe `phase` field is translated to English where applicable.\n`fade` is the fade percentage for Fade skins (otherwise `null`).\n","operationId":"getFloatRangedPricesV2","responses":{"200":{"description":"Successful response with float-ranged v2 data.","headers":{"Cache-Control":{"schema":{"type":"string","example":"public, max-age=30"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FloatRangedV2PricesResponse"},"examples":{"ok":{"value":{"data":[{"market_hash_name":"Glock-18 | Gamma Doppler (Factory New)","float_range":"0.00-0.07","phase":"Phase 2","fade":null,"count":12,"price_rmb":"1230.0000","updated_at":"2026-04-21T12:00:00.000Z"},{"market_hash_name":"AWP | Fade (Factory New)","float_range":"0.00-0.01","phase":null,"fade":81.7,"count":3,"price_rmb":"5088.8200","updated_at":"2026-08-06T12:00:00.000Z"}],"source":"Float Ranged","requestor":"customer@example.com","plan":"pro","timestamp":"2026-04-21T12:20:35.000Z"}}}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}}}},"/v1/prices/buff163/float-ranged":{"get":{"tags":["Float Ranged"],"summary":"Get Buff163 float-ranged prices (Pro)","description":"Buff163 listing prices per float range, Fade % range, Doppler phase and\npattern tier: lowest listing (`price_rmb`), average of the 10 cheapest\nlistings and the real listing count in that range.\n\nRanges are Buff's fixed buckets (e.g. `0.15-0.18`, the same buckets as\n`/v2/prices/float-ranged`). Fade skins come as a matrix of float and\nFade ranges; `null` marks the axis that is not limited. `price_rmb` is\n`null` when nothing is listed in that range right now.\n\n`phase` holds Doppler / Gamma Doppler phases, `tier` pattern tiers\n(`T1`–`T4` Case Hardened / Heat Treated, `T1`–`T10` Marble Fade,\n`T1`–`T6` Crimson Kimono). Without `market_hash_name` the response\ncovers ~77,000 ranges for ~15,700 skins (use `Accept-Encoding: gzip`).\nData refreshes about every 10 minutes.\n","operationId":"getBuffFloatRangedPrices","parameters":[{"name":"market_hash_name","in":"query","required":false,"description":"One or more skins (comma-separated or repeated, max 100). Omit for all skins.","schema":{"type":"string"},"example":"★ Karambit | Doppler (Factory New)"}],"responses":{"200":{"description":"Successful response with Buff163 float-ranged listing prices.","headers":{"Cache-Control":{"schema":{"type":"string","example":"public, max-age=30"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BuffFloatRangedResponse"},"examples":{"ok":{"value":{"data":[{"market_hash_name":"★ Karambit | Doppler (Factory New)","goods_id":42998,"float_range":"0.00-0.01","fade_range":null,"phase":"Ruby","tier":null,"count":18,"price_rmb":"52200.00","avg_top10_price_rmb":"57249.60","updated_at":"2026-10-18T08:12:22.000Z"},{"market_hash_name":"★ M9 Bayonet | Fade (Factory New)","goods_id":33812,"float_range":"0.00-0.01","fade_range":"99-100","phase":null,"tier":null,"count":9,"price_rmb":"9500.00","avg_top10_price_rmb":"10480.00","updated_at":"2026-10-18T08:12:22.000Z"}],"source":"Buff163","requestor":"customer@example.com","plan":"pro","timestamp":"2026-10-18T08:20:00.000Z"}}}}}},"400":{"description":"Too many market_hash_name values.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}}},"example":{"error":"Too many market_hash_name values (max 100)"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}}}},"/v1/prices/search":{"get":{"tags":["Listing Prices"],"summary":"Look up a specific skin across all marketplaces (Basic)","description":"Fetches the current price of a single `market_hash_name` from every\nsupported marketplace in one request.\n\n\nIf the query looks like a Doppler or Gamma Doppler skin (case-insensitive\nsubstring `doppler`), the server strips any existing phase annotation\nfrom the input and queries **all** phase variants in parallel:\n\n- Regular Doppler: `(Ruby)`, `(Sapphire)`, `(Black Pearl)`,\n  `(Phase 1)`..`(Phase 4)`\n- Gamma Doppler: `(Emerald)`, `(Phase 1)`..`(Phase 4)`\n\nThe phase suffix is appended **after** the exterior, e.g.\n`Glock-18 | Gamma Doppler (Factory New) (Phase 2)`.\n\nThe response schema therefore differs between the two cases:\n\n- `is_doppler: false` → per marketplace either a single item object or `null`.\n- `is_doppler: true`  → per marketplace an **array** of matched phase variants (possibly empty).\n\nClients should branch on the top-level `is_doppler` flag to select the\ncorrect variant.\n","operationId":"searchSkin","parameters":[{"$ref":"#/components/parameters/MarketHashNameQuery"}],"responses":{"200":{"description":"Successful response. Payload shape depends on `is_doppler`.","headers":{"Cache-Control":{"schema":{"type":"string","example":"public, max-age=30"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchResponse"},"examples":{"nonDoppler":{"summary":"Non-Doppler lookup","value":{"market_hash_name":"AK-47 | Redline (Field-Tested)","is_doppler":false,"search_variants":["AK-47 | Redline (Field-Tested)"],"data":{"youpin":{"id":210,"market_hash_name":"AK-47 | Redline (Field-Tested)","stattrak":0,"souvenir":0,"price_rmb":"142.00","change_24h":"0.30","change_7d":"1.10","change_30d":"-0.80","change_90d":"4.20","avg_7d":"141.20","avg_30d":"143.80","avg_90d":"136.00","count":612,"phase":"","updated_at":"2026-04-21T12:06:35.000Z","youpin_template_id":1021,"liquidity":"8.90"},"buff163":{"id":62235,"market_hash_name":"AK-47 | Redline (Field-Tested)","stattrak":0,"souvenir":0,"exterior":"Field-Tested","price":"138.80","change_24h":"0.10","change_7d":"0.90","change_30d":"-1.10","change_90d":"3.80","avg_7d":"138.20","avg_30d":"140.10","avg_90d":"133.50","count":1203,"updated_at":"2026-04-21T12:20:00.000Z","item_page_url":"https://buff.163.com/goods/35247","liquidity":"9.10"},"c5game":null,"ecosteam":null,"skinbaron":{"id":18,"market_hash_name":"AK-47 | Redline (Field-Tested)","stattrak":0,"souvenir":0,"exterior":"Field-Tested","price":"17.90","change_24h":"-0.20","change_7d":"0.80","change_30d":"-1.40","change_90d":"2.90","avg_7d":"17.85","avg_30d":"18.10","avg_90d":"17.40","count":240,"updated_at":"2026-04-21T12:17:00.000Z","item_page_url":"https://skinbaron.de/en/csgo/ak-47-redline-field-tested","liquidity":"9.00"},"skinport":{"id":77,"market_hash_name":"AK-47 | Redline (Field-Tested)","item_page_url":"https://skinport.com/item/ak-47-redline-field-tested","stattrak":0,"souvenir":0,"exterior":"Field-Tested","price":"18.20","change_24h":"0.00","change_7d":"0.90","change_30d":"-1.20","change_90d":"3.30","avg_7d":"18.10","avg_30d":"18.30","avg_90d":"17.60","count":378,"updated_at":"2026-04-21T12:16:00.000Z","liquidity":"9.20"},"market_csgo":{"id":4412,"market_hash_name":"AK-47 | Redline (Field-Tested)","item_page_url":"https://market.csgo.com/en/item/4412/AK-47-Redline-Field-Tested","stattrak":0,"souvenir":0,"exterior":"Field-Tested","price":"19.45","change_24h":"0.10","change_7d":"0.70","change_30d":"-0.90","change_90d":"3.60","avg_7d":"19.30","avg_30d":"19.60","avg_90d":"18.80","count":980,"sales7":142,"updated_at":"2026-04-21T12:13:16.000Z","liquidity":"9.30"},"csfloat":{"id":501,"market_hash_name":"AK-47 | Redline (Field-Tested)","stattrak":0,"souvenir":0,"exterior":"Field-Tested","price":"18.75","change_24h":"0.20","change_7d":"0.90","change_30d":"-1.10","change_90d":"3.40","avg_7d":"18.60","avg_30d":"19.00","avg_90d":"18.10","count":320,"updated_at":"2026-04-21T12:18:00.000Z","item_page_url":"https://csfloat.com/item/123456789","buff_template_id":35247,"liquidity":"9.10"},"lisskins":{"id":701,"market_hash_name":"AK-47 | Redline (Field-Tested)","stattrak":0,"souvenir":0,"exterior":"Field-Tested","price":"17.90","change_24h":"0.10","change_7d":"0.50","change_30d":"-0.80","change_90d":"2.10","avg_7d":"17.70","avg_30d":"18.20","avg_90d":"17.40","count":280,"updated_at":"2026-04-21T12:18:30.000Z","item_page_url":"https://lis-skins.com/market/csgo/ak-47-redline-field-tested/","buff_template_id":35247,"liquidity":"9.10"},"dmarket":{"id":801,"market_hash_name":"AK-47 | Redline (Field-Tested)","stattrak":0,"souvenir":0,"exterior":"Field-Tested","price":"18.20","change_24h":"0.15","change_7d":"0.60","change_30d":"-0.70","change_90d":"2.30","avg_7d":"18.00","avg_30d":"18.40","avg_90d":"17.80","count":310,"updated_at":"2026-04-21T12:18:45.000Z","item_page_url":"https://dmarket.com/ingame-items/item-list/csgo-skins","buff_template_id":35247,"liquidity":"9.10"}},"requestor":"customer@example.com","plan":"pro","timestamp":"2026-04-21T12:20:40.000Z"}},"doppler":{"summary":"Doppler lookup (all phases)","value":{"market_hash_name":"Glock-18 | Gamma Doppler (Factory New)","is_doppler":true,"search_variants":["Glock-18 | Gamma Doppler (Factory New) (Emerald)","Glock-18 | Gamma Doppler (Factory New) (Phase 1)","Glock-18 | Gamma Doppler (Factory New) (Phase 2)","Glock-18 | Gamma Doppler (Factory New) (Phase 3)","Glock-18 | Gamma Doppler (Factory New) (Phase 4)"],"data":{"youpin":[{"id":30155,"market_hash_name":"Glock-18 | Gamma Doppler (Factory New) (Emerald)","stattrak":0,"souvenir":0,"price_rmb":"7333.0000","change_24h":"-1.40","change_7d":"-1.63","change_30d":"-7.67","change_90d":"-15.60","avg_7d":"7331.46","avg_30d":"7513.31","avg_90d":"7788.60","count":8,"phase":"Emerald","updated_at":"2026-04-21T12:06:35.000Z","youpin_template_id":57643,"liquidity":"2.10"},{"id":30156,"market_hash_name":"Glock-18 | Gamma Doppler (Factory New) (Phase 2)","stattrak":0,"souvenir":0,"price_rmb":"1320.0000","change_24h":"-0.90","change_7d":"1.20","change_30d":"-3.40","change_90d":"8.90","avg_7d":"1320.10","avg_30d":"1378.55","avg_90d":"1250.00","count":42,"phase":"Phase 2","updated_at":"2026-04-21T12:06:35.000Z","youpin_template_id":57912,"liquidity":"5.40"}],"buff163":[],"c5game":[],"ecosteam":[],"skinbaron":[],"skinport":[],"market_csgo":[],"csfloat":[],"lisskins":[],"dmarket":[]},"requestor":"customer@example.com","plan":"pro","timestamp":"2026-04-21T12:20:45.000Z"}}}}}},"400":{"description":"Missing or invalid query parameter.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"missingParam":{"value":{"error":"Missing parameter: market_hash_name"}}}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}}}},"/v1/indexes/market-cap":{"get":{"tags":["Indexes"],"summary":"YouPin total market cap (Enterprise)","description":"Daily or hourly **aggregate YouPin market cap** — the sum of\n`price × listing count` across the YouPin898 catalogue, in CNY.\n\nThis is the same cleaned series shown on the public Market Index page:\n\n- unit price must be `> 0` and `< 1,000,000` RMB (drops joke listings)\n- at least **2** active listings (a single seller cannot move the index)\n- only skins that exist in the internal catalogue\n\nDaily data is cached server-side for 6 hours. Hourly data is cached for\n10 minutes and reads the pre-aggregated hourly table when available.\n\n`market_cap_rmb` is a decimal **string**. `cleaned` is `true` when the\noutlier filters were applied; `false` means a fast fallback from the\nprecomputed daily table was used.\n","operationId":"getYoupinMarketCap","parameters":[{"name":"resolution","in":"query","required":false,"schema":{"type":"string","enum":["daily","hourly"],"default":"daily"},"description":"Point density. Defaults to `daily`."},{"name":"days","in":"query","required":false,"schema":{"type":"integer","minimum":7,"maximum":365,"default":30},"description":"Lookback for `resolution=daily` (clamped to 7–365)."},{"name":"hours","in":"query","required":false,"schema":{"type":"integer","minimum":12,"maximum":168,"default":48},"description":"Lookback for `resolution=hourly` (clamped to 12–168)."}],"responses":{"200":{"description":"Aggregate YouPin market-cap series.","headers":{"Cache-Control":{"schema":{"type":"string","example":"public, max-age=300"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MarketCapResponse"},"examples":{"daily":{"summary":"Daily resolution (30d)","value":{"currency":"CNY","resolution":"daily","days":30,"cleaned":true,"formula":"sum(price * listing_count)","filters":{"max_price_rmb":1000000,"min_listings":2},"current":{"day":"2026-09-05","market_cap_rmb":"1854321000.2500","listing_count":412003},"change_7d":"1.24","change_range":"-2.10","from":"2026-08-07","to":"2026-09-05","count":2,"data":[{"day":"2026-08-07","market_cap_rmb":"1894000000.0000","listing_count":401220},{"day":"2026-09-05","market_cap_rmb":"1854321000.2500","listing_count":412003}],"source":"YouPin Market Cap","requestor":"customer@example.com","plan":"enterprise","timestamp":"2026-09-05T16:00:00.000Z"}},"hourly":{"summary":"Hourly resolution (48h)","value":{"currency":"CNY","resolution":"hourly","hours":48,"cleaned":true,"formula":"sum(price * listing_count)","filters":{"max_price_rmb":1000000,"min_listings":2},"current":{"ts":1757088000,"hour":"2026-09-05T16:00:00.000Z","market_cap_rmb":"1854321000.2500","listing_count":412003},"change_7d":null,"change_range":"0.18","count":2,"data":[{"ts":1757001600,"hour":"2026-09-04T16:00:00.000Z","market_cap_rmb":"1851000000.0000","listing_count":410880},{"ts":1757088000,"hour":"2026-09-05T16:00:00.000Z","market_cap_rmb":"1854321000.2500","listing_count":412003}],"source":"YouPin Market Cap","requestor":"customer@example.com","plan":"enterprise","timestamp":"2026-09-05T16:05:00.000Z"}}}}}},"400":{"description":"Invalid parameters.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"resolution":{"value":{"error":"Invalid parameter: resolution (expected daily|hourly)"}}}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}}}},"/v1/market-sales/search":{"get":{"tags":["Sales Data"],"summary":"Look up sales by market_hash_name (Enterprise)","description":"Returns recent marketplace **sales** for up to **5**\n`market_hash_name` values, including nested `stickers` and `keychains` per sale.\n\nAt most **50** most recent sales are returned **per** `market_hash_name`\n(so up to 250 rows when querying 5 names). Results are ordered by\n`sold_at` descending.\n\nOnly sales from the **last 72 hours** are returned (**24 hours** for 2-day test keys).\nOlder sales are not available through this endpoint; a historical sales archive\n(deduplicated CSV per month) is available on request.\n\nPass one or more names via repeated query params or a comma-separated list:\n\n```\n?market_hash_name=AK-47 | Redline (Field-Tested)\n?market_hash_name=AK-47 | Redline (Field-Tested)&market_hash_name=M4A4 | Temukau (Minimal Wear)\n?market_hash_name=AK-47 | Redline (Field-Tested),M4A4 | Temukau (Minimal Wear)\n```\n\nOptional filters:\n\n- `marketplace`: `csfloat`, `youpin`, `skinport`\n- `float_min`, `float_max`: float range (inclusive)\n- `paint_index`: one or more paint indexes\n- `paint_seed`: one or more paint seeds / patterns\n- `price_min`, `price_max`: sale price range in **cents**\n\n`price` and `reference_price` are in **cents**. `sale_id`, `sticker_id` and\n`keychain_id` are returned as **strings** to avoid precision loss.\n","operationId":"searchMarketSales","parameters":[{"name":"market_hash_name","in":"query","required":true,"description":"Steam `market_hash_name` to look up. Repeat up to 5 times, or pass a\ncomma-separated list (max 5 unique names).\n","schema":{"type":"array","minItems":1,"maxItems":5,"items":{"type":"string","minLength":1}},"style":"form","explode":true,"examples":{"single":{"value":["AK-47 | Redline (Field-Tested)"]},"multiple":{"value":["AK-47 | Redline (Field-Tested)","M4A4 | Temukau (Minimal Wear)"]}}},{"name":"marketplace","in":"query","required":false,"schema":{"type":"string","enum":["csfloat","youpin","skinport"]}},{"name":"float_min","in":"query","required":false,"schema":{"type":"number"},"description":"Minimum `float_value` (inclusive)."},{"name":"float_max","in":"query","required":false,"schema":{"type":"number"},"description":"Maximum `float_value` (inclusive)."},{"name":"paint_index","in":"query","required":false,"description":"Paint index filter. Repeat the parameter or pass a comma-separated list.\n","schema":{"type":"array","items":{"type":"integer"}},"style":"form","explode":true},{"name":"paint_seed","in":"query","required":false,"description":"Paint seed / pattern filter. Repeat the parameter or pass a comma-separated list.\n","schema":{"type":"array","items":{"type":"integer"}},"style":"form","explode":true},{"name":"price_min","in":"query","required":false,"schema":{"type":"integer"},"description":"Minimum sale price in cents (inclusive)."},{"name":"price_max","in":"query","required":false,"schema":{"type":"integer"},"description":"Maximum sale price in cents (inclusive)."}],"responses":{"200":{"description":"Matching sales with nested stickers and keychains.","headers":{"Cache-Control":{"schema":{"type":"string","example":"public, max-age=60"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MarketSalesSearchResponse"}}}},"400":{"description":"Missing or invalid parameters.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}}}},"/v1/market-sales/export":{"get":{"tags":["Sales Data"],"summary":"ZIP export of the last 24 hours (Enterprise)","description":"Returns a **ZIP archive** (`market-sales-export.zip`) with three CSV files\nfor subscription customers who replicate the dataset locally once per day.\n\n| File in ZIP | Contents | Typical row count |\n|-------------|------------------|-------------------|\n| `sales.csv` | Sale events | ~100k / 24h |\n| `stickers.csv` | Stickers attached to sales | ~60k / 24h |\n| `keychains.csv` | Keychains attached to sales | ~1k / 24h |\n\nAlways exports **all rows from the last 24 hours**\nin a single request (~6 MB compressed ZIP). No pagination.\n\nJoin the CSVs locally on `(marketplace, sale_id, sold_at)`.\n\n\nRequires `x-api-key`. The key must include `/v1/market-sales/export` in its\n`allowed_endpoints` (or `*`).\n\n\n```bash\ncurl -H \"x-api-key: YOUR_KEY\" \\\n  \"https://api.cspriceapi.com/v1/market-sales/export\" \\\n  -o market-sales-export.zip\nunzip market-sales-export.zip\n```\n\n\nSee component schemas `MarketSalesCsvSalesRow`, `MarketSalesCsvStickersRow`\nand `MarketSalesCsvKeychainsRow` for the exact column layout.\n\n**Notes**\n\n- `price` and `reference_price` are in **cents** (integer).\n- `sale_id`, `sticker_id`, `keychain_id` are large integers serialized as\n  **strings** in CSV to avoid JavaScript precision loss.\n- `marketplace` values: `csfloat`, `youpin`, `skinport`.\n","operationId":"exportMarketSalesZip","responses":{"200":{"description":"ZIP archive containing `sales.csv`, `stickers.csv` and `keychains.csv`\n(each with a header row). Row counts are also exposed via response headers.\n","headers":{"Cache-Control":{"schema":{"type":"string","example":"private, no-store"}},"Content-Disposition":{"schema":{"type":"string","example":"attachment; filename=\"market-sales-export.zip\""}},"X-Sales-Row-Count":{"schema":{"type":"integer","example":97596},"description":"Data rows in `sales.csv` (excludes header)."},"X-Sticker-Row-Count":{"schema":{"type":"integer","example":61007}},"X-Keychain-Row-Count":{"schema":{"type":"integer","example":1228}},"X-Window-Hours":{"schema":{"type":"integer","example":24}},"X-Window-Start":{"schema":{"type":"string","format":"date-time"},"description":"Start of the export window (UTC)."},"X-Window-End":{"schema":{"type":"string","format":"date-time"},"description":"Time the export was generated (UTC)."}},"content":{"application/zip":{"schema":{"type":"string","format":"binary"},"example":"(binary ZIP – see CSV schemas for contained file layout)"}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/InternalError"}}}}},"components":{"securitySchemes":{"ApiKeyAuth":{"type":"apiKey","in":"header","name":"x-api-key","description":"API key issued per customer. Send it in the `x-api-key` header on every\nrequest. Every key is limited to 10 requests per second (no daily cap)\nand can be endpoint-scoped (ACL). Inactive or expired keys will be rejected\nwith `401`.\n"}},"parameters":{"MarketHashNameQuery":{"name":"market_hash_name","in":"query","required":true,"description":"Steam `market_hash_name` of the skin to look up. For Dopplers /\nGamma Dopplers the phase suffix is optional – it will be stripped and\nevery phase variant will be queried.\n","schema":{"type":"string","minLength":1},"examples":{"nonDoppler":{"value":"AK-47 | Redline (Field-Tested)"},"doppler":{"value":"Glock-18 | Gamma Doppler (Factory New)"}}}},"responses":{"BadRequest":{"description":"Invalid or missing parameter.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"markets":{"type":"array","items":{"type":"string"},"description":"Allowed marketplace slugs (when relevant)."}}}}}},"Unauthorized":{"description":"Missing, invalid, disabled or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"missing":{"value":{"error":"Missing API key"}},"invalid":{"value":{"error":"Invalid API key"}},"disabled":{"value":{"error":"API key disabled"}},"expired":{"value":{"error":"API key expired"}}}}}},"Forbidden":{"description":"The API key is valid but is not allowed to call this endpoint (endpoint ACL).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"acl":{"value":{"error":"Endpoint not allowed for this API key"}}}}}},"RateLimited":{"description":"Rate limit exceeded (10 requests per second per key). Retry after 1 second.","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer","example":1}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"perSecond":{"value":{"error":"Rate limit exceeded (10 requests per second)"}}}}}},"InternalError":{"description":"Internal server error – temporary upstream failure, etc.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"generic":{"value":{"error":"Internal server error"}},"db":{"value":{"error":"DB error"}}}}}}},"schemas":{"DecimalString":{"type":"string","description":"Fixed-point decimal value serialized as a string (preserves precision\nacross languages). Parse with an arbitrary-precision decimal library;\ndo **not** parse as a native float.\n","pattern":"^-?\\d+(\\.\\d+)?$","example":"1234.5600"},"TinyBool":{"type":"integer","enum":[0,1],"nullable":true,"description":"Boolean stored as `tinyint(1)`; `0` = false, `1` = true.","example":0},"Exterior":{"type":"string","nullable":true,"description":"Exterior (wear) of the skin. Typical values: `Factory New`,\n`Minimal Wear`, `Field-Tested`, `Well-Worn`, `Battle-Scarred`.\nCasing may vary between sources (e.g. Buff163 uses `\"Factory new\"`).\n","example":"Field-Tested"},"Phase":{"type":"string","nullable":true,"description":"Doppler phase, normalised to English. Empty string or `null` for\nnon-phase items.\n","example":"Phase 2"},"UpdatedAt":{"type":"string","format":"date-time","description":"ISO-8601 UTC timestamp (millisecond precision).","example":"2026-04-21T12:06:35.000Z"},"BaseWrapper":{"type":"object","description":"Envelope fields returned by every `GET /v1/prices/*` response.","properties":{"source":{"type":"string","description":"Human-readable marketplace identifier."},"requestor":{"type":"string","format":"email","description":"Email address associated with the API key making the call.","example":"customer@example.com"},"plan":{"type":"string","description":"Plan of the API key (e.g. `free`, `pro`, `enterprise`).","example":"pro"},"timestamp":{"allOf":[{"$ref":"#/components/schemas/UpdatedAt"}],"description":"Server time when this response was produced."}},"required":["source","timestamp"]},"YoupinItem":{"type":"object","description":"Current YouPin listing price row, including liquidity when available.","properties":{"id":{"type":"integer","example":30155},"market_hash_name":{"type":"string","example":"★ Hand Wraps | Spruce DDPAT (Factory New)"},"stattrak":{"$ref":"#/components/schemas/TinyBool"},"souvenir":{"$ref":"#/components/schemas/TinyBool"},"price_rmb":{"allOf":[{"$ref":"#/components/schemas/DecimalString"}],"nullable":true,"description":"Lowest current listing price on YouPin, in CNY (RMB).","example":"7333.0000"},"change_24h":{"allOf":[{"$ref":"#/components/schemas/DecimalString"}],"nullable":true,"description":"24h price change in percent.","example":"-1.40"},"change_7d":{"allOf":[{"$ref":"#/components/schemas/DecimalString"}],"nullable":true,"example":"-1.63"},"change_30d":{"allOf":[{"$ref":"#/components/schemas/DecimalString"}],"nullable":true,"example":"-7.67"},"change_90d":{"allOf":[{"$ref":"#/components/schemas/DecimalString"}],"nullable":true,"example":"-15.60"},"avg_7d":{"allOf":[{"$ref":"#/components/schemas/DecimalString"}],"nullable":true,"example":"7331.46"},"avg_30d":{"allOf":[{"$ref":"#/components/schemas/DecimalString"}],"nullable":true,"example":"7513.31"},"avg_90d":{"allOf":[{"$ref":"#/components/schemas/DecimalString"}],"nullable":true,"example":"7788.60"},"count":{"type":"integer","nullable":true,"description":"Number of active listings.","example":8},"phase":{"$ref":"#/components/schemas/Phase"},"updated_at":{"$ref":"#/components/schemas/UpdatedAt"},"youpin_template_id":{"type":"integer","nullable":true,"description":"YouPin internal template id.","example":57643},"liquidity":{"allOf":[{"$ref":"#/components/schemas/DecimalString"}],"nullable":true,"description":"Internal liquidity score (0.00 – 10.00). `null` if the skin is not in the internal catalog.","example":"12.16"}},"required":["id","market_hash_name","updated_at"]},"YoupinBuyorderItem":{"type":"object","description":"Current YouPin buy-order row.","properties":{"id":{"type":"integer","example":1},"market_hash_name":{"type":"string","example":"Glock-18 | Gamma Doppler (Factory New) (Phase 2)"},"templateId":{"type":"integer","nullable":true,"example":57912},"buyorder_price":{"allOf":[{"$ref":"#/components/schemas/DecimalString"}],"nullable":true,"description":"Highest standing buy-order price (CNY / RMB).","example":"1122.50"},"blue_buyorder_price":{"allOf":[{"$ref":"#/components/schemas/DecimalString"}],"nullable":true,"description":"Highest \"blue\"-tier buy-order price (CNY / RMB), used e.g. for certain Doppler phases.","example":"980.00"},"phase":{"$ref":"#/components/schemas/Phase"},"typeId":{"type":"integer","nullable":true,"example":42},"updated_at":{"$ref":"#/components/schemas/UpdatedAt"},"count":{"type":"integer","nullable":true,"example":36}},"required":["id","market_hash_name"]},"Buff163Item":{"type":"object","description":"Current Buff163 listing price row, including liquidity when available.","properties":{"id":{"type":"integer","example":62235},"market_hash_name":{"type":"string","example":"Glock-18 | Gamma Doppler (Factory New)"},"stattrak":{"$ref":"#/components/schemas/TinyBool"},"souvenir":{"$ref":"#/components/schemas/TinyBool"},"exterior":{"$ref":"#/components/schemas/Exterior"},"price":{"allOf":[{"$ref":"#/components/schemas/DecimalString"}],"nullable":true,"description":"Lowest current listing price on Buff163, in CNY (RMB).","example":"1333.50"},"change_24h":{"allOf":[{"$ref":"#/components/schemas/DecimalString"}],"nullable":true},"change_7d":{"allOf":[{"$ref":"#/components/schemas/DecimalString"}],"nullable":true},"change_30d":{"allOf":[{"$ref":"#/components/schemas/DecimalString"}],"nullable":true},"change_90d":{"allOf":[{"$ref":"#/components/schemas/DecimalString"}],"nullable":true},"avg_7d":{"allOf":[{"$ref":"#/components/schemas/DecimalString"}],"nullable":true},"avg_30d":{"allOf":[{"$ref":"#/components/schemas/DecimalString"}],"nullable":true},"avg_90d":{"allOf":[{"$ref":"#/components/schemas/DecimalString"}],"nullable":true},"count":{"type":"integer","nullable":true,"example":586},"updated_at":{"$ref":"#/components/schemas/UpdatedAt"},"item_page_url":{"type":"string","format":"uri","nullable":true,"example":"https://buff.163.com/goods/776015"},"liquidity":{"allOf":[{"$ref":"#/components/schemas/DecimalString"}],"nullable":true,"example":"8.70"}},"required":["id","market_hash_name","updated_at"]},"C5GameItem":{"type":"object","description":"Current C5Game listing price row, including liquidity when available.","properties":{"id":{"type":"integer","example":10},"market_hash_name":{"type":"string","example":"AK-47 | Redline (Field-Tested)"},"item_page_url":{"type":"string","format":"uri","nullable":true,"example":"https://www.c5game.com/en/csgo/product/123456"},"stattrak":{"$ref":"#/components/schemas/TinyBool"},"souvenir":{"$ref":"#/components/schemas/TinyBool"},"exterior":{"$ref":"#/components/schemas/Exterior"},"price":{"allOf":[{"$ref":"#/components/schemas/DecimalString"}],"nullable":true,"description":"Lowest current listing price on C5Game, in CNY (RMB).","example":"138.20"},"change_24h":{"allOf":[{"$ref":"#/components/schemas/DecimalString"}],"nullable":true},"change_7d":{"allOf":[{"$ref":"#/components/schemas/DecimalString"}],"nullable":true},"change_30d":{"allOf":[{"$ref":"#/components/schemas/DecimalString"}],"nullable":true},"change_90d":{"allOf":[{"$ref":"#/components/schemas/DecimalString"}],"nullable":true},"avg_7d":{"allOf":[{"$ref":"#/components/schemas/DecimalString"}],"nullable":true},"avg_30d":{"allOf":[{"$ref":"#/components/schemas/DecimalString"}],"nullable":true},"avg_90d":{"allOf":[{"$ref":"#/components/schemas/DecimalString"}],"nullable":true},"count":{"type":"integer","nullable":true,"example":241},"updated_at":{"$ref":"#/components/schemas/UpdatedAt"},"liquidity":{"allOf":[{"$ref":"#/components/schemas/DecimalString"}],"nullable":true,"example":"7.40"}},"required":["id","market_hash_name","updated_at"]},"EcoSteamItem":{"type":"object","description":"Current EcoSteam listing price row, including liquidity when available.","properties":{"id":{"type":"integer","example":5},"market_hash_name":{"type":"string","example":"AWP | Dragon Lore (Field-Tested)"},"item_page_url":{"type":"string","format":"uri","nullable":true,"example":"https://www.ecosteam.cn/item/12345"},"stattrak":{"$ref":"#/components/schemas/TinyBool"},"souvenir":{"$ref":"#/components/schemas/TinyBool"},"exterior":{"$ref":"#/components/schemas/Exterior"},"price":{"allOf":[{"$ref":"#/components/schemas/DecimalString"}],"nullable":true,"description":"Lowest current listing price on EcoSteam, in CNY (RMB).","example":"91200.00"},"change_24h":{"allOf":[{"$ref":"#/components/schemas/DecimalString"}],"nullable":true},"change_7d":{"allOf":[{"$ref":"#/components/schemas/DecimalString"}],"nullable":true},"change_30d":{"allOf":[{"$ref":"#/components/schemas/DecimalString"}],"nullable":true},"change_90d":{"allOf":[{"$ref":"#/components/schemas/DecimalString"}],"nullable":true},"avg_7d":{"allOf":[{"$ref":"#/components/schemas/DecimalString"}],"nullable":true},"avg_30d":{"allOf":[{"$ref":"#/components/schemas/DecimalString"}],"nullable":true},"avg_90d":{"allOf":[{"$ref":"#/components/schemas/DecimalString"}],"nullable":true},"count":{"type":"integer","nullable":true,"example":3},"updated_at":{"$ref":"#/components/schemas/UpdatedAt"},"liquidity":{"allOf":[{"$ref":"#/components/schemas/DecimalString"}],"nullable":true,"example":"1.20"}},"required":["id","market_hash_name","updated_at"]},"SkinBaronItem":{"type":"object","description":"Current SkinBaron listing price row, including liquidity when available.","properties":{"id":{"type":"integer","example":42},"market_hash_name":{"type":"string","example":"★ Karambit | Fade (Factory New)"},"stattrak":{"$ref":"#/components/schemas/TinyBool"},"souvenir":{"$ref":"#/components/schemas/TinyBool"},"exterior":{"$ref":"#/components/schemas/Exterior"},"price":{"allOf":[{"$ref":"#/components/schemas/DecimalString"}],"nullable":true,"description":"Lowest current listing price on SkinBaron, in EUR.","example":"2899.00"},"change_24h":{"allOf":[{"$ref":"#/components/schemas/DecimalString"}],"nullable":true},"change_7d":{"allOf":[{"$ref":"#/components/schemas/DecimalString"}],"nullable":true},"change_30d":{"allOf":[{"$ref":"#/components/schemas/DecimalString"}],"nullable":true},"change_90d":{"allOf":[{"$ref":"#/components/schemas/DecimalString"}],"nullable":true},"avg_7d":{"allOf":[{"$ref":"#/components/schemas/DecimalString"}],"nullable":true},"avg_30d":{"allOf":[{"$ref":"#/components/schemas/DecimalString"}],"nullable":true},"avg_90d":{"allOf":[{"$ref":"#/components/schemas/DecimalString"}],"nullable":true},"count":{"type":"integer","nullable":true,"example":9},"updated_at":{"$ref":"#/components/schemas/UpdatedAt"},"item_page_url":{"type":"string","format":"uri","nullable":true,"example":"https://skinbaron.de/en/csgo/karambit-fade-factory-new"},"liquidity":{"allOf":[{"$ref":"#/components/schemas/DecimalString"}],"nullable":true,"example":"4.10"}},"required":["id","market_hash_name","updated_at"]},"SkinportItem":{"type":"object","description":"Current Skinport listing price row, including liquidity when available.","properties":{"id":{"type":"integer","example":101},"market_hash_name":{"type":"string","example":"AK-47 | Asiimov (Field-Tested)"},"item_page_url":{"type":"string","format":"uri","nullable":true,"example":"https://skinport.com/item/ak-47-asiimov-field-tested"},"stattrak":{"$ref":"#/components/schemas/TinyBool"},"souvenir":{"$ref":"#/components/schemas/TinyBool"},"exterior":{"$ref":"#/components/schemas/Exterior"},"price":{"allOf":[{"$ref":"#/components/schemas/DecimalString"}],"nullable":true,"description":"Lowest current listing price on Skinport, in EUR.","example":"68.40"},"change_24h":{"allOf":[{"$ref":"#/components/schemas/DecimalString"}],"nullable":true},"change_7d":{"allOf":[{"$ref":"#/components/schemas/DecimalString"}],"nullable":true},"change_30d":{"allOf":[{"$ref":"#/components/schemas/DecimalString"}],"nullable":true},"change_90d":{"allOf":[{"$ref":"#/components/schemas/DecimalString"}],"nullable":true},"avg_7d":{"allOf":[{"$ref":"#/components/schemas/DecimalString"}],"nullable":true},"avg_30d":{"allOf":[{"$ref":"#/components/schemas/DecimalString"}],"nullable":true},"avg_90d":{"allOf":[{"$ref":"#/components/schemas/DecimalString"}],"nullable":true},"count":{"type":"integer","nullable":true,"example":412},"updated_at":{"$ref":"#/components/schemas/UpdatedAt"},"liquidity":{"allOf":[{"$ref":"#/components/schemas/DecimalString"}],"nullable":true,"example":"9.20"}},"required":["id","market_hash_name","updated_at"]},"CsfloatItem":{"type":"object","description":"Current CSFloat listing price row, including liquidity when available.","properties":{"id":{"type":"integer","example":501},"market_hash_name":{"type":"string","example":"AK-47 | Redline (Field-Tested)"},"stattrak":{"$ref":"#/components/schemas/TinyBool"},"souvenir":{"$ref":"#/components/schemas/TinyBool"},"exterior":{"$ref":"#/components/schemas/Exterior"},"price":{"allOf":[{"$ref":"#/components/schemas/DecimalString"}],"nullable":true,"description":"Lowest current listing price on CSFloat, in USD.","example":"18.75"},"change_24h":{"allOf":[{"$ref":"#/components/schemas/DecimalString"}],"nullable":true},"change_7d":{"allOf":[{"$ref":"#/components/schemas/DecimalString"}],"nullable":true},"change_30d":{"allOf":[{"$ref":"#/components/schemas/DecimalString"}],"nullable":true},"change_90d":{"allOf":[{"$ref":"#/components/schemas/DecimalString"}],"nullable":true},"avg_7d":{"allOf":[{"$ref":"#/components/schemas/DecimalString"}],"nullable":true},"avg_30d":{"allOf":[{"$ref":"#/components/schemas/DecimalString"}],"nullable":true},"avg_90d":{"allOf":[{"$ref":"#/components/schemas/DecimalString"}],"nullable":true},"count":{"type":"integer","nullable":true,"example":320},"updated_at":{"$ref":"#/components/schemas/UpdatedAt"},"item_page_url":{"type":"string","format":"uri","nullable":true,"example":"https://csfloat.com/item/123456789"},"buff_template_id":{"type":"integer","nullable":true,"example":35247},"liquidity":{"allOf":[{"$ref":"#/components/schemas/DecimalString"}],"nullable":true,"example":"9.10"}},"required":["id","market_hash_name","updated_at"]},"LisskinsItem":{"type":"object","description":"Current Lisskins listing price row, including liquidity when available.","properties":{"id":{"type":"integer","example":701},"market_hash_name":{"type":"string","example":"AK-47 | Redline (Field-Tested)"},"stattrak":{"$ref":"#/components/schemas/TinyBool"},"souvenir":{"$ref":"#/components/schemas/TinyBool"},"exterior":{"$ref":"#/components/schemas/Exterior"},"price":{"allOf":[{"$ref":"#/components/schemas/DecimalString"}],"nullable":true,"description":"Lowest current listing price on Lisskins, in USD.","example":"17.90"},"change_24h":{"allOf":[{"$ref":"#/components/schemas/DecimalString"}],"nullable":true},"change_7d":{"allOf":[{"$ref":"#/components/schemas/DecimalString"}],"nullable":true},"change_30d":{"allOf":[{"$ref":"#/components/schemas/DecimalString"}],"nullable":true},"change_90d":{"allOf":[{"$ref":"#/components/schemas/DecimalString"}],"nullable":true},"avg_7d":{"allOf":[{"$ref":"#/components/schemas/DecimalString"}],"nullable":true},"avg_30d":{"allOf":[{"$ref":"#/components/schemas/DecimalString"}],"nullable":true},"avg_90d":{"allOf":[{"$ref":"#/components/schemas/DecimalString"}],"nullable":true},"count":{"type":"integer","nullable":true,"example":280},"updated_at":{"$ref":"#/components/schemas/UpdatedAt"},"item_page_url":{"type":"string","format":"uri","nullable":true,"example":"https://lis-skins.com/market/csgo/ak-47-redline-field-tested/"},"buff_template_id":{"type":"integer","nullable":true,"example":35247},"liquidity":{"allOf":[{"$ref":"#/components/schemas/DecimalString"}],"nullable":true,"example":"9.10"}},"required":["id","market_hash_name","updated_at"]},"DmarketItem":{"type":"object","description":"Current DMarket listing price row, including liquidity when available.","properties":{"id":{"type":"integer","example":801},"market_hash_name":{"type":"string","example":"AK-47 | Redline (Field-Tested)"},"stattrak":{"$ref":"#/components/schemas/TinyBool"},"souvenir":{"$ref":"#/components/schemas/TinyBool"},"exterior":{"$ref":"#/components/schemas/Exterior"},"price":{"allOf":[{"$ref":"#/components/schemas/DecimalString"}],"nullable":true,"description":"Lowest current listing price on DMarket, in USD.","example":"18.20"},"change_24h":{"allOf":[{"$ref":"#/components/schemas/DecimalString"}],"nullable":true},"change_7d":{"allOf":[{"$ref":"#/components/schemas/DecimalString"}],"nullable":true},"change_30d":{"allOf":[{"$ref":"#/components/schemas/DecimalString"}],"nullable":true},"change_90d":{"allOf":[{"$ref":"#/components/schemas/DecimalString"}],"nullable":true},"avg_7d":{"allOf":[{"$ref":"#/components/schemas/DecimalString"}],"nullable":true},"avg_30d":{"allOf":[{"$ref":"#/components/schemas/DecimalString"}],"nullable":true},"avg_90d":{"allOf":[{"$ref":"#/components/schemas/DecimalString"}],"nullable":true},"count":{"type":"integer","nullable":true,"example":310},"updated_at":{"$ref":"#/components/schemas/UpdatedAt"},"item_page_url":{"type":"string","format":"uri","nullable":true,"example":"https://dmarket.com/ingame-items/item-list/csgo-skins"},"buff_template_id":{"type":"integer","nullable":true,"example":35247},"liquidity":{"allOf":[{"$ref":"#/components/schemas/DecimalString"}],"nullable":true,"example":"9.10"}},"required":["id","market_hash_name","updated_at"]},"ShadowpayItem":{"type":"object","description":"Current ShadowPay listing price row, including liquidity when available.","properties":{"id":{"type":"integer","example":2},"market_hash_name":{"type":"string","example":"★ Bayonet | Marble Fade (Minimal Wear)"},"stattrak":{"$ref":"#/components/schemas/TinyBool"},"souvenir":{"$ref":"#/components/schemas/TinyBool"},"exterior":{"$ref":"#/components/schemas/Exterior"},"price":{"allOf":[{"$ref":"#/components/schemas/DecimalString"}],"nullable":true,"description":"Lowest current listing price on ShadowPay, in USD.","example":"450.65"},"change_24h":{"allOf":[{"$ref":"#/components/schemas/DecimalString"}],"nullable":true},"change_7d":{"allOf":[{"$ref":"#/components/schemas/DecimalString"}],"nullable":true},"change_30d":{"allOf":[{"$ref":"#/components/schemas/DecimalString"}],"nullable":true},"change_90d":{"allOf":[{"$ref":"#/components/schemas/DecimalString"}],"nullable":true},"avg_7d":{"allOf":[{"$ref":"#/components/schemas/DecimalString"}],"nullable":true},"avg_30d":{"allOf":[{"$ref":"#/components/schemas/DecimalString"}],"nullable":true},"avg_90d":{"allOf":[{"$ref":"#/components/schemas/DecimalString"}],"nullable":true},"count":{"type":"integer","nullable":true,"example":10},"updated_at":{"$ref":"#/components/schemas/UpdatedAt"},"item_page_url":{"type":"string","format":"uri","nullable":true,"example":"https://shadowpay.com/en?search=Bayonet"},"liquidity":{"allOf":[{"$ref":"#/components/schemas/DecimalString"}],"nullable":true,"example":"8.50"}},"required":["id","market_hash_name","updated_at"]},"WaxpeerItem":{"type":"object","description":"Current Waxpeer listing price row, including liquidity when available.","properties":{"id":{"type":"integer","example":2},"market_hash_name":{"type":"string","example":"SCAR-20 | Caged (Factory New)"},"stattrak":{"$ref":"#/components/schemas/TinyBool"},"souvenir":{"$ref":"#/components/schemas/TinyBool"},"exterior":{"$ref":"#/components/schemas/Exterior"},"price":{"allOf":[{"$ref":"#/components/schemas/DecimalString"}],"nullable":true,"description":"Lowest current listing price on Waxpeer, in USD.","example":"0.92"},"change_24h":{"allOf":[{"$ref":"#/components/schemas/DecimalString"}],"nullable":true},"change_7d":{"allOf":[{"$ref":"#/components/schemas/DecimalString"}],"nullable":true},"change_30d":{"allOf":[{"$ref":"#/components/schemas/DecimalString"}],"nullable":true},"change_90d":{"allOf":[{"$ref":"#/components/schemas/DecimalString"}],"nullable":true},"avg_7d":{"allOf":[{"$ref":"#/components/schemas/DecimalString"}],"nullable":true},"avg_30d":{"allOf":[{"$ref":"#/components/schemas/DecimalString"}],"nullable":true},"avg_90d":{"allOf":[{"$ref":"#/components/schemas/DecimalString"}],"nullable":true},"count":{"type":"integer","nullable":true,"example":13},"updated_at":{"$ref":"#/components/schemas/UpdatedAt"},"item_page_url":{"type":"string","format":"uri","nullable":true,"example":"https://waxpeer.com/?game=csgo&search=SCAR-20"},"liquidity":{"allOf":[{"$ref":"#/components/schemas/DecimalString"}],"nullable":true,"example":"7.20"}},"required":["id","market_hash_name","updated_at"]},"SteamOrderbookLevel":{"type":"object","properties":{"price":{"allOf":[{"$ref":"#/components/schemas/DecimalString"}]},"quantity":{"type":"integer","example":2}},"required":["price","quantity"]},"SteamOrderbook":{"type":"object","description":"Normalized bid/ask ladder from Steam order histogram.","properties":{"ask_levels":{"type":"integer","example":3},"bid_levels":{"type":"integer","example":2},"asks":{"type":"array","items":{"$ref":"#/components/schemas/SteamOrderbookLevel"}},"bids":{"type":"array","items":{"$ref":"#/components/schemas/SteamOrderbookLevel"}}}},"SteamMarketItem":{"type":"object","description":"Steam Community Market snapshot for one catalog skin. Includes spread\nmetrics, order book depth, and internal liquidity score.\n","properties":{"market_hash_name":{"type":"string","example":"AK-47 | Redline (Field-Tested)"},"stattrak":{"$ref":"#/components/schemas/TinyBool"},"souvenir":{"$ref":"#/components/schemas/TinyBool"},"exterior":{"$ref":"#/components/schemas/Exterior"},"item_page_url":{"type":"string","format":"uri","nullable":true,"example":"https://steamcommunity.com/market/listings/730/AK-47%20%7C%20Redline%20(Field-Tested)"},"item_nameid":{"type":"integer","nullable":true,"example":165027595},"currency":{"type":"string","example":"USD"},"liquidity":{"allOf":[{"$ref":"#/components/schemas/DecimalString"}],"nullable":true},"best_ask":{"allOf":[{"$ref":"#/components/schemas/DecimalString"}],"nullable":true},"ask_listings":{"type":"integer","nullable":true,"description":"Listing count at the best ask (Steam histogram `sell_order_count`)."},"best_bid":{"allOf":[{"$ref":"#/components/schemas/DecimalString"}],"nullable":true},"bid_orders":{"type":"integer","nullable":true,"description":"Highest-bid order count from histogram."},"spread":{"allOf":[{"$ref":"#/components/schemas/DecimalString"}],"nullable":true,"description":"best_ask − best_bid"},"spread_pct":{"allOf":[{"$ref":"#/components/schemas/DecimalString"}],"nullable":true,"description":"Spread as % of best_ask."},"bucket":{"type":"integer","nullable":true,"enum":[1,2,3],"description":"Collector refresh tier."},"collected_at":{"type":"string","format":"date-time","nullable":true},"updated_at":{"type":"string","format":"date-time","nullable":true},"orderbook":{"allOf":[{"$ref":"#/components/schemas/SteamOrderbook"}],"nullable":true}},"required":["market_hash_name","currency","updated_at"]},"SteamMarketMeta":{"type":"object","properties":{"count":{"type":"integer","example":1},"currency":{"type":"string","example":"USD"},"filtered":{"type":"array","items":{"type":"string"},"description":"Present when `market_hash_name` filter was applied."},"bucket":{"type":"integer","enum":[1,2,3],"description":"Present when `bucket` query filter was applied."}}},"SteamMarketResponse":{"allOf":[{"$ref":"#/components/schemas/BaseWrapper"},{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/SteamMarketItem"}},"meta":{"$ref":"#/components/schemas/SteamMarketMeta"},"source":{"type":"string","enum":["Steam Community Market"]}},"required":["data","meta","source"]}]},"SteamItem":{"type":"object","deprecated":true,"description":"Removed legacy shape.","properties":{"id":{"type":"integer"}}},"MarketCsgoItem":{"type":"object","description":"Current Market.CSGO listing price row, including liquidity when available.","properties":{"id":{"type":"integer","example":1},"market_hash_name":{"type":"string","example":"Sticker | BLAST.tv | Paris 2023"},"item_page_url":{"type":"string","format":"uri","nullable":true,"example":"https://market.csgo.com/en/item/123/Sticker-BLAST.tv-Paris-2023"},"stattrak":{"$ref":"#/components/schemas/TinyBool"},"souvenir":{"$ref":"#/components/schemas/TinyBool"},"exterior":{"$ref":"#/components/schemas/Exterior"},"price":{"allOf":[{"$ref":"#/components/schemas/DecimalString"}],"nullable":true,"description":"Lowest current listing price on Market.CSGO, in USD.","example":"0.01"},"change_24h":{"allOf":[{"$ref":"#/components/schemas/DecimalString"}],"nullable":true},"change_7d":{"allOf":[{"$ref":"#/components/schemas/DecimalString"}],"nullable":true},"change_30d":{"allOf":[{"$ref":"#/components/schemas/DecimalString"}],"nullable":true},"change_90d":{"allOf":[{"$ref":"#/components/schemas/DecimalString"}],"nullable":true},"avg_7d":{"allOf":[{"$ref":"#/components/schemas/DecimalString"}],"nullable":true},"avg_30d":{"allOf":[{"$ref":"#/components/schemas/DecimalString"}],"nullable":true},"avg_90d":{"allOf":[{"$ref":"#/components/schemas/DecimalString"}],"nullable":true},"count":{"type":"integer","nullable":true,"example":5823},"sales7":{"type":"integer","nullable":true,"description":"Number of sales over the last 7 days.","example":214},"updated_at":{"$ref":"#/components/schemas/UpdatedAt"},"liquidity":{"allOf":[{"$ref":"#/components/schemas/DecimalString"}],"nullable":true,"example":"9.80"}},"required":["id","market_hash_name","updated_at"]},"FloatRangedV2Item":{"type":"object","description":"Float-range filtered listing snapshot (v2).","properties":{"market_hash_name":{"type":"string","example":"Glock-18 | Gamma Doppler (Factory New)"},"float_range":{"type":"string","description":"Float-range bucket/filter.","example":"0.00-0.07"},"phase":{"$ref":"#/components/schemas/Phase"},"fade":{"type":"number","nullable":true,"description":"Fade percentage for Fade skins (e.g. `81.7`). `null` for non-Fade\nitems.\n","example":81.7},"count":{"type":"integer","nullable":true,"example":12},"price_rmb":{"allOf":[{"$ref":"#/components/schemas/DecimalString"}],"nullable":true,"description":"Lowest listing price in CNY (RMB) for this float range.","example":"1230.0000"},"updated_at":{"$ref":"#/components/schemas/UpdatedAt"}},"required":["market_hash_name","float_range","phase","updated_at"]},"LatestItemError":{"type":"object","properties":{"market_hash_name":{"type":"string"},"code":{"type":"string","enum":["not_found"]}},"required":["market_hash_name","code"]},"LatestItem":{"type":"object","description":"One skin with nested marketplace objects. Only marketplaces that have\ndata for this skin are present (sparse). Nested objects use the same\nfield shapes as the legacy per-market listing responses\n(`YoupinItem`, `Buff163Item`, …). Steam data is available via `GET /v1/steam`.\n","properties":{"market_hash_name":{"type":"string"},"youpin":{"allOf":[{"$ref":"#/components/schemas/YoupinItem"}],"nullable":true},"buff163":{"allOf":[{"$ref":"#/components/schemas/Buff163Item"}],"nullable":true},"c5game":{"allOf":[{"$ref":"#/components/schemas/C5GameItem"}],"nullable":true},"ecosteam":{"allOf":[{"$ref":"#/components/schemas/EcoSteamItem"}],"nullable":true},"skinbaron":{"allOf":[{"$ref":"#/components/schemas/SkinBaronItem"}],"nullable":true},"skinport":{"allOf":[{"$ref":"#/components/schemas/SkinportItem"}],"nullable":true},"csfloat":{"allOf":[{"$ref":"#/components/schemas/CsfloatItem"}],"nullable":true},"lisskins":{"allOf":[{"$ref":"#/components/schemas/LisskinsItem"}],"nullable":true},"dmarket":{"allOf":[{"$ref":"#/components/schemas/DmarketItem"}],"nullable":true},"shadowpay":{"allOf":[{"$ref":"#/components/schemas/ShadowpayItem"}],"nullable":true},"waxpeer":{"allOf":[{"$ref":"#/components/schemas/WaxpeerItem"}],"nullable":true},"market-csgo":{"allOf":[{"$ref":"#/components/schemas/MarketCsgoItem"}],"nullable":true}},"required":["market_hash_name"],"additionalProperties":true},"LatestPricesResponse":{"type":"object","description":"Item-centric latest listing snapshot.","properties":{"items":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/LatestItem"},"description":"Map of market_hash_name → nested marketplace prices."},"markets":{"type":"array","items":{"type":"string"},"description":"Marketplaces included in this response (after filtering)."},"requestor":{"type":"string","format":"email"},"plan":{"type":"string"},"timestamp":{"$ref":"#/components/schemas/UpdatedAt"},"errors":{"type":"array","items":{"$ref":"#/components/schemas/LatestItemError"},"description":"Present on POST when some requested items were missing."}},"required":["items","markets","timestamp"]},"YoupinPricesResponse":{"allOf":[{"$ref":"#/components/schemas/BaseWrapper"},{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/YoupinItem"}},"source":{"type":"string","enum":["YouPin"]}},"required":["data"]}]},"BuffBuyorderItem":{"type":"object","properties":{"id":{"type":"integer"},"market_hash_name":{"type":"string","example":"★ Karambit | Doppler (Factory New) (Ruby)"},"templateId":{"type":"integer","description":"Buff goods_id.","example":42998},"buyorder_price":{"description":"Highest buy order in CNY, null when there is none.","oneOf":[{"$ref":"#/components/schemas/DecimalString"},{"type":"null"}]},"phase":{"type":["string","null"],"description":"Doppler phase or pattern tier (\"T1\"…), null for plain skins.","example":"Ruby"},"typeId":{"type":["integer","null"],"description":"Buff tag id of the phase/tier."},"updated_at":{"$ref":"#/components/schemas/UpdatedAt"},"count":{"type":["integer","null"],"description":"Number of buy orders.","example":8}}},"BuffBuyorderResponse":{"allOf":[{"$ref":"#/components/schemas/BaseWrapper"},{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/BuffBuyorderItem"}},"source":{"type":"string","enum":["Buff163"]}},"required":["data"]}]},"BuffFloatRangedItem":{"type":"object","properties":{"market_hash_name":{"type":"string"},"goods_id":{"type":"integer","description":"Buff goods_id."},"float_range":{"type":["string","null"],"description":"Float bucket, e.g. \"0.15-0.18\"; null = all floats."},"fade_range":{"type":["string","null"],"description":"Fade % bucket, e.g. \"97-99\"; null = all fades."},"phase":{"type":["string","null"],"description":"Doppler / Gamma Doppler phase."},"tier":{"type":["string","null"],"description":"Pattern tier (\"T1\"–\"T10\")."},"count":{"type":"integer","description":"Listings in this range."},"price_rmb":{"description":"Lowest listing in CNY, null when nothing is listed.","oneOf":[{"$ref":"#/components/schemas/DecimalString"},{"type":"null"}]},"avg_top10_price_rmb":{"description":"Average of the 10 cheapest listings in CNY.","oneOf":[{"$ref":"#/components/schemas/DecimalString"},{"type":"null"}]},"updated_at":{"$ref":"#/components/schemas/UpdatedAt"}}},"BuffFloatRangedResponse":{"allOf":[{"$ref":"#/components/schemas/BaseWrapper"},{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/BuffFloatRangedItem"}},"source":{"type":"string","enum":["Buff163"]}},"required":["data"]}]},"BuffFloatBuyorderRange":{"type":"object","description":"Highest Buff buy order for items in one range.","properties":{"float_range":{"type":"string","description":"Float bucket or \"any\".","example":"0.15-0.18"},"min_float":{"type":["number","null"]},"max_float":{"type":["number","null"]},"fade_range":{"type":"string","description":"Fade % bucket or \"any\".","example":"any"},"min_fade":{"type":["number","null"]},"max_fade":{"type":["number","null"]},"phase":{"type":["string","null"]},"tier":{"type":["string","null"]},"price_rmb":{"$ref":"#/components/schemas/DecimalString"},"order_count":{"type":"integer","description":"Buy orders in this range."},"updated_at":{"type":["string","null"],"format":"date-time"}}},"BuffFloatBuyorderItem":{"type":"object","properties":{"goods_id":{"type":"integer"},"market_hash_name":{"type":"string"},"best_price_rmb":{"oneOf":[{"$ref":"#/components/schemas/DecimalString"},{"type":"null"}]},"best_order_count":{"type":"integer"},"updated_at":{"type":["string","null"],"format":"date-time"},"ranges":{"type":"array","items":{"$ref":"#/components/schemas/BuffFloatBuyorderRange"}}}},"BuffFloatBuyorderResponse":{"allOf":[{"$ref":"#/components/schemas/BaseWrapper"},{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/BuffFloatBuyorderItem"}},"meta":{"type":"object","properties":{"count":{"type":"integer"},"ranges":{"type":"integer"},"currency":{"type":"string","enum":["CNY"]},"filters":{"type":"object"},"updated_at":{"type":["string","null"],"format":"date-time"}}},"source":{"type":"string","enum":["Buff163"]}},"required":["data","meta"]}]},"YoupinBuyorderResponse":{"allOf":[{"$ref":"#/components/schemas/BaseWrapper"},{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/YoupinBuyorderItem"}},"source":{"type":"string","enum":["YouPin"]}},"required":["data"]}]},"YoupinFloatBuyorderOrder":{"type":"object","description":"One open YouPin buy order (or several identical ones merged) and the condition an item must meet to fill it.","properties":{"price_rmb":{"allOf":[{"$ref":"#/components/schemas/DecimalString"}],"example":"379.00"},"quantity":{"type":"integer","description":"Items still wanted (summed over merged orders).","example":1},"orders":{"type":"integer","description":"How many identical buy orders (same price and condition) this entry merges.","example":1},"float_range":{"type":"string","description":"Accepted float range, or \"any\".","example":"0.15-0.16"},"min_float":{"type":"number","example":0.15},"max_float":{"type":"number","example":0.16},"kind":{"type":"string","enum":["doppler_phase","fade","case_hardened_tier"],"description":"Extra condition of the order; absent for plain float-range orders."},"phase":{"type":"string","description":"Only for kind doppler_phase.","example":"Black Pearl"},"tier":{"type":"string","description":"Only for kind case_hardened_tier.","example":"T1"},"fade_range":{"type":"string","description":"Only for kind fade.","example":"99-100"},"min_fade":{"type":"number","nullable":true,"example":99},"max_fade":{"type":"number","nullable":true,"example":100},"auto_accept":{"type":"boolean","nullable":true,"description":"At least one of the merged orders accepts sales automatically."},"first_seen":{"type":"string","format":"date-time","nullable":true,"description":"When we first saw this order (earliest of the merged ones)."},"updated_at":{"type":"string","format":"date-time","nullable":true}},"required":["price_rmb","quantity","orders","float_range","min_float","max_float"]},"YoupinFloatBuyorderItem":{"type":"object","description":"All matching YouPin buy orders for one skin.","properties":{"template_id":{"type":"integer","example":1414},"market_hash_name":{"type":"string","example":"AK-47 | Redline (Field-Tested)"},"best_price_rmb":{"allOf":[{"$ref":"#/components/schemas/DecimalString"}],"nullable":true,"description":"Highest matching buy order (CNY); null when no order matches."},"best_quantity":{"type":"integer","description":"Items wanted at the best price.","example":1},"total_quantity":{"type":"integer","description":"Items wanted by all matching orders.","example":100},"order_count":{"type":"integer","description":"Matching orders (before limit).","example":37},"orders_on_youpin":{"type":"integer","nullable":true,"description":"All orders for this skin at the last scan.","example":52},"truncated":{"type":"boolean","description":"The order list hit the scan limit and may be incomplete."},"scraped_at":{"type":"string","format":"date-time","nullable":true},"orders":{"type":"array","maxItems":500,"items":{"$ref":"#/components/schemas/YoupinFloatBuyorderOrder"}}},"required":["template_id","market_hash_name","best_price_rmb","order_count","orders"]},"YoupinFloatBuyorderResponse":{"allOf":[{"$ref":"#/components/schemas/BaseWrapper"},{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/YoupinFloatBuyorderItem"}},"meta":{"type":"object","properties":{"count":{"type":"integer","example":1},"orders":{"type":"integer","description":"Order entries returned in total (after merging and limit).","example":32},"max_orders_per_item":{"type":"integer","nullable":true,"description":"The limit applied","or":"null for all orders."},"currency":{"type":"string","enum":["CNY"]},"filters":{"type":"object","additionalProperties":true},"updated_at":{"type":"string","format":"date-time","nullable":true,"description":"Most recent scan among the returned skins."}},"required":["count","orders","max_orders_per_item","currency"]},"source":{"type":"string","enum":["YouPin"]}},"required":["data","meta"]}]},"Buff163PricesResponse":{"allOf":[{"$ref":"#/components/schemas/BaseWrapper"},{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Buff163Item"}},"source":{"type":"string","enum":["Buff163"]}},"required":["data"]}]},"C5GamePricesResponse":{"allOf":[{"$ref":"#/components/schemas/BaseWrapper"},{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/C5GameItem"}},"source":{"type":"string","enum":["C5Game"]}},"required":["data"]}]},"EcoSteamPricesResponse":{"allOf":[{"$ref":"#/components/schemas/BaseWrapper"},{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/EcoSteamItem"}},"source":{"type":"string","enum":["EcoSteam"]}},"required":["data"]}]},"SkinBaronPricesResponse":{"allOf":[{"$ref":"#/components/schemas/BaseWrapper"},{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/SkinBaronItem"}},"source":{"type":"string","enum":["SkinBaron"]}},"required":["data"]}]},"SkinportPricesResponse":{"allOf":[{"$ref":"#/components/schemas/BaseWrapper"},{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/SkinportItem"}},"source":{"type":"string","enum":["Skinport"]}},"required":["data"]}]},"MarketCsgoPricesResponse":{"allOf":[{"$ref":"#/components/schemas/BaseWrapper"},{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/MarketCsgoItem"}},"source":{"type":"string","enum":["Market CSGO"]}},"required":["data"]}]},"CsfloatPricesResponse":{"allOf":[{"$ref":"#/components/schemas/BaseWrapper"},{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/CsfloatItem"}},"source":{"type":"string","enum":["CSFloat"]}},"required":["data"]}]},"LisskinsPricesResponse":{"allOf":[{"$ref":"#/components/schemas/BaseWrapper"},{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/LisskinsItem"}},"source":{"type":"string","enum":["Lisskins"]}},"required":["data"]}]},"DmarketPricesResponse":{"allOf":[{"$ref":"#/components/schemas/BaseWrapper"},{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/DmarketItem"}},"source":{"type":"string","enum":["DMarket"]}},"required":["data"]}]},"ShadowpayPricesResponse":{"allOf":[{"$ref":"#/components/schemas/BaseWrapper"},{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/ShadowpayItem"}},"source":{"type":"string","enum":["ShadowPay"]}},"required":["data"]}]},"WaxpeerPricesResponse":{"allOf":[{"$ref":"#/components/schemas/BaseWrapper"},{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/WaxpeerItem"}},"source":{"type":"string","enum":["Waxpeer"]}},"required":["data"]}]},"SteamPricesResponse":{"deprecated":true,"description":"Removed — use `GET /v1/steam` (`SteamMarketResponse`)."},"PriceHistoryPointDaily":{"type":"object","properties":{"day":{"type":"string","format":"date","example":"2026-08-20"},"price":{"allOf":[{"$ref":"#/components/schemas/DecimalString"}],"nullable":true,"example":"186.2000"},"count":{"type":"integer","nullable":true,"example":11404}},"required":["day"]},"PriceHistoryPointHourly":{"type":"object","properties":{"day":{"type":"string","format":"date","example":"2026-08-20"},"slot":{"type":"integer","description":"Hourly bucket index within the day (0–23).","example":10},"last_ts":{"type":"string","example":"2026-08-20 10:15:00"},"price":{"allOf":[{"$ref":"#/components/schemas/DecimalString"}],"nullable":true,"example":"186.2000"},"count":{"type":"integer","nullable":true,"example":11404}},"required":["day","slot"]},"PriceHistoryResponse":{"allOf":[{"$ref":"#/components/schemas/BaseWrapper"},{"type":"object","properties":{"market":{"type":"string","example":"youpin"},"market_hash_name":{"type":"string","example":"AK-47 | Redline (Field-Tested)"},"resolution":{"type":"string","enum":["hourly","daily"]},"currency":{"type":"string","enum":["CNY","EUR","USD"]},"from":{"type":"string","format":"date"},"to":{"type":"string","format":"date"},"count":{"type":"integer","example":365},"data":{"type":"array","items":{"oneOf":[{"$ref":"#/components/schemas/PriceHistoryPointDaily"},{"$ref":"#/components/schemas/PriceHistoryPointHourly"}]}},"source":{"type":"string","example":"YouPin History"}},"required":["market","market_hash_name","resolution","currency","from","to","count","data"]}]},"MarketCapPointDaily":{"type":"object","properties":{"day":{"type":"string","format":"date","example":"2026-09-05"},"market_cap_rmb":{"allOf":[{"$ref":"#/components/schemas/DecimalString"}],"description":"Aggregate YouPin market cap for that day, in CNY."},"listing_count":{"type":"integer","nullable":true,"description":"Sum of listing counts included in the cap.","example":412003}},"required":["day","market_cap_rmb"]},"MarketCapPointHourly":{"type":"object","properties":{"ts":{"type":"integer","description":"Unix timestamp of the hour bucket (UTC).","example":1757088000},"hour":{"type":"string","format":"date-time","description":"ISO-8601 UTC timestamp for the hour bucket."},"market_cap_rmb":{"allOf":[{"$ref":"#/components/schemas/DecimalString"}],"description":"Aggregate YouPin market cap for that hour, in CNY."},"listing_count":{"type":"integer","nullable":true,"example":412003}},"required":["ts","hour","market_cap_rmb"]},"MarketCapResponse":{"type":"object","description":"Aggregate YouPin market-cap envelope.","properties":{"currency":{"type":"string","enum":["CNY"]},"resolution":{"type":"string","enum":["daily","hourly"]},"days":{"type":"integer","description":"Present for `resolution=daily`."},"hours":{"type":"integer","description":"Present for `resolution=hourly`."},"cleaned":{"type":"boolean","description":"`true` when outlier filters were applied. `false` when the\nprecomputed `market_cap_daily` fallback was used.\n"},"formula":{"type":"string","example":"sum(price * listing_count)"},"filters":{"type":"object","properties":{"max_price_rmb":{"type":"integer","example":1000000},"min_listings":{"type":"integer","example":2}}},"current":{"description":"Latest point in the returned series, or `null` if empty.","nullable":true,"oneOf":[{"$ref":"#/components/schemas/MarketCapPointDaily"},{"$ref":"#/components/schemas/MarketCapPointHourly"}]},"change_7d":{"allOf":[{"$ref":"#/components/schemas/DecimalString"}],"nullable":true,"description":"Percent change vs ~7 days earlier. `null` if not enough history."},"change_range":{"allOf":[{"$ref":"#/components/schemas/DecimalString"}],"nullable":true,"description":"Percent change from the first to the last point in this response."},"from":{"type":"string","format":"date","nullable":true,"description":"First daily point (`resolution=daily` only)."},"to":{"type":"string","format":"date","nullable":true,"description":"Last daily point (`resolution=daily` only)."},"count":{"type":"integer"},"data":{"type":"array","items":{"oneOf":[{"$ref":"#/components/schemas/MarketCapPointDaily"},{"$ref":"#/components/schemas/MarketCapPointHourly"}]}},"source":{"type":"string","example":"YouPin Market Cap"},"requestor":{"type":"string","format":"email"},"plan":{"type":"string"},"timestamp":{"$ref":"#/components/schemas/UpdatedAt"}},"required":["currency","resolution","cleaned","count","data","source","timestamp"]},"FloatRangedV2PricesResponse":{"allOf":[{"$ref":"#/components/schemas/BaseWrapper"},{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/FloatRangedV2Item"}},"source":{"type":"string","enum":["Float Ranged"]}},"required":["data"]}]},"SearchDataNonDoppler":{"type":"object","description":"Per-marketplace lookup results. Each key is either a single item\nobject (the skin was found on that marketplace) or `null` (not found).\n","properties":{"youpin":{"oneOf":[{"$ref":"#/components/schemas/YoupinItem"}],"nullable":true},"buff163":{"oneOf":[{"$ref":"#/components/schemas/Buff163Item"}],"nullable":true},"c5game":{"oneOf":[{"$ref":"#/components/schemas/C5GameItem"}],"nullable":true},"ecosteam":{"oneOf":[{"$ref":"#/components/schemas/EcoSteamItem"}],"nullable":true},"skinbaron":{"oneOf":[{"$ref":"#/components/schemas/SkinBaronItem"}],"nullable":true},"skinport":{"oneOf":[{"$ref":"#/components/schemas/SkinportItem"}],"nullable":true},"market_csgo":{"oneOf":[{"$ref":"#/components/schemas/MarketCsgoItem"}],"nullable":true},"csfloat":{"oneOf":[{"$ref":"#/components/schemas/CsfloatItem"}],"nullable":true},"lisskins":{"oneOf":[{"$ref":"#/components/schemas/LisskinsItem"}],"nullable":true},"dmarket":{"oneOf":[{"$ref":"#/components/schemas/DmarketItem"}],"nullable":true},"shadowpay":{"oneOf":[{"$ref":"#/components/schemas/ShadowpayItem"}],"nullable":true},"waxpeer":{"oneOf":[{"$ref":"#/components/schemas/WaxpeerItem"}],"nullable":true}},"required":["youpin","buff163","c5game","ecosteam","skinbaron","skinport","market_csgo","csfloat","lisskins","dmarket","shadowpay","waxpeer"]},"SearchDataDoppler":{"type":"object","description":"Per-marketplace lookup results for Doppler skins. Each key is an\n**array** containing every phase variant found (possibly empty).\n","properties":{"youpin":{"type":"array","items":{"$ref":"#/components/schemas/YoupinItem"}},"buff163":{"type":"array","items":{"$ref":"#/components/schemas/Buff163Item"}},"c5game":{"type":"array","items":{"$ref":"#/components/schemas/C5GameItem"}},"ecosteam":{"type":"array","items":{"$ref":"#/components/schemas/EcoSteamItem"}},"skinbaron":{"type":"array","items":{"$ref":"#/components/schemas/SkinBaronItem"}},"skinport":{"type":"array","items":{"$ref":"#/components/schemas/SkinportItem"}},"market_csgo":{"type":"array","items":{"$ref":"#/components/schemas/MarketCsgoItem"}},"csfloat":{"type":"array","items":{"$ref":"#/components/schemas/CsfloatItem"}},"lisskins":{"type":"array","items":{"$ref":"#/components/schemas/LisskinsItem"}},"dmarket":{"type":"array","items":{"$ref":"#/components/schemas/DmarketItem"}},"shadowpay":{"type":"array","items":{"$ref":"#/components/schemas/ShadowpayItem"}},"waxpeer":{"type":"array","items":{"$ref":"#/components/schemas/WaxpeerItem"}}},"required":["youpin","buff163","c5game","ecosteam","skinbaron","skinport","market_csgo","csfloat","lisskins","dmarket","shadowpay","waxpeer"]},"SearchResponseNonDoppler":{"type":"object","description":"Search response when the queried skin is **not** a Doppler.","properties":{"market_hash_name":{"type":"string","example":"AK-47 | Redline (Field-Tested)"},"is_doppler":{"type":"boolean","enum":[false]},"search_variants":{"type":"array","items":{"type":"string"},"description":"Always contains exactly the input `market_hash_name`."},"data":{"$ref":"#/components/schemas/SearchDataNonDoppler"},"requestor":{"type":"string","format":"email"},"plan":{"type":"string"},"timestamp":{"$ref":"#/components/schemas/UpdatedAt"}},"required":["market_hash_name","is_doppler","search_variants","data","timestamp"]},"SearchResponseDoppler":{"type":"object","description":"Search response when the queried skin is a Doppler or Gamma Doppler.\nThe server queried all phase variants listed in `search_variants`.\n","properties":{"market_hash_name":{"type":"string","example":"Glock-18 | Gamma Doppler (Factory New)"},"is_doppler":{"type":"boolean","enum":[true]},"search_variants":{"type":"array","items":{"type":"string"},"description":"Every phase variant the server queried for this skin. For Gamma\nDopplers: `(Emerald)` + `(Phase 1..4)`. For regular Dopplers:\n`(Ruby)`, `(Sapphire)`, `(Black Pearl)` + `(Phase 1..4)`.\n"},"data":{"$ref":"#/components/schemas/SearchDataDoppler"},"requestor":{"type":"string","format":"email"},"plan":{"type":"string"},"timestamp":{"$ref":"#/components/schemas/UpdatedAt"}},"required":["market_hash_name","is_doppler","search_variants","data","timestamp"]},"SearchResponse":{"description":"Discriminate on the top-level boolean `is_doppler` to select the\ncorrect variant:\n\n- `is_doppler: false` → `SearchResponseNonDoppler` (each marketplace key is either an item object or `null`).\n- `is_doppler: true`  → `SearchResponseDoppler`    (each marketplace key is an array of phase variants).\n","oneOf":[{"$ref":"#/components/schemas/SearchResponseNonDoppler"},{"$ref":"#/components/schemas/SearchResponseDoppler"}]},"MarketSalesSearchResponse":{"type":"object","properties":{"market_hash_names":{"type":"array","items":{"type":"string"}},"count":{"type":"integer"},"data":{"type":"array","items":{"$ref":"#/components/schemas/MarketSaleSearchItem"}},"source":{"type":"string","example":"Market Sales"},"requestor":{"type":"string","format":"email"},"plan":{"type":"string"},"timestamp":{"$ref":"#/components/schemas/UpdatedAt"}},"required":["market_hash_names","count","data","source","timestamp"]},"MarketSaleSearchItem":{"allOf":[{"$ref":"#/components/schemas/MarketSalesCsvSalesRow"},{"type":"object","properties":{"stickers":{"type":"array","items":{"$ref":"#/components/schemas/MarketSalesCsvStickersRow"}},"keychains":{"type":"array","items":{"$ref":"#/components/schemas/MarketSalesCsvKeychainsRow"}}},"required":["stickers","keychains"]}]},"MarketSalesCsvSalesRow":{"description":"One row in `sales.csv` inside the ZIP export.","type":"object","properties":{"marketplace":{"type":"string","enum":["csfloat","youpin","skinport"]},"sale_id":{"type":"string","description":"UInt64 as string."},"market_hash_name":{"type":"string"},"price":{"type":"integer","description":"Sale price in cents."},"sold_at":{"type":"string","example":"2026-07-06 12:59:12.668"},"def_index":{"type":"integer"},"paint_index":{"type":"integer"},"paint_seed":{"type":"integer"},"float_value":{"type":"number"},"is_stattrak":{"type":"integer","enum":[0,1]},"is_souvenir":{"type":"integer","enum":[0,1]},"rarity":{"type":"integer"},"quality":{"type":"integer"},"cs2_img":{"type":"string"},"fetched_at":{"type":"string","example":"2026-07-06 12:59:12.668"}}},"MarketSalesCsvStickersRow":{"description":"One row in `stickers.csv` inside the ZIP export.","type":"object","properties":{"marketplace":{"type":"string"},"sale_id":{"type":"string"},"sold_at":{"type":"string"},"position_idx":{"type":"integer"},"sticker_id":{"type":"string"},"slot":{"type":"integer"},"sticker_name":{"type":"string"},"wear":{"type":"number"},"offset_x":{"type":"number"},"offset_y":{"type":"number"},"rotation":{"type":"number"},"reference_price":{"type":"integer","description":"Reference price in cents."},"reference_quantity":{"type":"integer"},"reference_updated":{"type":"string"},"fetched_at":{"type":"string"}}},"MarketSalesCsvKeychainsRow":{"description":"One row in `keychains.csv` inside the ZIP export.","type":"object","properties":{"marketplace":{"type":"string"},"sale_id":{"type":"string"},"sold_at":{"type":"string"},"position_idx":{"type":"integer"},"keychain_id":{"type":"string"},"slot":{"type":"integer"},"keychain_name":{"type":"string"},"pattern":{"type":"integer"},"offset_x":{"type":"number"},"offset_y":{"type":"number"},"offset_z":{"type":"number"},"reference_price":{"type":"integer"},"reference_quantity":{"type":"integer"},"reference_updated":{"type":"string"},"fetched_at":{"type":"string"}}},"Error":{"type":"object","description":"Current error envelope. A future release may add an optional\n`error_details` object next to `error`; the `error` string will\nremain for backwards compatibility.\n","properties":{"error":{"type":"string","description":"Human-readable error message.","example":"Invalid API key"}},"required":["error"]}}}}