开发者 API

CS2 Marketindex API

追踪聚合的 CS2 市场——当前指数值、完整历史,以及在我们覆盖的每一个市场上的并排对比。

Built for production

Production-ready Steam data from the leading all-in-one Steam data platform.

Build a focused Steam data workflow without operating and normalizing the underlying data sources yourself.

MarketplaceTrading platformAnalytics dashboardCommunity application
DATA

What you receive

Consistent JSON, documented endpoints, source-aware data and product-specific limits.

VERIFY

Inspect real data first

Open the bounded live market data pages to see response fields, sources and update times.

Explore live market data →
DEPLOY

Choose standard or custom delivery

CS2 Marketindex API 接口

所有接口都返回有文档说明的响应,并使用相同的 Steamwebapi 密钥参数。

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

CS2 Marketindex API — 快速开始

与其他有文档说明的接口一样,使用相同的 Steamwebapi 密钥参数。从控制面板获取 API 密钥,几分钟内即可发送第一个请求。

  • 一个 API 密钥,规范化响应。
  • 请求速率限制取决于你的套餐级别。
  • 完整架构请参阅 API 参考文档.
API 请求
# curl with API key
curl -H "X-Api-Key: $KEY" "https://www.steamwebapi.com/steam/api/market-index/cs2"
# PHP
$client = \Symfony\Component\HttpClient\HttpClient::create();
$res = $client->request('GET', 'https://www.steamwebapi.com/steam/api/market-index/cs2', ['headers' => ['X-Api-Key' => $KEY]]);
$data = $res->toArray();
# Node.js
const r = await fetch(`https://www.steamwebapi.com/steam/api/market-index/cs2`, { headers: { 'X-Api-Key': KEY } });
const data = await r.json();

关于此 API

Marketindex API 在 CS2 经济上计算一个加权指数:一个能反映市场上涨或下跌的单一数字。

CS2 Marketindex API — 常见问题

Steamwebapi 是什么,提供哪些数据?

Steamwebapi 是一个独立平台,为生产集成提供标准化的库存、市场、资料和 CS2 数据。

支持哪些 Steam 游戏和 API 端点?

已配置游戏包括 CS2、Dota 2、Rust 和 TF2;当前端点覆盖范围请查看文档。

集成 API 需要多久,示例在哪里?

创建密钥,选择端点,并使用文档、实时预览或 GitHub 中的认证示例。

开始使用 CS2 Marketindex API

一个密钥,访问所有 Steam 接口。

Operational proof

The leading Steam data platform for production applications.

Established in 2018 and trusted by developers, marketplaces and trading platforms.

10,094 registered developer accounts
8 supported games
166,018 marketable items
14 active marketplaces
47,321,725 active listings
2018 operating since
Used across the Steam ecosystem Skinpull Esportfire Eliteskins RentSkins Botchicken
Direct support

Cannot find the right endpoint, data source or plan?

Tell the Steamwebapi team what you are building. A short sentence is enough — we will help you identify the right product and the simplest way to integrate it.

S
Steamwebapi team Product and integration support
Hi — what are you building, and what could you not find? Send us the question exactly as you have it.
Opens our existing live support chat.