Developer API

CS2 Collection API

每一个 CS2 武器箱、胶囊和收藏品——含其掉落池、稀有度分布和实时价格——通过一个 REST 端点提供。

Endpoints

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

GET /steam/api/cs/collections
GET /steam/api/cs/collection/{slug}
GET /steam/api/cs/containers

CS2 Collection 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/cs/collections?key=$KEY"
# PHP
$res = file_get_contents('https://www.steamwebapi.com/steam/api/cs/collections?key=' . $KEY);
$data = json_decode($res, true);
# Node.js
const r = await fetch(`https://www.steamwebapi.com/steam/api/cs/collections?key=${KEY}`);
const data = await r.json();

About this API

Collection API 为任意 CS2 容器、胶囊或收藏品提供完整的集合列表:内含哪些物品、它们的稀有度、掉落权重和当前市场价格。

FAQ

Are containers and collections both included?

Yes — both. Containers (cases/capsules) and collections (map drop pools) share the same DTO.

Are prices live?

Yes — each item in a collection is joined with its current Steam price.

How do I list every collection?

GET /steam/api/cs/collections. For a single one by slug, GET /steam/api/cs/collection/{slug}.

Start building with the CS2 Collection API

One key, every Steam endpoint.