Call it
curl https://api.peume.com/v1/call/search-the-open-web-with-google \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"q": "OpenAI API documentation",
"num": 10,
"location": "New York, New York, United States",
"gl": "us",
"hl": "en",
"page": 1
}
}'const res = await fetch("https://api.peume.com/v1/call/search-the-open-web-with-google", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"q": "OpenAI API documentation",
"num": 10,
"location": "New York, New York, United States",
"gl": "us",
"hl": "en",
"page": 1
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/search-the-open-web-with-google",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"q": "OpenAI API documentation",
"num": 10,
"location": "New York, New York, United States",
"gl": "us",
"hl": "en",
"page": 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: search-the-open-web-with-google.
Parameters
qRequiredstringExample: OpenAI API documentation
numintegerExample: 10
locationstringCanonical Google location name; discover supported values with public /locations route.
Example: New York, New York, United States
glstringTwo-letter country code.
Example: us
hlstringGoogle interface language code.
Example: en
tbsstringGoogle advanced-search/date filter, for example qdr:w for the past week.
pageintegerExample: 1
autocorrectbooleanExample: true
Other ways to do it
Same job, other sources, cheapest first.
