---
title: "📊 CS2 Market Index - Real-time Market Statistics"
method: GET
path: "/steam/api/market-index/cs2"
tags: ["Market Index"]
---

# 📊 CS2 Market Index - Real-time Market Statistics

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

## Request

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

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

    💬 **What this endpoint does:**
    - Provides real-time CS2 market statistics and price indices.
    - Returns global market overview or specific segment details.
    - Includes price indices, trading volumes, market sentiment, and trends.

    🛠️ **Features:**
    - **Global Overview** (no params): Returns complete market data with all segments and `available_segments` listing all valid keys.
    - **Segment Details** (with params): Returns detailed data for a specific segment using `segment_type` and `segment_key`.
    - Supports multiple output formats (JSON, CSV, XML, etc.).

    🌐 **How to use:**
    - Call without parameters for global market overview.
    - Use `segment_type` and `segment_key` to filter by specific categories.
    - Example: `?segment_type=item_group&segment_key=knife` for knife market data.

    📋 **Available Segment Types:**
    - `item_group`: knife, glove, rifle, pistol, smg, shotgun, agent, sticker, container...
    - `rarity`: Contraband, Covert, Classified, Restricted, Mil-Spec Grade...
    - `wear`: fn (Factory New), mw, ft, ww, bs, vanilla
    - `quality`: normal, souvenir, tournament, genuine...
    - `stattrak`: yes, no
    - `collection`: The 2018 Inferno Collection, The Dust 2 Collection...

## Query parameters

- `segment_type` 'item_group' | 'rarity' | 'wear' | 'quality' | 'stattrak' | 'collection'
- `segment_key` string
- `format` string
- `pretty` '0' | '1'

## Response `200`

Market data (global overview or segment details)

- unknown

## Other responses

- `400`: Invalid parameters
- `404`: No data available

---

[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)
