{"uid":"cap_61mNp-86zUiX150qlWcVX","slug":"2s-io-f8568615","name":"2s.io FX Rates (ECB via Frankfurter)","description":"Daily reference exchange rates from the European Central Bank (via Frankfurter). 30+ major currencies. Pass base = 3-letter ISO 4217 currency (default USD), optional symbols = comma-separated target codes (default = all available), optional date = YYYY-MM-DD for historical rates (history back to 1999, business days only; omit for latest), optional amount to convert (default 1). Returns base, date, amount, and a map of currency code → rate.","url":"https://2s.io/api/fx/rates","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","queryParams"],"properties":{"type":{"const":"http"},"method":{"const":"GET"},"queryParams":{"properties":{"base":{"type":"string","description":"3-letter ISO 4217 code (default USD)."},"date":{"type":"string","description":"YYYY-MM-DD historical date; default latest."},"amount":{"type":"number","description":"Amount of base currency to convert; default 1."},"symbols":{"type":"string","description":"Comma-separated target codes; default all."}}}}}}},"responseSchema":null,"example":{"request":{"input":{"type":"http","method":"GET","queryParams":{"base":"USD","amount":100,"symbols":"EUR,GBP,JPY"}}},"response":{"data":{"ok":true,"meta":{"base":"USD","date":"2026-06-11","amount":100},"items":[{"rate":86.68,"currency":"EUR"},{"rate":74.829,"currency":"GBP"},{"rate":16054,"currency":"JPY"}],"total":3,"source":{"url":"https://frankfurter.dev/","license":"ECB reference rates — free for public use with attribution.","provider":"Frankfurter — daily reference rates from the European Central Bank"}},"meta":{"cost":{"usd":0.0012,"tier":0},"caller":"x402","version":null,"endpoint":"fx.rates","settlement":{"txHash":"0xba78656d4a10609062c3b147088b42f6400b2ecbad71e60cc7e10f1bf2bf6114","network":"eip155:8453","success":true}}}},"exampleRequest":{"base":"USD","amount":100,"symbols":"EUR,GBP,JPY"},"tags":["x402"],"displayCostAmount":"0.0012","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.0012/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_8wrcKoCuUNrEKv-4x5hK0","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.003","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns daily reference exchange rates from the European Central Bank for 30+ currencies, with optional historical lookup back to 1999 and optional amount conversion.","exampleAgentPrompt":"What's today's ECB reference exchange rate from USD to EUR, GBP, and JPY — and how much would 250 USD convert to in each of those currencies?","exampleUseCases":null,"resultDescription":"A JSON object containing the base currency code, the date of the rates (today or the requested historical date), the amount used for conversion, and a map of currency codes to their exchange rates relative to the base currency.","failureModes":["Invalid ISO 4217 currency code returns an error or empty rates map","Date falling on a weekend or ECB holiday returns no data (business days only)","Date before 1999 is out of historical range and will fail","Invalid date format (not YYYY-MM-DD) causes a bad request error","Unsupported or misspelled symbols codes may be silently dropped or cause an error"],"whenToPreferThis":"Use this endpoint when you need official ECB daily reference rates for 30+ major currencies, especially when regulatory or financial accuracy is important. Prefer over scraped or unofficial sources when ECB provenance matters. Ideal for historical rate lookups back to 1999 on business days, or when converting a specific amount between currencies using standardized rates.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T06:53:19.882Z","isFirstParty":false}