Exchange rate history

GET https://api.api.sh/fx/v1/history
1 credit / call public data try it in the playground →

Time series of exchange rates between ECB reference currencies for any base: daily (up to 10 years a call), monthly averages or annual averages (up to 30 years), since 1999.

Every response includes credits_used: the credits this call cost.

Parameters

nametypedescription
base string Base currency (default EUR). Example: USD
symbolsrequired string Currencies, comma-separated (up to 30). Example: EUR,GBP
start_daterequired string First date (YYYY-MM-DD). Example: 2024-01-01
end_date string Last date (YYYY-MM-DD, default today). Example: 2024-03-31
frequency daily | monthly | annual daily (default), monthly or annual averages.

Every endpoint also takes fresh, raw, fields (see lean responses and caching).

Example

curl "https://api.api.sh/fx/v1/history?symbols=EUR%2CGBP&start_date=2024-01-01" \
  -H "x-api-key: $APISH_KEY"

Response

A JSON object with the fields described above, plus raw (the source's own data), cached, fetched_at and credits_used. Errors return {"success": false, "error": "…"} with the HTTP status (see errors). A lookup that ran but found nothing (404) costs the price above; refused calls and errors on our side are free (what's charged).

The fastest way to see the full response is the playground: it runs this endpoint with your account and shows the exact JSON.