Developer API

Steam Profile API

解析任意格式的 SteamID,获取资料元数据,每次调用最多批量获取 100 个资料。

Endpoints

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

GET /steam/api/profile
GET /steam/api/profile/batch
GET /steam/api/info/steamid
GET /explore/api/profile

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

About this API

Steam Profile API 规整每一种 Steam 标识符变体——SteamID32、SteamID64、个性化网址、资料网址——并返回一个干净的资料 DTO,包含用户名、头像、国家/地区、创建日期和交易资格。

FAQ

支持哪些 Steam 标识符格式?

SteamID32、SteamID64、个性化网址、完整资料网址。/steam/api/info/steamid 可在这些格式之间相互转换。

我可以检查某个资料是否可交易吗?

可以——/steam/api/profile/trade-eligibility 在一次调用中返回交易封禁状态、锁定状态和 Steam Guard 要求。

我如何批量获取资料?

使用 /steam/api/profile/batch 并传入一份 SteamID 列表(每次调用最多 100 个)。响应以 SteamID 为键。

Start building with the Steam Profile API

One key, every Steam endpoint.