# How to Get Historical CS2 Skin Prices

Historical data answers: *where was this skin priced last month, last year, on YouPin vs Skinport?* CSPriceAPI stores **hourly and daily price history** per marketplace and shows interactive charts on every skin detail page for free.

## REST API — per-market history

```bash
curl -s "https://api.cspriceapi.com/v1/prices/youpin/history?market_hash_name=AK-47%20%7C%20Redline%20(Field-Tested)" \
  -H "Authorization: Bearer YOUR_API_KEY"
```

Replace `youpin` with `buff163`, `skinport`, `skinbaron`, `csfloat`, `market-csgo`, etc.

Interactive docs: [GET /v1/prices/{market}/history](/docs/api/prices-market-history).

## Web charts (no API key)

Every skin in [Browse Skins](/apps/browseskins) has a price-history chart with per-market overlays. Open any item → scroll to the chart section.



## Hourly vs daily

Use the `resolution` query parameter on the same endpoint:

| Resolution | Best for | Range |
|---|---|---|
| `hourly` | Intraday charts, short-term moves | Up to ~100 days per request |
| `daily` (default) | Multi-year trends, backtests | Full stored history |

```bash
# Intraday (hourly listing snapshots)
curl -s "https://api.cspriceapi.com/v1/prices/youpin/history?market_hash_name=AK-47%20%7C%20Redline%20(Field-Tested)&resolution=hourly" \
  -H "Authorization: Bearer YOUR_API_KEY"

# Multi-year (daily closes)
curl -s "https://api.cspriceapi.com/v1/prices/youpin/history?market_hash_name=AK-47%20%7C%20Redline%20(Field-Tested)&resolution=daily" \
  -H "Authorization: Bearer YOUR_API_KEY"
```

Listing prices are captured roughly every hour; daily points roll those up for long-range charts.

The dedicated [Historical Data product](/historical-data) exposes bulk history feeds for backtesting and portfolio analytics.

## Use cases

| Job | Approach |
|---|---|
| Trend chart on a dashboard | `/v1/prices/{market}/history` + your chart library |
| Backtesting a strategy | Daily series + fee model; watch for survivorship bias |
| Portfolio P&L over time | History + acquisition cost from your ledger |
| Spotting manipulation | Cross-check listing history vs [sales data](/sales-data) |

## Related endpoints

- `GET /v1/market-sales/search` — completed sales by item name
- `GET /v1/prices/latest` — current snapshot to anchor the latest point

## Related guides

- [Current CS2 prices](/resources/how-to-get-current-cs2-item-prices)
- [BUFF163 price history](/resources/how-to-get-buff163-price-history)
- [Sale volume & listing counts](/resources/how-to-get-cs2-sale-volume)
- [Data coverage](/docs/data-coverage)
- [Historical Data landing page](/historical-data)
