{"uid":"cap_qjQRWhEXsdmRI0j2BqHZq","slug":"coco-fx-rates-api-3601b054","name":"CoCo FX Rates API","description":"Zach Riehn's lab: an about-me and portfolio, a news desk, The Atelier for AI experiments, Launch Lab for XRP research, and Fracture for games.","url":"https://cocoeatsai.com/area4/agent/tools/fx?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input","output"],"properties":{"input":{"type":"object","required":["type","method","queryParams"],"properties":{"type":{"const":"http"},"method":{"enum":["GET"]},"queryParams":{"type":"object","properties":{}}},"additionalProperties":false},"output":{"type":"object","required":["type","example"],"properties":{"type":{"const":"json"},"example":{"type":"object","required":["base"],"properties":{"base":{"type":"string"}}}}}}},"responseSchema":{"type":"json","example":{"base":"USD","rates":{"EUR":0.9}},"exampleNote":"Illustrative response subset; not a live observation."},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","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.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_n3gq9k8bQSsOTUOOy4skW","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns foreign exchange rates for a base currency, providing current exchange rate data as JSON","exampleAgentPrompt":"Can you fetch the latest foreign exchange rates with USD as the base currency so I can see how other currencies compare right now?","exampleUseCases":[{"title":"Live currency conversion for e-commerce","prompt":"I need the current exchange rates with USD as the base so I can show prices in EUR, GBP, and JPY on my storefront — can you pull those now?"},{"title":"Travel budget planning in foreign currency","prompt":"What's the current exchange rate for USD against EUR? I want to know how much my $500 spending budget is worth in euros."},{"title":"Forex monitoring for financial dashboard","prompt":"Pull me the latest FX rates with USD as the base currency — I need to update my rates dashboard with the freshest numbers."}],"resultDescription":"A JSON object containing the base currency (e.g. 'USD') and a rates map of currency codes to their exchange rate values relative to the base (e.g. {\"EUR\": 0.9, \"GBP\": 0.78, ...}).","failureModes":["Invalid or unsupported base currency returns an error","Network timeout if the upstream FX data provider is unavailable","Missing required query parameters may return a malformed or empty response","Payment failure via x402 protocol blocks access to the endpoint"],"whenToPreferThis":"Choose this endpoint when you need a lightweight, pay-per-call FX rate lookup via the x402 micropayment protocol and want JSON output with a base currency and rates map. Well-suited for agents that need on-demand currency data without a subscription, particularly in XRP/crypto-adjacent or experimental lab contexts.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-19T12:30:04.259Z","isFirstParty":false,"canonicalSlug":"coco-fx-rates-api-3601b054"}