{"uid":"cap_higT4MzzuRIUu7phZyU1l","slug":"apiosk-gateway-exchangerate-host-execute-27d5c5bf","name":"Apiosk Gateway – ExchangeRate.host Execute","description":"Pay-per-call API gateway on the x402 protocol (HTTP 402 + USDC on Base). This document covers the gateway's discovery and execution meta-endpoints. Individual provider APIs are reachable at /{api_slug}/{path} and described by GET /{api_slug}/metadata.","url":"https://gateway.apiosk.com/exchangerate-host/execute","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"input":{"type":"string","description":"JSON payload forwarded to the selected operation."},"operation":{"type":"string","description":"Operation id, /path, or METHOD /path selector."}}},"responseSchema":{"type":"object","required":["status","result"],"properties":{"api":{"type":"string"},"cost":{"type":"string"},"result":{"description":"Upstream response body."},"status":{"type":"string"},"latency":{"type":"number"},"operation":{"type":"string"},"upstream_status":{"type":"integer"}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.0575","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.05/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_s5LAmot14kHvPflyyyr_A","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.05","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Executes a pay-per-call request to the ExchangeRate.host API via the Apiosk x402 gateway, returning currency exchange rate data in exchange for $0.05 USDC on Base.","exampleAgentPrompt":"Can you look up the current exchange rate from USD to EUR using ExchangeRate.host, and tell me how many euros I'd get for $250?","exampleUseCases":[{"title":"Live currency rate for invoicing","prompt":"I need to bill a client in euros — what's the current USD to EUR exchange rate so I can convert my $1,200 invoice amount?"},{"title":"Historical rate lookup for accounting","prompt":"What was the GBP to USD exchange rate on January 15, 2024? I need it for a historical accounting reconciliation."},{"title":"Multi-currency travel budget estimate","prompt":"I'm planning a trip and need to know today's exchange rates from USD to JPY, MXN, and CAD so I can estimate my spending budget."}],"resultDescription":"Returns a JSON object with a status string, the upstream ExchangeRate.host response body (containing rate data, converted amounts, or historical rates), the operation performed, latency in milliseconds, and the cost of the call in USDC.","failureModes":["Invalid operation selector returns an error status with no result","Malformed JSON in the input field causes a bad request response","Unsupported or misspelled currency codes result in upstream errors propagated in the result","Payment failure on x402 protocol blocks the call before it reaches the upstream API","Upstream ExchangeRate.host downtime returns a non-200 upstream_status code in the response"],"whenToPreferThis":"Choose this endpoint when you need programmatic access to ExchangeRate.host currency data and are already operating in a crypto-native, x402-compatible payment environment using USDC on Base. It is ideal for agents that need to pay per call without API key management, and when you want exchange rate lookups bundled with transparent on-chain cost accounting via the cost field in the response.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T12:49:46.055Z","isFirstParty":false}