Call it
curl https://api.peume.com/v1/call/search-the-web-3 \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"query": "IANA reserved example domains",
"search_type": "web",
"max_results": 1,
"country": "US"
}
}'const res = await fetch("https://api.peume.com/v1/call/search-the-web-3", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"query": "IANA reserved example domains",
"search_type": "web",
"max_results": 1,
"country": "US"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/search-the-web-3",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"query": "IANA reserved example domains",
"search_type": "web",
"max_results": 1,
"country": "US"
}
},
)
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-3.
Parameters
queryRequiredstringExample: IANA reserved example domains
search_typeRequiredstringweb
Example: web
max_resultsintegerExample: 1
countrystringExample: US
search_domain_filterarraysearch_language_filterarraysearch_context_sizestringlow · medium · high
Other ways to do it
Same job, other sources.
Search the webBest sourceSearch the open web by meaning or keyword. Checks the cheapest source first and moves to the next one until it finds an answer.Search the web by query — ranked pages and highlightsSearch the live web for ranked pages, highlights, and optional full page content.Search the web with BraveSearch Brave's independent web index for ranked pages and rich results.Search the web with rich resultsWeb search plus a rich block: follow-up questions, related queries, an entity card, videos, news and discussions.Web search engine results for a query: title, URL, snippetLive web search across several engines, ranked and cleaned: each result has a title, URL and snippet. When the live web returns fewer than 10 results, results from the index fill tSearch the open webSearch the web by keyword or meaning, with domain, language and date filters and a target country.
