{"uid":"cap_UYxCYbnEvM1oiWVUmWF3p","slug":"apiosk-gateway-marketstack-execute-076c1a7e","name":"Apiosk Gateway – Marketstack 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/marketstack/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.1265","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.11/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.11","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.11","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_D53FpFoymrnTbUXgy1Dsl","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.11","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Executes a Marketstack stock market data API operation via the Apiosk x402 pay-per-call gateway, forwarding the request and returning the upstream response.","exampleAgentPrompt":"Can you get me the end-of-day price history for AAPL from January 1 to March 31 this year using the Marketstack eod operation?","exampleUseCases":[{"title":"Historical stock price retrieval","prompt":"Fetch the daily closing prices for Tesla (TSLA) for the entire year of 2023 — I need open, high, low, close, and volume for each trading day."},{"title":"Latest quote for portfolio check","prompt":"Pull the most recent end-of-day quotes for MSFT, GOOGL, and AMZN so I can see how my portfolio closed today."},{"title":"Stock exchange listing lookup","prompt":"Look up all tickers listed on the NASDAQ exchange using the Marketstack tickers operation and give me the first page of results."}],"resultDescription":"Returns a JSON object with a status field, the upstream Marketstack API response body in 'result', the operation invoked, the cost in USDC, and the latency in milliseconds. The 'result' field contains the raw Marketstack response (e.g. OHLCV arrays, ticker lists, exchange data).","failureModes":["Invalid operation selector returns an error status with no result","Malformed JSON input payload causes upstream rejection","Insufficient USDC balance or failed x402 payment prevents execution","Marketstack upstream rate limit or API error propagates as non-200 upstream_status","Unknown api_slug or operation path returns a gateway-level error"],"whenToPreferThis":"Choose this endpoint when you need programmatic, pay-per-call access to Marketstack stock market data (historical prices, OHLCV, tickers, exchanges) without managing a Marketstack API subscription. Prefer it over direct Marketstack access when operating in an x402/USDC micropayment environment or when avoiding per-month subscription costs. Not suitable for real-time streaming or non-equity financial data.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T06:51:17.830Z","isFirstParty":false}