# GET /v1/prices/{market}/history

Price History

- Interactive docs: [https://cspriceapi.com/docs/api/prices-market-history](https://cspriceapi.com/docs/api/prices-market-history)
- OpenAPI YAML: [https://cspriceapi.com/openapi.yaml](https://cspriceapi.com/openapi.yaml)
- Data coverage: [https://cspriceapi.com/docs/data-coverage](https://cspriceapi.com/docs/data-coverage)

### GET /v1/prices/{market}/history

Get historical prices for one skin (Enterprise)

Returns historical listing prices for **exactly one**
`market_hash_name` on a given marketplace.


| `resolution` | Source | Density | Typical retention |
|--------------|--------|---------|-------------------|
| `hourly` | `price_history_*` | up to 24 points/day (`slot`) | last ~100 days |
| `daily` (default) | `price_daily_*` | 1 point/day | full history |

Requesting `hourly` for a `from`/`to` window longer than **100 days**
returns `400` — use `daily` for longer ranges.


`youpin`, `buff163`, `c5game`, `skinport`, `skinbaron`, `market-csgo`,
`csfloat`, `dmarket`, `ecosteam`, `lisskins`, `skinland`, `shadowpay`,
`waxpeer`.


Prices are decimal **strings** in the marketplace's native currency
(`currency` in the response): CNY / EUR / USD. CSFloat history is stored
in USD cents and converted to USD for the response.


**Parameters**

| Name | In | Required | Description |
|---|---|---|---|
| `market` | path | required | Marketplace slug (same as live price routes). |
| `market_hash_name` | query | required | Steam `market_hash_name`. **Only one** name per request (no comma-separated lists, no repeated params).  |
| `resolution` | query | optional | Point density. Defaults to `daily`. |
| `from` | query | optional | Inclusive start date (`YYYY-MM-DD`). Defaults to 30 days before `to` for `hourly`, or 365 days before `to` for `daily`.  |
| `to` | query | optional | Inclusive end date (`YYYY-MM-DD`). Defaults to today (UTC). |

```bash
curl -s "https://api.cspriceapi.com/v1/prices/youpin/history" \
  -H "Authorization: Bearer YOUR_API_KEY"
```

---

Full request/response schemas: import [openapi.yaml](https://cspriceapi.com/openapi.yaml) or use the Scalar UI on the HTML page.
