Developer API

Steam Inventory API

Obtenha qualquer inventário de usuário Steam através de um endpoint REST — sem o drama dos rate-limits. Suporte batch para até 100 inventários por request.

Endpoints

All endpoints return JSON, accept the same auth header, and degrade with a normalised error envelope.

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

Steam Inventory API — quickstart

Same auth header as every other endpoint we ship. Get an API key from the dashboard and you're querying inside two minutes.

  • Single auth header, JSON response.
  • Rate limits scale with your plan tier.
  • Full schema in the API reference.
API Request
# curl with API key
curl "https://www.steamwebapi.com/steam/api/inventory?key=$KEY"
# PHP
$res = file_get_contents('https://www.steamwebapi.com/steam/api/inventory?key=' . $KEY);
$data = json_decode($res, true);
# Node.js
const r = await fetch(`https://www.steamwebapi.com/steam/api/inventory?key=${KEY}`);
const data = await r.json();

About this API

Buscar inventários Steam de forma naive termina em 429 em minutos. A Steam Inventory API faz o trabalho pesado: buffering de requests, cache inteligente, retries, normalização de resposta.

FAQ

Quais jogos a Inventory API suporta?

Todo jogo comunitário Steam com inventários públicos — CS2, Dota 2, Rust, TF2, Steam mesmo e mais. Passe o appId do jogo.

Como fazer batch-fetch?

POST uma lista de SteamIDs para /steam/api/inventory/batch (max 100 por call). A resposta é keyed por SteamID.

Preciso lidar com rate-limits Steam?

Não. Lidamos com rate-limits no lado do servidor. Seu código apenas vê uma resposta JSON limpa.

Start building with the Steam Inventory API

One key, every Steam endpoint.