{"uid":"cap_8OZ9E2lLQxQ-ffi17Wl_b","slug":"agent-data-tools-revmesh2074-workers-dev-web-answer-with-ai-citations-c7f378ec","name":"Web Answer with AI Citations from Live Search","description":"Answer a question from the live web in one call: a Brave web search, the top result pages read, and an answer written by Llama 4 Scout from those sources only, with inline [n] citations and the source list (title, URL). Says so when the sources do not answer it. Results are for the caller's immediate use only: no storing, resale or model training (Brave API terms). Use when an agent needs a current, sourced answer rather than raw search results.","url":"https://agent-data-tools.revmesh2074.workers.dev/ai/answer?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","required":["q"],"properties":{"q":{"type":"string","description":"The question, at most 400 characters"}}},"responseSchema":{"type":"object","properties":{"model":{"type":"string"},"terms":{"type":"string"},"answer":{"type":"string"},"sources":{"type":"array","items":{"type":"object","properties":{"n":{"type":"number"},"url":{"type":"string"},"title":{"type":"string"}}}},"question":{"type":"string"}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","displayCostAsset":"USD","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_kZ21TSYJDU1LvwfTG8Y13","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":"agent-data-tools.revmesh2074.workers.dev","brandSlug":"agent-data-tools-revmesh2074-workers-dev-x402","brandBaseUrl":"https://agent-data-tools.revmesh2074.workers.dev","brandDocsUrl":null,"whatItDoes":"Answers a natural-language question by performing a live Brave web search, reading top result pages, and generating a cited answer using Llama 4 Scout","exampleAgentPrompt":"What are the current interest rates set by the Federal Reserve, and have they changed recently? I need a sourced answer with links to where you found that information.","exampleUseCases":[{"title":"Current events fact-check with sources","prompt":"What's the current status of the Ukraine-Russia ceasefire negotiations? I need a cited answer from live sources, not something from your training data."},{"title":"Latest product or tech release info","prompt":"Has Apple announced any new MacBook models in 2025? Give me a sourced answer with links to the pages you pulled it from."},{"title":"Real-time regulatory or policy lookup","prompt":"What are the current SEC rules around crypto ETFs? I need an up-to-date answer with citations so I can see exactly where the information comes from."}],"resultDescription":"A JSON object containing the AI-generated answer text with inline [n] citation markers, an array of numbered sources each with a title and URL, the original question echoed back, the model name used (Llama 4 Scout), and a terms field summarizing usage restrictions. If the retrieved sources do not contain enough information to answer the question, the answer field explicitly says so.","failureModes":["Question exceeds 400 characters — request rejected","Live search returns no relevant pages — answer states sources don't cover the question","Brave search API unavailable — upstream error propagated","Source pages are paywalled or unreadable — answer may be incomplete","Ambiguous or too-broad question — answer may be vague or partial","Network timeout on page reads — some sources may be skipped"],"whenToPreferThis":"Choose this endpoint when an agent needs a current, grounded answer to a factual question — especially for topics that change frequently (news, prices, regulations, product releases) — and when inline citations and source URLs are required to substantiate the answer. Prefer this over raw search-result endpoints when the agent needs a synthesized, readable answer rather than a list of URLs to process further. Prefer over generic LLM text generation when the answer must be grounded in live web sources rather than training data. Avoid when the user only needs raw search results, when storing or reusing results downstream, or when the question is purely mathematical or logical with no web-lookup need.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-26T04:39:46.631Z","isFirstParty":false,"canonicalSlug":"agent-data-tools-revmesh2074-workers-dev-web-answer-with-ai-citations-c7f378ec"}