{"uid":"cap_MvTaikSEiiCY7LPQ88BTf","slug":"apiosk-gateway-newsapi-execute-5bcdea6d","name":"Apiosk Gateway – NewsAPI 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/newsapi/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.069","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.06/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.06","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.06","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_Q6Ps2Vc57k-2HyoM4m0BB","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.06","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 proxied NewsAPI request through the Apiosk x402 gateway, forwarding a JSON payload to a selected NewsAPI operation and returning the upstream response.","exampleAgentPrompt":"Search NewsAPI for the top 5 headlines about artificial intelligence published today — use the everything endpoint with the query 'artificial intelligence' and sort by publishedAt.","exampleUseCases":[{"title":"Breaking news briefing for a topic","prompt":"Pull the latest breaking news headlines about the US Federal Reserve from NewsAPI — use the top-headlines operation filtered to business category and US country, and give me the top 5 results."},{"title":"Company news monitoring for investor research","prompt":"Search NewsAPI for all articles mentioning 'Tesla earnings' published in the last 7 days, sorted by relevance, so I can see what the press is saying before I make an investment decision."},{"title":"News source discovery by region","prompt":"Use NewsAPI to list all available English-language news sources in the UK so I can decide which sources to subscribe to for my daily briefing."}],"resultDescription":"Returns a JSON object containing status, the upstream NewsAPI response body (articles, sources, or metadata depending on operation), the operation used, latency in milliseconds, cost in USDC, and the upstream HTTP status code.","failureModes":["Invalid or unrecognized operation selector returns an error status","Malformed JSON input payload causes upstream 400 bad request","NewsAPI rate limit or key exhaustion results in upstream 429 or 403","Payment not settled via x402 results in HTTP 402 and no execution","Unavailable upstream service returns upstream_status 5xx","Missing required query parameters (e.g. apiKey or q) forwarded as-is may cause NewsAPI rejection"],"whenToPreferThis":"Use this endpoint when you need to query NewsAPI (headlines, article search, source listing) through a metered, pay-per-call gateway without managing your own NewsAPI credentials or billing. Prefer it when your agent needs on-demand, cost-controlled access to news data billed in USDC via the x402 protocol, and when you do not already have a direct NewsAPI integration.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T12:42:13.281Z","isFirstParty":false}