{"openapi":"3.1.0","info":{"title":"SkinCash Public API","version":"1.0.0","summary":"Live CS2 skin buy prices from the SkinCash marketplace.","description":"A public, no-authentication feed of live buy prices for CS2 (CS:GO) skins on SkinCash. Intended for price-comparison sites, aggregators and browser extensions. Prices are in USD dollars (2-decimal) and refresh roughly every 5 minutes. For listing/partnership enquiries: admin@skincash.gg.","contact":{"name":"SkinCash","email":"admin@skincash.gg","url":"https://skincash.gg/developers"},"termsOfService":"https://skincash.gg/terms"},"servers":[{"url":"https://api.skincash.gg/v1","description":"Production"}],"paths":{"/prices":{"get":{"operationId":"getPrices","summary":"Full price feed","description":"Returns every item currently on sale with its lowest buy price, available quantity and a deep link. Sorted most-expensive first. Supports gzip and conditional GET (If-None-Match / If-Modified-Since → 304).","responses":{"200":{"description":"The full catalog.","headers":{"ETag":{"description":"Strong content ETag for conditional GET.","schema":{"type":"string"}},"Last-Modified":{"description":"When the feed was last rebuilt.","schema":{"type":"string"}},"Cache-Control":{"description":"public, max-age=300","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PriceFeed"},"example":{"currency":"USD","updated_at":"2026-08-05T12:00:00.000Z","count":25812,"items":[{"market_hash_name":"AK-47 | Redline (Field-Tested)","price":14.5,"quantity":12,"item_page":"https://skincash.gg/en/market/item/ak-47-redline-field-tested"}]}}}},"304":{"description":"Not modified — your cached copy is current."}}}},"/prices/{market_hash_name}":{"get":{"operationId":"getItemPrice","summary":"Single-item price","description":"Look up the current buy price for one item by its exact Steam market_hash_name (URL-encoded).","parameters":[{"name":"market_hash_name","in":"path","required":true,"description":"Exact Steam market_hash_name, URL-encoded.","schema":{"type":"string","maxLength":200},"example":"AK-47 | Redline (Field-Tested)"}],"responses":{"200":{"description":"The item price.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemPrice"},"example":{"currency":"USD","updated_at":"2026-08-05T12:00:00.000Z","market_hash_name":"AK-47 | Redline (Field-Tested)","price":14.5,"quantity":12,"item_page":"https://skincash.gg/en/market/item/ak-47-redline-field-tested"}}}},"400":{"description":"Invalid market_hash_name."},"404":{"description":"No live price for this item."}}}},"/catalog":{"get":{"operationId":"getCatalog","summary":"Item metadata","description":"Public metadata (image, type, rarity) for every item on sale — no prices. Lets an aggregator render and join SkinCash listings without scraping. Same 5-min cache + conditional GET as /prices.","responses":{"200":{"description":"The catalog.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Catalog"},"example":{"updated_at":"2026-08-05T12:00:00.000Z","count":25812,"items":[{"market_hash_name":"AK-47 | Redline (Field-Tested)","image":"https://community.cloudflare.steamstatic.com/economy/image/…","type":"Rifle","rarity":"Classified"}]}}}},"304":{"description":"Not modified — your cached copy is current."}}}},"/search":{"get":{"operationId":"search","summary":"Name search","description":"Search items by (partial) name and get the buy price plus a canonical deep link — a compare-and-click-through surface for price-comparison tools and browser extensions. Exact/prefix matches rank first.","parameters":[{"name":"q","in":"query","required":true,"description":"Search text (2–200 chars, case-insensitive substring).","schema":{"type":"string","minLength":2,"maxLength":200},"example":"redline"},{"name":"limit","in":"query","required":false,"description":"Max results (1–100, default 50).","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}}],"responses":{"200":{"description":"Matching items.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchResult"},"example":{"currency":"USD","updated_at":"2026-08-05T12:00:00.000Z","query":"redline","count":1,"items":[{"market_hash_name":"AK-47 | Redline (Field-Tested)","price":14.5,"quantity":12,"item_page":"https://skincash.gg/en/market/item/ak-47-redline-field-tested"}]}}}},"400":{"description":"q must be 2–200 characters."}}}},"/openapi.json":{"get":{"operationId":"getOpenApi","summary":"OpenAPI spec","description":"This machine-readable OpenAPI 3.1 specification.","responses":{"200":{"description":"The OpenAPI document.","content":{"application/json":{"schema":{"type":"object"}}}}}}}},"components":{"schemas":{"PriceFeed":{"type":"object","required":["currency","updated_at","count","items"],"properties":{"currency":{"type":"string","enum":["USD"],"description":"ISO-4217 currency code."},"updated_at":{"type":"string","format":"date-time","description":"When the feed was rebuilt; freshness of every row."},"count":{"type":"integer","description":"Number of items in the feed."},"items":{"type":"array","items":{"$ref":"#/components/schemas/Item"}}}},"Item":{"type":"object","required":["market_hash_name","price","quantity","item_page"],"properties":{"market_hash_name":{"type":"string","description":"Exact Steam market_hash_name."},"price":{"type":"number","description":"Lowest buy price in USD dollars (2-decimal).","example":14.5},"quantity":{"type":"integer","minimum":1,"description":"Units available at or above this price."},"item_page":{"type":"string","format":"uri","description":"Canonical SkinCash item page."}}},"ItemPrice":{"type":"object","required":["currency","updated_at","market_hash_name","price","quantity","item_page"],"properties":{"currency":{"type":"string","enum":["USD"]},"updated_at":{"type":"string","format":"date-time"},"market_hash_name":{"type":"string"},"price":{"type":"number"},"quantity":{"type":"integer","minimum":1},"item_page":{"type":"string","format":"uri"}}},"Catalog":{"type":"object","required":["updated_at","count","items"],"properties":{"updated_at":{"type":"string","format":"date-time"},"count":{"type":"integer"},"items":{"type":"array","items":{"$ref":"#/components/schemas/CatalogItem"}}}},"CatalogItem":{"type":"object","required":["market_hash_name"],"properties":{"market_hash_name":{"type":"string","description":"Exact Steam market_hash_name."},"image":{"type":["string","null"],"description":"CDN image URL (nullable)."},"type":{"type":["string","null"],"description":"Item type/category (nullable)."},"rarity":{"type":["string","null"],"description":"Rarity tier (nullable)."}}},"SearchResult":{"type":"object","required":["currency","updated_at","query","count","items"],"properties":{"currency":{"type":"string","enum":["USD"]},"updated_at":{"type":"string","format":"date-time"},"query":{"type":"string"},"count":{"type":"integer"},"items":{"type":"array","items":{"$ref":"#/components/schemas/Item"}}}}},"securitySchemes":{"PartnerApiKey":{"type":"apiKey","in":"header","name":"Authorization","description":"OPTIONAL. The API is fully usable anonymously — a key only raises your per-IP rate limit. Send it as `Authorization: Bearer <key>` or as an `X-API-Key: <key>` header. Request a partner key at admin@skincash.gg."}}}}