---
title: "📈 CS2 Market Index History - Historical Price & Volume Data"
method: GET
path: "/steam/api/market-index/cs2/history"
tags: ["Market Index"]
---

# 📈 CS2 Market Index History - Historical Price & Volume Data

`GET /steam/api/market-index/cs2/history`

## Request

- Base URL: `https://www.steamwebapi.com`
- URL: `https://www.steamwebapi.com/steam/api/market-index/cs2/history`
- Auth: API key in query parameter `key`

Baseurl: https://www.steamwebapi.com/steam/api/market-index/cs2/history?key=YOUR_API_KEY

    💬 **What this endpoint does:**
    - Returns historical data for any metric with flexible time aggregation.
    - Supports OHLC (Open/High/Low/Close) format for aggregated intervals.
    - Perfect for building charts, trend analysis, and market dashboards.

    🛠️ **Features:**
    - **Multiple Metrics:** Track price index, volume, turnover, listings, and more.
    - **Flexible Intervals:** From raw 1-minute data to yearly aggregates.
    - **Multi-Metric Mode:** Request multiple metrics in a single API call.
    - **OHLC Format:** Aggregated intervals return candlestick-ready data.
    - **Segment Support:** Get history for any segment type/key combination.

    📊 **Available Metrics:**
    - `priceindex` - Steam price index (default)
    - `buyorderpriceindex` - Buy order price index
    - `sold24h`, `sold7d`, `sold30d` - Sales volume
    - `turnover24h` - USD turnover
    - `listings` - Active listings count
    - `buyorders` - Active buy orders count
    - `avgspreadpct` - Average bid-ask spread
    - `avglistingprice` - Average listing price
    - `sellthrough24hpct` - Sell-through rate
    - `listingvalue` - Total listing value
    - `orderbookvalue` - Total order book value
    - `buypressureratio` - Buy/sell pressure ratio
    - `gainerscount`, `loserscount`, `neutralcount` - Market sentiment
    - `itemcount` - Marketable item count

    ⏱️ **Available Intervals:**
    - `raw` - Every data point (1-minute buckets)
    - `fivemin` - 5-minute aggregates
    - `tenmin` - 10-minute aggregates
    - `hourly` - Hourly aggregates
    - `sixhours` - 6-hour aggregates
    - `daily` - Daily aggregates
    - `threedays` - 3-day aggregates
    - `weekly` - Weekly aggregates
    - `monthly` - Monthly aggregates
    - `threemonths` - Quarterly aggregates
    - `sixmonths` - Semi-annual aggregates
    - `yearly` - Annual aggregates

    🎯 **Example Requests:**
    - 24h raw price index: `?metric=priceindex&from=-24hours`
    - Daily volume for 30 days: `?metric=sold24h&interval=daily&from=-30days`
    - Multiple metrics: `?metrics=priceindex,sold24h,turnover24h&interval=hourly`
    - Knife segment history: `?segment_type=item_group&segment_key=knife&metric=priceindex`

## Query parameters

- `metric` string
- `metrics` string
- `interval` 'raw' | 'fivemin' | 'tenmin' | 'hourly' | 'sixhours' | 'daily' | 'threedays' | 'weekly' | 'monthly' | 'threemonths' | 'sixmonths' | 'yearly'
- `segment_type` 'global' | 'item_group' | 'rarity' | 'wear' | 'quality' | 'stattrak' | 'collection'
- `segment_key` string
- `from` string
- `to` string
- `limit` integer
- `format` string
- `pretty` '0' | '1'

## Response `200`

Historical market data (single metric mode)

- unknown

## Other responses

- `202`: Historical market data (multi-metric mode)

---

[API](https://skmtc.dev/steamwebapi/apis/steamwebapi-com-third-party-steam-market-api-documentation.md) · [All operations](https://skmtc.dev/steamwebapi/apis/steamwebapi-com-third-party-steam-market-api-documentation/llms.txt) · [OpenAPI document](https://skmtc.dev/steamwebapi/apis/steamwebapi-com-third-party-steam-market-api-documentation/revisions/f9a4109cbda6?raw)
