Developer API

CS2 Float API

按 asset 提供 float 值、paint seed、贴纸位置和检视截图——可通过检视链接或 asset ID 查询。

Endpoints

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

GET /steam/api/float
GET /steam/api/float/assets
GET /steam/api/float/screenshot
GET /float/api/item

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

About this API

CS2 Float API 为任意 CS2 asset 返回精确的 float、paint seed、贴纸布局以及服务端渲染的检视截图。可接入 float 感知的市场、低 float 战利品猎手或套利机器人。

FAQ

Float API 返回什么?

float 值、paint seed、paint index、贴纸位置、磨损度,以及一个服务端渲染的检视截图 URL。

我可以通过检视链接查询吗?

可以——将检视链接传给 /steam/api/float 或 /float/api/item,即可获得该 asset 的完整 DTO。

截图有多快?

首次请求会实时渲染(约 2-5 秒)。之后相同的检视链接会被缓存并即时返回。

Start building with the CS2 Float API

One key, every Steam endpoint.