{"uid":"cap_HdHESnQ1rFijROgQp9X_x","slug":"onhub-url-context-q-a-1e92f3e1","name":"OnHub URL Context Q&A","description":"OnHub is the pay-per-request API layer for agents. Text inference paid per request with USDC on Base.","url":"https://x402.onhub.ai/v1/url-context?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"urls":{"type":"array","items":{"type":"string","format":"uri","description":"A public HTTPS URL. No localhost, private networks, paywalled content, or video/audio."},"maxItems":3,"minItems":1},"query":{"type":"string","maxLength":2000,"minLength":3,"description":"The question to answer using the content of the given URLs."}}},"responseSchema":{"type":"json","example":{"query":"Summarize the key changes on this page","answer":"The changelog highlights new Workers Builds. [1]","object":"url_context.result","sources":[{"url":"https://developers.cloudflare.com/changelog/","status":"URL_RETRIEVAL_STATUS_SUCCESS"}],"evidence_status":"grounded"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.4","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.4/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.4","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.4","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_LXo36RnCr3lWKBMBqKUb5","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.4","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Fetches and reads up to 3 public URLs, then answers a specific question grounded in their content with cited sources.","exampleAgentPrompt":"Look at https://developers.cloudflare.com/changelog/ and https://blog.cloudflare.com/ and tell me: what are the most significant product changes Cloudflare announced this month?","exampleUseCases":[{"title":"Fact-check a claim against a source","prompt":"Go to https://www.who.int/news/item/latest and answer this: does the WHO currently recommend COVID-19 boosters for healthy adults under 60?"},{"title":"Summarize competitor release notes","prompt":"Read https://openai.com/blog and https://anthropic.com/news and tell me: what new model capabilities have either company announced in the last few weeks?"},{"title":"Answer a docs question from official source","prompt":"Look at https://docs.stripe.com/api/payment_intents and answer: what HTTP status code does Stripe return when a PaymentIntent is successfully confirmed?"}],"resultDescription":"A JSON object containing a grounded natural-language answer to the query, an array of source objects with the URL and retrieval status (e.g. URL_RETRIEVAL_STATUS_SUCCESS), and an evidence_status field (e.g. 'grounded') indicating whether the answer is supported by the fetched content. Inline citations like [1] appear in the answer text referencing source order.","failureModes":["URL is unreachable or returns non-200 status — source status will reflect failure, answer may be partial or empty","URL points to paywalled, login-gated, or private network content — retrieval fails silently or returns empty body","URL is a video or audio file — explicitly excluded by schema, will fail or be ignored","Query is fewer than 3 characters — rejected by schema validation","More than 3 URLs provided — rejected by schema validation","Answer may be empty or low-quality if page content is JavaScript-rendered and not accessible via static fetch","Query is unrelated to the URL content — answer returned but evidence_status may not be 'grounded'"],"whenToPreferThis":"Choose this endpoint when you need a factual, cited answer drawn from specific known URLs rather than a general web search. It is ideal when you already have the authoritative source URL and want an answer grounded in that exact content — such as reading documentation, changelogs, press releases, or public reports. Prefer it over a general search endpoint when source control and citation accuracy matter, and over raw scraping when you need a direct answer rather than raw HTML. Not suitable for video/audio URLs, paywalled content, or dynamically rendered single-page applications.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-11T12:31:10.920Z","isFirstParty":false,"canonicalSlug":"onhub-url-context-q-a-1e92f3e1"}