{"uid":"cap_uOqwzBzhx9N-gd1spU2K-","slug":"apiosk-gateway-mediastack-execute-fc0f8e55","name":"Apiosk Gateway — Mediastack 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/mediastack/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.1035","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.09/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.09","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.09","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_hnmE3l_BiQRyztC82MJFu","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.09","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 Mediastack news/media API via the Apiosk x402 gateway, paying $0.09 USDC per call on Base.","exampleAgentPrompt":"Search Mediastack for the latest English-language news articles about artificial intelligence in the US — fetch the top 10 headlines from today.","exampleUseCases":[{"title":"Breaking news search by keyword","prompt":"Pull the latest news articles about climate change from Mediastack — English only, US sources, top 10 results from today."},{"title":"Country-specific headline retrieval","prompt":"Fetch today's top headlines from Mediastack for Germany in German, I need the 5 most recent articles."},{"title":"Category-filtered news feed","prompt":"Get me the latest business and finance news from Mediastack — English language, global sources, top 20 articles from this week."}],"resultDescription":"Returns a JSON object with a status field, the upstream Mediastack API response body in 'result' (articles, metadata, pagination), the operation called, latency in milliseconds, cost string (e.g. '$0.09'), and the upstream HTTP status code.","failureModes":["Invalid operation selector returns error in status field","Malformed JSON input payload causes upstream 400 error reflected in upstream_status","Insufficient USDC balance or x402 payment failure blocks the call before forwarding","Mediastack API key misconfiguration on gateway side returns 401 upstream_status","Rate limit exceeded on Mediastack side returns 429 upstream_status","Unknown api_slug or operation returns gateway-level 404"],"whenToPreferThis":"Choose this endpoint when you need to query Mediastack's news and media data without managing your own Mediastack API key, prefer micropayment-per-call billing in USDC over subscription plans, or are building an agent that needs on-demand news lookups with transparent per-call costs. Prefer alternatives if you need bulk/batch news ingestion or already have a direct Mediastack subscription.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T00:57:37.285Z","isFirstParty":false}