OpenSkin API endpoint
Read a CS2 inventory
GET /v2/inventories/{steam_id}
Returns any public Steam inventory with one record per asset and exact Valve-provided item state when available. Ordinary reads return the first saved public observation at any age and avoid a Steam request. An explicit max_age_seconds may fetch a newer observation while retaining the saved copy. A successful force_refresh request replaces it; a private response invalidates it. A Platform API key authenticates the API caller, and a publicly visible Steam inventory is the owner's sole requirement.
Authentication
Send a Platform API key with permission to use this endpoint in the X-API-Key header.
Parameters
| Name | Location | Required | Description |
|---|---|---|---|
steam_id | path | Yes | See the OpenAPI schema for accepted values. |
max_age_seconds | query | No | Maximum observation age before attempting Steam. If omitted, use the saved observation at any age. Cannot accompany force_refresh=true. |
force_refresh | query | No | Attempt Steam even when a cached observation qualifies; a successful public response replaces the saved durable observation. Default false. |
stale_if_error_seconds | query | No | Maximum observation age allowed only after a Steam failure or rate limit; default 1800. |
Response meaning
200- Normalized inventory snapshot
400- Invalid freshness policy (invalid_inventory_freshness)
401- V2Unauthorized
403- V2Forbidden
Request example
curl 'https://api-v2.openskin.dev/v2/inventories/76561198000000000'\
-H 'X-API-Key: osk_live_...' Limits and retries
Check the listed status codes before retrying. If a request uses a unique request key, reuse that key only when repeating the same request. If a list returns next_cursor, send it unchanged in the next request.
Last updated .