Market Index
π CS2 Market Index - Real-time Market Statistics
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...
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
Query parameters
Your API key for authentication. Retrieve it from your Dashboard (top-right corner).
segment_type'item_group' | 'rarity' | 'wear' | 'quality' | 'stattrak' | 'collection'
Segment type for filtering. If omitted, returns global overview with all segments.
Types:
- item_group: Weapon categories (knife, rifle, pistol, etc.)
- rarity: Item rarity (Covert, Classified, Mil-Spec Grade, etc.)
- wear: Skin condition (fn, mw, ft, ww, bs, vanilla)
- quality: Item quality (normal, souvenir, stattrak base, etc.)
- stattrak: StatTrak status (yes, no)
- collection: Game collections
segment_keystring
Segment key (required if segment_type is set). Call the API without parameters to get available_segments with all valid keys.
Common keys by type:
- item_group: knife, glove, rifle, pistol, smg, sticker, agent, container...
- rarity: Covert, Classified, Restricted, Mil-Spec Grade, Consumer Grade...
- wear: fn, mw, ft, ww, bs, vanilla
- quality: normal, souvenir, tournament, genuine...
- stattrak: yes, no
formatstring
Response format. Default: json. Available: csv, xml, html, gzip, zip, ndjson, mysql, mysql_with_table, pgsql, pgsql_with_table, mongo
pretty'0' | '1'
Pretty-print JSON (set to 1 for json/gzip/zip formats). Default: 0
Response
Market data (global overview or segment details)
unknown required
Changes
No recorded changes to this operation across all 1 revision of this API.