← Agent Data Hub · Search endpoints · /llms.txt

Exchange Rate History for Any Currency Pair (ECB, since 1999, resampled)

Daily ECB reference-rate history for any pair of ~30 currencies since 1999 (cross rates via EUR), optionally resampled to weekly, monthly, quarterly or yearly averages. Answers e.g. "USD/JPY over the last 10 years".

Call it (no API key)

GET https://api.agentdatahub.de/api/v1/call/fx-history?base=EUR&quote=USD&start=2020-01-01&resample=M&compact=1

Full metadata: without compact=1 · Markdown: format=llm · Only some fields: add &fields=a,b.c · MCP: tool call_api with {"apiId":"fx-history"}

Parameters

baseBase currency (default: EUR)
quoteQuote currency (default: USD)
startStart date YYYY, YYYY-MM or YYYY-MM-DD (default: 1 year ago)
endEnd date (default: today)
resamplenone, W, M, Q or A (default: M)

Example response (live, compact)

{
  "apiId": "fx-history",
  "data_freshness": "cached",
  "data": {
    "pair": "EUR/USD",
    "unit": "USD per 1 EUR",
    "resample": "M",
    "change_pct": 0.99,
    "min": 0.98256667,
    "max": 1.217085,
    "points": 82,
    "series": [
      {
        "period": "2020-01",
        "rate": 1.1100364
      },
      {
        "period": "2020-02",
        "rate": 1.0905
      },
      {
        "period": "2020-03",
        "rate": 1.1063409
      },
      {
        "period": "2020-04",
        "rate": 1.08619
      },
      {
        "period": "2020-05",
        "rate": 1.090185
      },
      {
        "period": "2020-06",
        "rate": 1.1254591
      },
      {
        "period": "2020-07",
        "rate": 1.1463391
      },
      {
        "period": "2020-08",
        "rate": 1.1828095
      },
      {
        "period": "2020-09",
        "rate": 1.1792409
      },
      {
        "period": "2020-10",
        "rate": 1.1775182
      },
      {
        "period": "2020-11",
        "rate": 1.1837905
      },
      {
        "period": "2020-12",
        "rate": 1.2169727
      },
      {
        "period": "2021-01",
        "rate": 1.217085
      },
      {
        "period": "2021-02",
        "rate": 1.20979
      },
      {
        "period": "2021-03",
        "rate": 1.1899087
      },
      {
        "period": "2021-04",
        "rate": 1.19791
      },
      {
        "period": "2021-05",
        "rate": 1.2145905
      },
      {
        "period": "2021-06",
        "rate": 1.2047091
      },
      {
        "period": "2021-07",
        "rate": 1.1821818
      },
      {
        "period": "2021-08",
        "rate": 1.1771818
      },
      {
        "period": "2021-09",
        "rate": 1.1770318
      },
      {
        "period": "2021-10",
        "rate": 1.1601476
      },
      {
        "period": "2021-11",
        "rate": 1.1414045
      },
      {
        "period": "2021-12",
        "rate": 1.1303783
      },
      {
        "period": "2022-01",
        "rate": 1.1314476
      },
      {
        "period": "2022-02",
        "rate": 1.13419
      },
      {
        "period": "2022-03",
        "rate": 1.1018957
      },
      {
        "period": "2022-04",
        "rate": 1.0818737
      },
      {
        "period": "2022-05",
        "rate": 1.05785
      },
      {
        "period": "2022-06",
        "rate": 1.0565818
      },
      {
        "period": "2022-07",
        "rate": 1.0178905
      },
      {
        "period": "2022-08",
        "rate": 1.0128435
      },
      {
        "period": "2022-09",
        "rate": 0.99037727
      },
      {
        "period": "2022-10",
        "rate": 0.98256667
      },
      {
        "period": "2022-11",
        "rate": 1.0201273
      },
      {
        "period": "2022-12",
        "rate": 1.058881
      },
      {
        "period": "2023-01",
        "rate": 1.0769
      },
      {
        "period": "2023-02",
        "rate": 1.07151
      },
      {
        "period": "2023-03",
        "rate": 1.0705826
      },
      {
        "period": "2023-04",
        "rate": 1.0967722
      },
      {
        "period": "2023-05",
        "rate": 1.08675
      },
      {
        "period": "2023-06",
        "rate": 1.0839864
      },
      {
        "period": "2023-07",
        "rate": 1.1058143
      },
      {
        "period": "2023-08",
        "rate": 1.090887
      },
      {
        "period": "2023-09",
        "rate": 1.068381
      },
      {
        "period": "2023-10",
        "rate": 1.0562545
      },
      {
        "period": "2023-11",
        "rate": 1.0808227
      },
      {
        "period": "2023-12",
        "rate": 1.0903053
      },
      {
        "period": "2024-01",
        "rate": 1.0905136
      },
      {
        "period": "2024-02",
        "rate": 1.0794714
      },
      {
        "period": "2024-03",
        "rate": 1.08722
      },
      {
        "period": "2024-04",
        "rate": 1.0727762
      },
      {
        "period": "2024-05",

… (truncated)

Recorded history available: /api/v1/history/fx-history?base=EUR&quote=USD&start=2020-01-01&resample=M

Source & license

SourceEuropean Central Bank reference rates
LicenseECB Open Data (reuse with attribution)
Source URLhttps://api.frankfurter.dev/v1
Termshttps://www.ecb.europa.eu/stats/ecb_statistics/governance_and_quality_framework/html/usage_policy.en.html
CategoryFinance & Markets › FX History (ECB, since 1999)