Developer API

Steam Inventory API

Recupera cualquier inventario de usuario de Steam a través de un endpoint REST, sin el drama de los rate-limits. Soporte batch de hasta 100 inventarios por solicitud.

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

Recuperar inventarios de Steam de forma ingenua acaba en 429 en cuestión de minutos. La Steam Inventory API se encarga del trabajo pesado: buffering de solicitudes, caché inteligente, reintentos, normalización de respuesta.

FAQ

¿Qué juegos soporta la Inventory API?

Cualquier juego comunitario de Steam con inventarios públicos: CS2, Dota 2, Rust, TF2, el propio Steam y más. Pasa el appId del juego.

¿Cómo hago batch-fetch?

Haz un POST de una lista de SteamIDs a /steam/api/inventory/batch (máx. 100 por llamada). La respuesta está indexada por SteamID.

¿Tengo que gestionar los rate-limits de Steam?

No. Gestionamos los rate-limits del lado del servidor. Tu código solo ve una respuesta JSON limpia.

Start building with the Steam Inventory API

One key, every Steam endpoint.