通过一个 REST 端点获取任意 Steam 用户的库存——免受速率限制困扰。支持每次请求最多批量获取 100 个库存。
All endpoints return JSON, accept the same auth header, and degrade with a normalised error envelope.
/steam/api/inventory
/steam/api/inventory/batch
Same auth header as every other endpoint we ship. Get an API key from the dashboard and you're querying inside two minutes.
用朴素方式获取 Steam 库存几分钟内就会撞上 429。Steam Inventory API 承担了繁重工作:请求缓冲、智能缓存、重试、响应规整。
任何拥有公开库存的 Steam 社区游戏——CS2、Dota 2、Rust、TF2、Steam 本身等等。传入游戏的 appId 即可。
向 /steam/api/inventory/batch 提交一份 SteamID 列表(每次调用最多 100 个)。响应以 SteamID 为键。
不需要。我们在服务端处理速率限制。你的代码只会看到干净的 JSON 响应。
One key, every Steam endpoint.