Call it
curl https://api.peume.com/v1/call/google-search-results \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"keyword": "your keyword"
}
}'const res = await fetch("https://api.peume.com/v1/call/google-search-results", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"keyword": "your keyword"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/google-search-results",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"keyword": "your keyword"
}
},
)
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-results.
Parameters
keywordRequiredstringSearch query, up to 700 characters.
location_namestringFull location name exactly as listed in the locations dictionary, e.g. 'London,England,United Kingdom' or 'United States'.
location_codeintegerNumeric location code from the locations dictionary, e.g. 2840 (United States).
location_coordinatestring'latitude,longitude,radius' with the radius in metres (200-19999), e.g. '52.6178549,-155.352142,1000'.
language_namestringFull language name, e.g. 'English'.
language_codestringLanguage code, e.g. 'en'.
depthintegerResults to collect (1-200, default 10); billed per page of 10.
devicestringDevice type (default desktop; values: desktop, mobile)
load_async_ai_overviewbooleanAlso load AI overviews that Google renders asynchronously; adds $0.002, refunded when the SERP has none.
osstringDevice operating system (default windows)
stop_crawl_on_matcharrayStop crawl on match
match_typestringHow match_value is matched for stop_crawl_on_match: domain, with_subdomains, or wildcard.
match_valuestringTarget domain, subdomain, or wildcard value
max_crawl_pagesintegerPage crawl limit (max 100)
search_paramstringAdditional parameters of the search query
remove_from_urlarrayRemove specific parameters from URLs
people_also_ask_click_depthintegerExpand People Also Ask this many levels (1-4); each click adds $0.00015, refunded when the element is absent.
group_organic_resultsbooleanDisplay related results (default true)
calculate_rectanglesbooleanAdd pixel rankings (distance of each element from the top-left corner); adds $0.002 to the call.
browser_screen_widthintegerBrowser screen width
browser_screen_heightintegerBrowser screen height
browser_screen_resolution_ratiointegerBrowser screen resolution ratio
urlstringDirect URL of the search query
se_domainstringSearch engine domain (e.g. google.co.uk)
targetstringTarget domain, subdomain, or webpage to get results for
target_search_modestringHow target must match: 'any' (default) or 'all' of find_targets_in elements.
find_targets_inarraySERP element types to check for targets (values: organic, paid, local_pack, featured_snippet, events, google_flights, images, jobs, knowledge_graph, local_service, map, scholarly_articles, third_party_reviews, twitter)
ignore_targets_inarraySERP element types to exclude from target search (values: organic, paid, local_pack, featured_snippet, events, google_flights, images, jobs, knowledge_graph, local_service, map, scholarly_articles, third_party_reviews, twitter)
