Call it
curl https://api.peume.com/v1/call/google-search-2 \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"hl": "en",
"gl": "us",
"query": "your query",
"limit": 10,
"page": 1
}
}'const res = await fetch("https://api.peume.com/v1/call/google-search-2", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"hl": "en",
"gl": "us",
"query": "your query",
"limit": 10,
"page": 1
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/google-search-2",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"hl": "en",
"gl": "us",
"query": "your query",
"limit": 10,
"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: google-search-2.
Parameters
autocorrectbooleanToggle Google spelling autocorrect (default true). Set false to search the exact query without correction.
cursorstringDeprecated: send page instead. A token from an earlier response's nextCursor continues on the source that issued it; page is ignored when cursor is sent alongside it. A token issued for a query restricted with site: may be refused; repeat the request with page instead.
requireCursorbooleanDeprecated: send page instead. Serves the request only from a source that returns a nextCursor for it. Some sources return none for a query restricted with site:, so for such a query this can pick a dearer source.
timeframestringRestrict results to a recent time window: 1h, 1d, 7d, 1y, or all. Default all (no time restriction).
1h · 1d · 7d · 1y · all
routestringUpstream source to run on; omit for "chameleon". chameleon ($0.00044 per call, 96.6% uptime); octopus ($0.00045 per call, 92.9% uptime); meerkat ($0.0009 per call, 99.9% uptime); badger ($0.002 per call, 88.9% uptime); koala ($0.00049 per call, 96.9% uptime); axolotl ($0.00049 per call); bison ($0.00049 per call, 99% uptime); giraffe ($0.00089 per call, 0% uptime). A route can refuse an input it cannot apply with a 400 source_unknown (not charged): retry on another route, or omit that input.
chameleon · octopus · meerkat · badger · koala · axolotl · bison · giraffe
hlstringTwo-letter interface and results language code (e.g. en, es, de).
Example: en
glstringTwo-letter country code for result localization (e.g. us, gb, de).
Example: us
queryRequiredstringThe Google search query.
limitintegerPage size to ask for. Google returns about 10 organic results per page and stopped honoring larger counts in September 2025, so a limit above 10 still returns about 10. Some sources return their whole page of about 10 whatever limit says: a page is never trimmed after the call, so nextCursor always continues exactly where this response ended. To go deeper, send page (about 10 results per page, each billed as a request) or use google.search_100, which returns up to 100 ranked results in a single call for one flat charge and is cheaper past roughly 20 results. Price is flat per request.
Example: 10
locationstringFine-grained location to localize results to, more specific than the country-level gl. Send it as an Active Canonical Name from Google's geo-target list: place, then each parent region, then country, with no space after each comma, e.g. 'New York,New York,United States', 'Austin,Texas,United States', 'London,England,United Kingdom'. Common variations are translated to that name when they point to exactly one place: spaces after commas, missing accents, a US state abbreviation ('Orlando, FL, United States'), or a skipped region ('Sydney, Australia'). A value that names no place, or more than on
pageintegerWhich page of about 10 organic results to return, starting at 1. Send page 2, 3,... to walk deeper; each page is billed as one request. Past page 1, a query restricted with site: is served only by sources that keep the restriction on later pages. Replaces cursor.
Example: 1
