{"uid":"cap_JaAKEtVhEd-_GK9XLkOFQ","slug":"api2ls-com-fx-rates-fd09b81a","name":"api2ls.com FX Rates","description":"Get live fiat foreign-exchange rates (ECB reference rates)","url":"https://api2ls.com/api/fx","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","required":["to"],"properties":{"to":{"type":"string","description":"Target currency code(s), comma-separated, e.g. EUR,GBP"},"from":{"type":"string","description":"Base currency code (default USD)"},"amount":{"type":"number","description":"Amount to convert (default 1)"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","required":["success","base","rates"],"properties":{"asOf":{"type":"string"},"base":{"type":"string"},"date":{"type":"string"},"rates":{"type":"object"},"amount":{"type":"number"},"success":{"type":"boolean"},"converted":{"type":"object"}}}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_P1d2J6b2O8m39ARuy-el3","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns live ECB-reference fiat foreign-exchange rates and optional currency conversion amounts for one or more target currencies","exampleAgentPrompt":"What's the current exchange rate from USD to EUR and GBP — and how much would 250 US dollars be in each currency right now?","exampleUseCases":null,"resultDescription":"A JSON object containing a success flag, the base currency, the as-of date, a rates map with each target currency code and its exchange rate, the queried amount, and a converted map showing the equivalent amount in each requested target currency.","failureModes":["Unsupported or invalid currency code returns an error response","Missing required 'to' query parameter causes a 400-level error","ECB rate feed temporarily unavailable may return stale or error response","Payment not processed (x402) returns 402 Payment Required before data is served"],"whenToPreferThis":"Use this endpoint when you need live, ECB-reference fiat foreign-exchange rates for one or more currency pairs in a single call, especially when you also want the converted monetary amount. Prefer it over crypto-price endpoints for fiat-only conversions and over static rate tables when freshness matters.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T12:46:28.140Z","isFirstParty":false}