金
Currency API (jsDelivr) API
3 endpointsFinance & CryptoGlobalsocial:read3 real examples
Returns currency and crypto codes, current exchange rates of a base currency, and historical rates from 2024-03-06.
View as Markdown| GET | /fxjsdelivr/currencies | The currency and crypto codes the API publishes, with their names. |
| GET | /fxjsdelivr/rates | The value of one unit of a base currency in every other currency, or in the listed ones. |
| GET | /fxjsdelivr/historical | The value of one unit of a base currency in every other currency on one past day, from 2024-03-06. |
currencies
GET
/v1/fxjsdelivr/currenciesThe currency and crypto codes the API publishes, with their names.
scope social:read1 unitcached 24 hpaginated
Parameters
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
2 fields
code | string |
name | string |
curl "https://api.hoshime.com/v1/fxjsdelivr/currencies" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/fxjsdelivr/currencies", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/fxjsdelivr/currencies", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "code": "1inch", "name": "1inch" }, { "code": "aave", "name": "Aave" } ], "meta": { "cached": false, "endpoint": "currencies", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "fxjsdelivr", "requestId": "req_2Xb9kQ…", "units": 1 } }
rates
GET
/v1/fxjsdelivr/ratesThe value of one unit of a base currency in every other currency, or in the listed ones.
scope social:read1 unitcached 30 min
Parameters
basestring | Base currency or crypto code, such as usd or btc. default usde.g. usd |
symbolsstring | Comma-separated codes to return, such as eur,gbp. Omit it for every code. e.g. eur,gbp |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
5 fields
base | string |
date | string |
items | Rate[] |
code | string |
rate | number (double) |
curl "https://api.hoshime.com/v1/fxjsdelivr/rates?base=usd&symbols=eur%2Cgbp" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/fxjsdelivr/rates?base=usd&symbols=eur%2Cgbp", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/fxjsdelivr/rates?base=usd&symbols=eur%2Cgbp", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": { "base": "usd", "date": "2026-11-06", "items": [ { "code": "eur", "rate": 0.89309043 }, { "code": "gbp", "rate": 0.7448442 } ] }, "meta": { "cached": false, "endpoint": "rates", "fetchedAt": "2026-11-06T09:41:00Z", "platform": "fxjsdelivr", "requestId": "req_2Xb9kQ…", "units": 1 } }
historical
GET
/v1/fxjsdelivr/historicalThe value of one unit of a base currency in every other currency on one past day, from 2024-03-06.
scope social:read1 unitcached 24 h
Parameters
datestring required | Day in YYYY-MM-DD form, from 2024-03-06 to today. e.g. 2024-03-06 |
basestring | Base currency or crypto code, such as usd or btc. default usde.g. eur |
symbolsstring | Comma-separated codes to return, such as eur,gbp. Omit it for every code. e.g. usd,gbp |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
5 fields
base | string |
date | string |
items | Rate[] |
code | string |
rate | number (double) |
curl "https://api.hoshime.com/v1/fxjsdelivr/historical?date=2024-03-06&base=eur&symbols=usd%2Cgbp" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/fxjsdelivr/historical?date=2024-03-06&base=eur&symbols=usd%2Cgbp", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/fxjsdelivr/historical?date=2024-03-06&base=eur&symbols=usd%2Cgbp", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": { "base": "eur", "date": "2024-03-06", "items": [ { "code": "gbp", "rate": 0.85459559 }, { "code": "usd", "rate": 1.08498675 } ] }, "meta": { "cached": false, "endpoint": "historical", "fetchedAt": "2026-11-06T09:41:00Z", "platform": "fxjsdelivr", "requestId": "req_2Xb9kQ…", "units": 1 } }