Call it
curl https://api.peume.com/v1/call/google-web-search-answer-with-sources-and-citations-research \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"q": "who founded stripe",
"deep": 1
}
}'const res = await fetch("https://api.peume.com/v1/call/google-web-search-answer-with-sources-and-citations-research", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"q": "who founded stripe",
"deep": 1
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/google-web-search-answer-with-sources-and-citations-research",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"q": "who founded stripe",
"deep": 1
}
},
)
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: google-web-search-answer-with-sources-and-citations-research.
Parameters
qRequiredstringthe question or prompt, up to 4,000 characters; say the shape you want inside it, e.g. 'answer with JSON only: {...}'
Example: who founded stripe
schemastringa JSON Schema object as a JSON string, up to 4,000 bytes; the answer is then JSON of exactly that shape (parse answer.text)
deepinteger1 reads pages and writes an answer when the web has none; 0 returns only the web's own direct answer, else answered false
0 · 1
Example: 1
glstringsearch country, e.g. us
hlstringsearch language, e.g. en
nocacheinteger1 skips every cache
1
Other ways to do it
Same job, other sources, cheapest first.
