开发者 API

Steam Inventory API

通过一个 REST 端点获取任意 Steam 用户的库存——免受速率限制困扰。支持每次请求最多批量获取 20 个库存。

Built for production

The established Steam Inventory API for production marketplaces and applications.

Build inventory valuation, marketplace deposit, portfolio and trading workflows with normalized Steam asset data.

MarketplaceInventory valuationTrading platformPortfolio application
DATA

What you receive

Assets, descriptions, tradability, marketability, item images, metadata and price enrichment for supported games.

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

Steam Inventory API 接口

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

GET /steam/api/inventory
GET /steam/api/inventory/batch

Steam Inventory API — 快速开始

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

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

关于此 API

用朴素方式获取 Steam 库存几分钟内就会撞上 429。Steam Inventory API 承担了繁重工作:请求缓冲、智能缓存、重试、响应规整。

Steam Inventory API — 常见问题

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

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

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

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

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

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

开始使用 Steam Inventory 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.