Developer API

CS2 Collection API

Every CS2 case, capsule and collection — with their drop pools, rarity distribution and live prices — through one REST endpoint.

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

The Collection API gives you the full set list for any CS2 container, capsule or collection: which items are inside, their rarity, drop weights, and current market prices. Plug it into a case-opening tool, a portfolio valuation engine, or a meta-database for the CS2 economy.

Use /steam/api/cs/collections for the index and /steam/api/cs/collection/{slug} for a single set.

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.