Call it
curl https://api.peume.com/v1/call/answer-a-web-question \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"query": "What is the purpose of example.com?"
}
}'const res = await fetch("https://api.peume.com/v1/call/answer-a-web-question", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"query": "What is the purpose of example.com?"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/answer-a-web-question",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"query": "What is the purpose of example.com?"
}
},
)
print(res.json()["output"])Answer: {"id": "run_…", "status": "completed", "cost_usd": …, "output": {…}}. Long jobs answer 202 with a run id to read later. From an AI agent, connect the MCP server and ask for this by name: answer-a-web-question.
Parameters
queryRequiredstringExample: What is the purpose of example.com?
freshnessstringcountrystringlanguagestringsafesearchstringoff · moderate · strict
include_domainsarrayexclude_domainsarrayboost_domainsarrayOther ways to do it
Same job, other sources, cheapest first.
Answer a question with citationsGet an LLM answer to a question informed by search results. Fully compatible with OpenAI's chat completions endpoint.Web search answer with sources and citations (research)Answers a question or a whole agent prompt (up to 4,000 characters) from the web's current top results, with the pages it drew on. Ask for JSON in the question, or pass a JSON Answer a web question quicklyProduce a short cited answer with the fast Agent preset.Research and answer a web questionProduce a cited answer with light multi-step research.Answer a question with live web researchResearch a task on the live web and return a structured answer with sources.Research a web questionStart asynchronous multi-source research with citations.
