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

Exchange Rate on a Specific Date (ECB, since 1999)

ECB reference rate for any currency pair on a given date; weekends/holidays use the previous business day. Useful for invoices, taxes and historical conversions.

Call it (no API key)

GET https://api.agentdatahub.de/api/v1/call/fx-rate-on-date?date=2020-03-16&base=USD&quote=EUR&amount=100&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-rate-on-date"}

Parameters

dateDate YYYY-MM-DD (default: yesterday)
baseBase currency (default: EUR)
quoteQuote currency (default: USD)
amountOptional amount to convert (default: 1)

Example response (live, compact)

{
  "apiId": "fx-rate-on-date",
  "data_freshness": "cached",
  "data": {
    "requested_date": "2020-03-16",
    "rate_date": "2020-03-16",
    "pair": "USD/EUR",
    "rate": 0.89629829,
    "amount": 100,
    "converted": 89.6298
  },
  "source": "European Central Bank reference rates",
  "license": "ECB Open Data (reuse with attribution)"
}

Recorded history available: /api/v1/history/fx-rate-on-date?date=2020-03-16&base=USD&quote=EUR&amount=100

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)