Call it
curl https://api.peume.com/v1/call/google-search \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"gl": "us",
"hl": "en",
"limit": 1,
"page": 1,
"query": "best coffee maker"
}
}'const res = await fetch("https://api.peume.com/v1/call/google-search", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"gl": "us",
"hl": "en",
"limit": 1,
"page": 1,
"query": "best coffee maker"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/google-search",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"gl": "us",
"hl": "en",
"limit": 1,
"page": 1,
"query": "best coffee maker"
}
},
)
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.
Parameters
fieldsstringComma-separated keys (dotted paths descend) to keep on each result item. Trims the response, not the charge.
max_itemsintegerCaps the result rows returned; `_truncated` says how many were withheld. Not the charge.
summaryboolean`true` returns only an outline: keys, item counts, per-field sizes.
jqstringjq expression over the result envelope; its output replaces `output`. A failed expression returns the full result with `jqError`.
autocorrectbooleanToggle Google spelling autocorrect (default true). Set false to search the exact query without correction.
cursorstringDeprecated: send page instead. A continuation token from an earlier response's nextCursor is still accepted and still continues on the source that issued it; page is ignored when cursor is sent alongside it.
glstringTwo-letter country code for result localization (e.g. us, gb, de).
Example: us
hlstringTwo-letter interface and results language code (e.g. en, es, de).
Example: en
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: 1
locationstringFine-grained location for result localization, given as a canonical Google location string (e.g. 'New York, United States', 'London, United Kingdom'). More specific than the country-level gl.
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 and any source can serve any page. Replaces cursor.
Example: 1
queryRequiredstringThe Google search query.
Example: best coffee maker
timeframestringRestrict results to a recent time window: 1h, 1d, 7d, 1y, or all. Default all (no time restriction).
Other ways to do it
Same job, other sources, cheapest first.
