Call it
curl https://api.peume.com/v1/call/app-store-top-charts \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"app_collection": "your app collection"
}
}'const res = await fetch("https://api.peume.com/v1/call/app-store-top-charts", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"app_collection": "your app collection"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/app-store-top-charts",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"app_collection": "your app collection"
}
},
)
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: app-store-top-charts.
Parameters
app_collectionRequiredstringApp collection
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).
language_namestringFull language name, e.g. 'English'.
language_codestringLanguage code, e.g. 'en'.
depthintegerResults to collect (1-1000, default 100); billed per page of 100.
app_categorystringApplication category on the App Store
