Developer API

Currency API

Курсы валют в реальном времени для конвертации цен Steam и marketplace между 100+ поддерживаемыми валютами.

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= и конвертирует на лету. Но иногда нужны сырые курсы: для этого служит этот endpoint.

FAQ

Какие валюты поддерживаются?

Более 100, включая USD, EUR, GBP, CNY, RUB, BRL, PLN, JPY. GET /currency/api/list для полного списка.

Как часто обновляются курсы?

Ежедневно из upstream ECB данных. Кешируются на сервере для производительности.

Могу ли я конвертировать цены inline на других эндпоинтах?

Да — каждый эндпоинт цен принимает ?currency=EUR (или другую). Конверсия применяется на сервере с использованием той же таблицы курсов.

Start building with the Currency API

One key, every Steam endpoint.