Call it
curl https://api.peume.com/v1/call/search-the-open-web-7 \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"query": "recent changes to the EU AI Act guidance",
"search_depth": "basic",
"chunks_per_source": 3,
"max_results": 5,
"topic": "general",
"include_published_date": false
}
}'const res = await fetch("https://api.peume.com/v1/call/search-the-open-web-7", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"query": "recent changes to the EU AI Act guidance",
"search_depth": "basic",
"chunks_per_source": 3,
"max_results": 5,
"topic": "general",
"include_published_date": false
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/search-the-open-web-7",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"query": "recent changes to the EU AI Act guidance",
"search_depth": "basic",
"chunks_per_source": 3,
"max_results": 5,
"topic": "general",
"include_published_date": False
}
},
)
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-open-web-7.
Parameters
queryRequiredstringExample: recent changes to the EU AI Act guidance
search_depthstringdefault is basic. Basic, fast and ultra-fast cost 1 credit; advanced costs 2. auto_parameters can raise a request that names no depth to the advanced price.
basic · advanced · fast · ultra-fast
Example: basic
chunks_per_sourceintegerExample: 3
max_resultsintegerExample: 5
topicstringgeneral · news · finance
Example: general
time_rangestringday · week · month · year · d · w · m · y
start_datestringYYYY-MM-DD; must precede end_date.
end_datestringYYYY-MM-DD; must follow start_date.
include_published_datebooleanExample: false
filter_by_published_datebooleanExample: false
include_answerbooleanfalse, true, basic, or advanced
Example: false
include_raw_contentbooleanfalse, true, markdown, or text
Example: false
include_imagesbooleanExample: false
include_image_descriptionsbooleanExample: false
include_faviconbooleanExample: false
include_domainsarrayexclude_domainsarrayinclude_domains_modestringrestrict · prefer
countrystringCountry name accepted by; available for general search.
languagestringExample: en
filter_by_languagebooleanExample: false
auto_parametersbooleanExample: false
exact_matchbooleanExample: false
include_usagebooleanOptional with your own key; platform Search requires true so can settle from this request's reported usage.
Example: true
safe_searchbooleanExample: false
Other ways to do it
Same job, other sources.
