Foreign exchange rate API: official ECB reference rate for any fiat currency pair (USD/EUR
Foreign exchange rate API: official ECB reference rate for any fiat currency pair (USD/EUR, GBP/JPY — ~30 major ISO 4217 currencies) via the open-source Frankfurter API. Published once per business day around 16:00 CET — a daily reference rate for settlement and normalization, not a live trading feed. Use for currency conversion, pricing normalization, and financial reporting by agents. Cached up to 1 hour.
2000 (raw units)
price
2
calls / 30d
1
unique payers
2026-08-30
updated
Provider
gateway.stride20k.com · discovered, not yet claimed by its owner
Payment (x402 accepts[])
[
{
"scheme": "exact",
"network": "eip155:8453",
"payTo": "0x552Cc4A10878C7F20574489D47184249657Ca3f6",
"asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"amount": "2000",
"maxTimeoutSeconds": 60
}
]Output schema
{
"bazaar": {
"info": {
"input": {
"method": "GET",
"pathParams": {
"base": "USD",
"quote": "EUR"
},
"queryParams": {},
"type": "http"
},
"output": {
"example": {
"data": {
"base": "USD",
"date": "2026-07-03",
"quote": "EUR",
"rate": 0.87352
},
"endpoint": "/fx/:base/:quote",
"meta": {
"attribution": null,
"cached": false,
"fetchedAt": "2026-07-04T00:00:00.000Z",
"source": "frankfurter (ECB)"
},
"ok": true
},
"type": "json"
}
},
"routeTemplate": "/fx/:base/:quote",
"schema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"input": {
"additionalProperties": false,
"properties": {
"method": {
"enum": [
"GET"
],
"type": "string"
},
"pathParams": {
"properties": {
"base": {
"description": "Base currency, ISO 4217 code (e.g. 'USD').",
"hint": "For cryptocurrency pairs use /crypto/price/:coinId (e.g. /crypto/price/bitcoin) — this route serves fiat ISO 4217 pairs only.",
"missTrack": true,
"normalize": "upper",
"pattern": "[A-Za-z]{3}",
"type": "string"
},
"quote": {
"description": "Quote currency, ISO 4217 code (e.g. 'EUR').",
"hint": "For cryptocurrency pairs use /crypto/price/:coinId (e.g. /crypto/price/bitcoin) — this route serves fiat ISO 4217 pairs only.",
"missTrack": true,
"normalize": "upper",
"pattern": "[A-Za-z]{3}",
"type": "string"
}
},
"required": [
"base",
"quote"
],
"type": "object"
},
"queryParams": {
"properties": {},
"type": "object"
},
"type": {
"const": "http",
"type": "string"
}
},
"required": [
"type",
"method"
],
"type": "object"
},
"output": {
"properties": {
"example": {
"properties": {
"data": {
"properties": {
"base": {
"description": "Base currency code.",
"type": "string"
},
"date": {
"description": "ECB publication date of this rate, YYYY-MM-DD.",
"type": "string"
},
"quote": {
"description": "Quote currency code.",
"type": "string"
},
"rate": {
"description": "Units of quote currency per 1 unit of base.",
"type": "number"
}
},
"required": [
"base",
"quote",
"rate",
"date"
],
"type": "object"
},
"endpoint": {
"description": "Always \"/fx/:base/:quote\".",
"type": "string"
},
"meta": {
"properties": {
"attribution": {
"description": "Licensing attribution when the source requires it.",
"type": [
"string",
"null"
]
},
"cached": {
"description": "Whether this response was served from cache.",
"type": "boolean"
},
"fetchedAt": {
"description": "ISO 8601 time the data was actually retrieved from the upstream.",
"type": "string"
},
"source": {
"description": "Upstream source: frankfurter (ECB).",
"type": "string"
}
},
"required": [
"source",
"cached",
"fetchedAt"
],
"type": "object"
},
"ok": {
"description": "true on success.",
"type": "boolean"
}
},
"required": [
"ok",
"endpoint",
"data",
"meta"
],
"type": "object"
},
"type": {
"type": "string"
}
},
"required": [
"type"
],
"type": "object"
}
},
"required": [
"input"
],
"type": "object"
}
}
}Use it
curl
curl "https://gateway.stride20k.com/fx/:base/:quote" # -> 402 Payment Required, accepts[] lists how to pay # retry with a PAYMENT-SIGNATURE (or PAYMENT header) once paid
JavaScript
const res = await fetch("https://gateway.stride20k.com/fx/:base/:quote");
if (res.status === 402) {
const { accepts } = await res.json();
// pay one of accepts[] via an x402 client, then retry with the payment header
}Python
import httpx
res = httpx.get("https://gateway.stride20k.com/fx/:base/:quote")
if res.status_code == 402:
accepts = res.json()["accepts"]
# pay one of accepts[] via an x402 client, then retry with the payment headerMachine-readable
Everything on this page is also available as clean JSON at /resources/1162.json, and this resource appears in /discovery/resources and /discovery/search.