Call it
curl https://api.peume.com/v1/call/search-the-web-with-brave \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"q": "Python programming language",
"count": 20,
"country": "US",
"search_lang": "en"
}
}'const res = await fetch("https://api.peume.com/v1/call/search-the-web-with-brave", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"q": "Python programming language",
"count": 20,
"country": "US",
"search_lang": "en"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/search-the-web-with-brave",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"q": "Python programming language",
"count": 20,
"country": "US",
"search_lang": "en"
}
},
)
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-with-brave.
Parameters
qRequiredstringExample: Python programming language
countintegerExample: 20
countrystringExample: US
search_langstringExample: en
safesearchstringoff · moderate · strict
freshnessstringpd, pw, pm, py, or YYYY-MM-DDtoYYYY-MM-DD
spellcheckbooleanOther ways to do it
Same job, other sources, cheapest first.
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 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.Search the live webReturn ranked web results from one or more search engines.
