Developer API

Currency API

用于在 100+ 种受支持货币之间换算 Steam 和市场价格的实时汇率。

Endpoints

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

GET /currency/api/list
GET /currency/api/exchange

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

About this API

本 API 的每个价格端点都接受一个 ?currency= 参数并即时换算。但有时你需要原始汇率:这正是该端点的用途。

FAQ

支持哪些货币?

100 多种,包括 USD、EUR、GBP、CNY、RUB、BRL、PLN、JPY。GET /currency/api/list 获取完整列表。

汇率多久刷新一次?

每日从上游 ECB 数据刷新。在服务端缓存以提升性能。

我可以在其他端点上内联换算价格吗?

可以——每个价格端点都接受 ?currency=EUR(或其他)。换算在服务端通过同一张汇率表应用。

Start building with the Currency API

One key, every Steam endpoint.