{"uid":"cap_gpmvQh9IxBeTB_raPACM-","slug":"onhub-url-context-q-a-a2fd2241","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://api.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_lRO1qE4HTcIktfHKgbZ8N","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 content from up to 3 public URLs and answers a natural language question grounded in that content, returning cited, evidence-backed answers.","exampleAgentPrompt":"Can you read https://developers.cloudflare.com/changelog/ and https://blog.cloudflare.com and tell me what the most important product updates from Cloudflare were this month?","exampleUseCases":[{"title":"Changelog summarization for product teams","prompt":"Go to https://github.com/openai/openai-python/blob/main/CHANGELOG.md and tell me what breaking changes were introduced in the last three releases."},{"title":"Competitive research from public pages","prompt":"Read https://stripe.com/pricing and https://paddle.com/pricing and answer: which one is cheaper for a SaaS company doing $50k/month in revenue?"},{"title":"Documentation fact-check","prompt":"Check https://docs.aws.amazon.com/lambda/latest/dg/gettingstarted-limits.html and answer: what is the maximum deployment package size for AWS Lambda?"}],"resultDescription":"A JSON object containing a natural language answer grounded in the fetched URL content, an array of source objects with retrieval status for each URL, and an evidence_status field ('grounded') indicating the answer is attributable to the source material. Citations like [1] appear inline in the answer text.","failureModes":["URL is localhost, private network, or paywalled — retrieval fails with URL_RETRIEVAL_STATUS error","URL points to video or audio content which is not supported","Query is under 3 or over 2000 characters — request rejected","More than 3 URLs submitted — request rejected","URL content is too short or empty to answer the query — low-confidence or empty answer","Network timeout fetching one or more URLs — partial results returned","Non-HTTPS or malformed URL — validation error"],"whenToPreferThis":"Choose this endpoint when you have specific, known URLs whose content you want to read and query against — it is ideal for targeted Q&A over documentation pages, changelogs, pricing pages, or articles where you already know the source. Prefer it over a web search endpoint when you need grounded, cited answers directly from specific URLs rather than discovering new sources. Use when you need attribution and evidence status on the answer, not just a summary.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T18:31:48.383Z","isFirstParty":false,"canonicalSlug":"onhub-url-context-q-a-a2fd2241"}