Call it
curl https://api.peume.com/v1/call/keywords-a-google-play-app-ranks-for-by-app \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"app_id": "org.telegram.messenger",
"location_code": 2840,
"language_name": "English",
"limit": 10
}
}'const res = await fetch("https://api.peume.com/v1/call/keywords-a-google-play-app-ranks-for-by-app", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"app_id": "org.telegram.messenger",
"location_code": 2840,
"language_name": "English",
"limit": 10
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/keywords-a-google-play-app-ranks-for-by-app",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"app_id": "org.telegram.messenger",
"location_code": 2840,
"language_name": "English",
"limit": 10
}
},
)
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: keywords-a-google-play-app-ranks-for-by-app.
Parameters
app_idstringid of the apps required field ID of the mobile application on Google Play; you can find the ID in the URL of every app listed on Google Play; example: in the URL https://play.google.com/store/apps/details?id=org.telegram.messenger the id is org.telegram.messenger
Example: org.telegram.messenger
location_namestringfull name of the location; one of location_name | location_code is required (a body with neither returns 40501). This Google Play route supports only United States: send location_code 2840 (or location_name "United States"); any other location returns 40501 Invalid Field.
location_codeintegerlocation code; one of location_code | location_name is required (a body with neither returns 40501). This Google Play route supports only United States (2840); any other location returns 40501 Invalid Field.
Example: 2840
language_namestringfull name of the language; one of language_name | language_code is required. This Google Play route supports only English; any other language returns 40501 Invalid Field.
Example: English
language_codestringlanguage code; one of language_code | language_name is required. This Google Play route supports only English (en); any other language returns 40501 Invalid Field.
filtersarrayarray of results filtering parameters optional field you can add several filters at once (8 filters maximum) you should set a logical operator and, or between the conditions the following operators are supported: <, <=, >, >=, =, <>, in, not_in example: ["keyword_data.keyword_info.search_volume",">"
order_byarrayresults sorting rules optional field you can use the same values as in the filters array to sort the results; possible sorting types: asc – results will be sorted in the ascending order; desc – results will be sorted in the descending order; you should use a comma to specify a sorting type; example:
limitintegerthe maximum number of returned keywords optional field default value: 100 maximum value: 1000
Example: 10
offsetintegeroffset in the results array of returned keywords optional field default value: 0 if you specify the 10 value, the first ten keywords in the results array will be omitted and the data will be provided for the successive keywords
tagstringuser-defined task identifier optional field the character limit is 255 you can use this parameter to identify the task and match it with the result you will find the specified tag value in the data object of the response
