Call it
curl https://api.peume.com/v1/call/google-play-bulk-metrics \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"app_ids": []
}
}'const res = await fetch("https://api.peume.com/v1/call/google-play-bulk-metrics", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"app_ids": []
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/google-play-bulk-metrics",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"app_ids": []
}
},
)
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-play-bulk-metrics.
Parameters
countrystringStorefront for `bulk_metrics`. Only the US store is covered: leave it out or pass us; any other country is rejected before the call runs.
app_idsRequiredarrayThe apps for `bulk_metrics` (1 to 20) or `keyword_intersection` (2 to 10), as an array of Android package names, the value after ?id= in a Play Store link, such as `com.spotify.music`. Only the US store is covered. On `bulk_metrics` each app gets one row and an app without data is left out; on `keyword_intersection` each row is one keyword they all rank for. Any other count is rejected before the call runs.
