Call it
curl https://api.peume.com/v1/call/search-the-web-in-depth \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"search_queries": [
"python requests library"
],
"mode": "basic",
"objective": "What is the Python requests library?"
}
}'const res = await fetch("https://api.peume.com/v1/call/search-the-web-in-depth", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"search_queries": [
"python requests library"
],
"mode": "basic",
"objective": "What is the Python requests library?"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/search-the-web-in-depth",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"search_queries": [
"python requests library"
],
"mode": "basic",
"objective": "What is the Python requests library?"
}
},
)
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: search-the-web-in-depth.
Parameters
search_queriesRequiredarrayConcise keyword queries, 3-6 words each; two or three give the best results.
Example: ["python requests library"]
modestringBasic answers in about 1 s; advanced in about 3 s with the highest quality.
basic · advanced
Example: basic
objectivestringThe question behind the search, in plain words; focuses the excerpts.
Example: What is the Python requests library?
max_chars_totalintegerUpper bound on excerpt characters across all results.
session_idstringEcho the returned session_id on related search and extract calls.
client_modelstringThe model reading the results; tailors default excerpt settings.
advanced_settingsobject{max_results (default 10, capped at 20), source_policy {include_domains, exclude_domains, after_date}, fetch_policy {max_age_seconds >= 600, timeout_seconds}, excerpt_settings {max_chars_per_result}, location (ISO country code)}. Each result past 10 adds $0.001.
Other ways to do it
Same job, other sources.
