Call it
curl https://api.peume.com/v1/call/search-google-3 \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"timeout": 50
}
}'const res = await fetch("https://api.peume.com/v1/call/search-google-3", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"timeout": 50
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/search-google-3",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"timeout": 50
}
},
)
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-google-3.
Parameters
qstringSearch query, up to 2,048 characters. Required unless ludocid or kgmid is supplied.
ludocidstringGoogle local CID to search for one entity instead of a query.
kgmidstringKnowledge Graph machine ID, such as '/m/0k8z', to search for one entity.
locationstringHuman-readable search origin, such as 'Austin, Texas'. Conflicts with uule.
uulestringPre-encoded Google location token. Conflicts with location.
latnumberLatitude of the search origin. Requires lon; conflicts with location and uule.
lonnumberLongitude of the search origin. Requires lat; conflicts with location and uule.
radiusnumberSearch-bias radius in meters around location or lat/lon: 1-199 on desktop, 1-1,000 on tablet and mobile.
lsigstringOpaque Knowledge Graph or local-pack signature from a previous response.
sistringOpaque cached Google search context from a previous response.
ibpstringGoogle layout or expansion control token.
udsstringOpaque Google filter token from a previous response.
color_schemestringResult color presentation.
light · dark
hlstringInterface and result language, such as 'en', 'en-GB', or 'de'. Default 'en'.
glstringLowercase two-letter country code for result localization, such as 'us'.
google_domainstringGoogle domain to query, such as 'google.com' or 'google.co.uk'. Default 'google.com'.
devicestringDevice layout Google renders. Default 'desktop'.
desktop · tablet · mobile
crstringCountry restrictions such as 'countryUS', joined with '|'.
lrstringLanguage restrictions such as 'lang_en', joined with '|'.
tbsstringGoogle native date or search filter string.
safestringAdult-content filtering.
active · off
nfprstringSet '1' to exclude auto-corrected queries.
0 · 1
filterstringSet '0' to include similar results Google would otherwise omit.
0 · 1
pwsstringPersonalization control; '0' asks for non-personalized results.
0 · 1
peek_pwsstringPersonalization peek flag, forwarded unchanged.
0 · 1
tbmstringGoogle vertical: lcl (local), vid (video), nws (news), shop (shopping), pts (patents). Images are not supported.
lcl · vid · nws · shop · pts
startintegerResult offset. Default 0.
numintegerBest-effort first-page result count, 1-10.
as_dtstringInclude (i) or exclude (e) the as_sitesearch host. Requires as_sitesearch.
i · e
as_epqstringExact phrase the results must contain.
as_eqstringPhrase the results must not contain.
as_lqstringOnly pages that link to this URL.
as_nlostringLower bound of an inclusive numeric range. Requires as_nhi.
as_nhistringUpper bound of an inclusive numeric range. Requires as_nlo.
as_oqstringAny-of search terms.
as_qstringAdditional all-of search terms.
as_qdrstringQuick date range: d, w, m, or y with an optional count, such as 'm3'.
as_rqstringPages related to this URL.
as_sitesearchstringSite hostname to include or exclude.
gs_lpstringGoogle gs_lp value associated with an autocomplete selection.
oqstringOriginal query associated with an autocomplete selection.
sclientstringGoogle client identifier such as 'gws-wiz-serp'.
timeoutnumberSeconds may spend before giving up (max 50, default 50). A timed-out call is not billed.
Example: 50
fast_modebooleanReturn organic results only, skipping AI Overview and every other result group.
page_tokenstringOpaque token from pagination.next_page_token. Send it alone to fetch the next page with the original search parameters; prefer it to repeating the search with a start offset.
