Call it
curl https://api.peume.com/v1/call/google-query-search-analytics \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"accountId": "your accountId",
"fromDate": "2026-10-01",
"toDate": "2026-10-31"
}
}'const res = await fetch("https://api.peume.com/v1/call/google-query-search-analytics", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"accountId": "your accountId",
"fromDate": "2026-10-01",
"toDate": "2026-10-31"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/google-query-search-analytics",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"accountId": "your accountId",
"fromDate": "2026-10-01",
"toDate": "2026-10-31"
}
},
)
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-query-search-analytics.
Parameters
accountIdRequiredstringaccount ID of the connection.
fromDatestringExample: 2026-10-01
toDatestringExample: 2026-10-31
dimensionsarraytypestringWhich Google surface to read. Defaults to `web`. `webMultimodal` is Google Lens, Circle to Search and image uploads.
web · image · video · news · discover · googleNews · webMultimodal
dimensionFilterGroupsarrayaggregationTypestringbyNewsShowcasePanel needs a NEWS_SHOWCASE searchAppearance filter and type discover or googleNews.
auto · byPage · byProperty · byNewsShowcasePanel
rowLimitintegerDefaults to 1000.
startRowintegerRow offset for paging past `rowLimit`.
dataStatestring`final` (default) leaves out the last two or three days; `all` includes them while Google is still filling them in; `hourly_all` is required with the `hour` dimension.
final · all · hourly_all
