Skip to content

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/currenciesThe currency and crypto codes the API publishes, with their names.
GET/fxjsdelivr/ratesThe value of one unit of a base currency in every other currency, or in the listed ones.
GET/fxjsdelivr/historicalThe value of one unit of a base currency in every other currency on one past day, from 2024-03-06.

currencies

GET/v1/fxjsdelivr/currencies

The currency and crypto codes the API publishes, with their names.

scope social:read1 unitcached 24 hpaginated

Parameters

tunnel
string
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.
proxy
string
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.
profileId
string
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
codestring
namestring
curl "https://api.hoshime.com/v1/fxjsdelivr/currencies" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "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/rates

The value of one unit of a base currency in every other currency, or in the listed ones.

scope social:read1 unitcached 30 min

Parameters

base
string
Base currency or crypto code, such as usd or btc.
default usde.g. usd
symbols
string
Comma-separated codes to return, such as eur,gbp. Omit it for every code.
e.g. eur,gbp
tunnel
string
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.
proxy
string
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.
profileId
string
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
basestring
datestring
itemsRate[]
codestring
ratenumber (double)
curl "https://api.hoshime.com/v1/fxjsdelivr/rates?base=usd&symbols=eur%2Cgbp" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "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/historical

The 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

date
string
required
Day in YYYY-MM-DD form, from 2024-03-06 to today.
e.g. 2024-03-06
base
string
Base currency or crypto code, such as usd or btc.
default usde.g. eur
symbols
string
Comma-separated codes to return, such as eur,gbp. Omit it for every code.
e.g. usd,gbp
tunnel
string
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.
proxy
string
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.
profileId
string
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
basestring
datestring
itemsRate[]
codestring
ratenumber (double)
curl "https://api.hoshime.com/v1/fxjsdelivr/historical?date=2024-03-06&base=eur&symbols=usd%2Cgbp" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "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
  }
}
esc
↑↓ move↵ open