开发者 API

Steam Price History API

为任意 Steam 物品提供每日快照式价格历史——非常适合图表、投资组合追踪器和趋势分析。

Steam Price History API 接口

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

GET /steam/api/history
GET /steam/api/items/history

Steam Price History API — 快速开始

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

  • 一个 API 密钥,规范化响应。
  • 请求速率限制取决于你的套餐级别。
  • 完整架构请参阅 API 参考文档.
API 请求
# curl with API key
curl "https://www.steamwebapi.com/steam/api/history?key=$KEY"
# PHP
$res = file_get_contents('https://www.steamwebapi.com/steam/api/history?key=' . $KEY);
$data = json_decode($res, true);
# Node.js
const r = await fetch(`https://www.steamwebapi.com/steam/api/history?key=${KEY}`);
const data = await r.json();

关于此 API

Sales History API 暴露 Steam 为每件市场物品追踪的每日价格历史。用它在投资组合仪表盘上驱动蜡烛图,或检测价格趋势。

Steam Price History API — 常见问题

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

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

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

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

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

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

开始使用 Steam Price History API

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