Call it
curl https://api.peume.com/v1/call/google-rank-and-traffic-overview-for-a-domain \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"target": "example.com",
"location_code": 2840,
"language_name": "English"
}
}'const res = await fetch("https://api.peume.com/v1/call/google-rank-and-traffic-overview-for-a-domain", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"target": "example.com",
"location_code": 2840,
"language_name": "English"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/google-rank-and-traffic-overview-for-a-domain",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"target": "example.com",
"location_code": 2840,
"language_name": "English"
}
},
)
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-rank-and-traffic-overview-for-a-domain.
Parameters
targetstringdomain required field the domain name of the target website the domain should be specified without https:// and www.
Example: example.com
location_namestringfull name of the location optional field if you use this field, you don’t need to specify location_code you can receive the list of available locations with their location_name by making a separate request to the ignore this field
location_codeintegerlocation code optional field if you use this field, you don’t need to specify location_name you can receive the list of available locations with their location_code by making a separate request to the ignore this field to get the
Example: 2840
language_namestringfull name of the language optional field if you use this field, you don’t need to specify language_code you can receive the list of available languages with their language_name by making a separate request to the ignore this field
Example: English
language_codestringlanguage code optional field if you use this field, you don’t need to specify language_name you can receive the list of available languages with their language_code by making a separate request to the ignore this field to get the
ignore_synonymsbooleanignore highly similar keywords optional field if set to true, all highly similar keywords will be excluded from the ranking and traffic calculations, the results will be based on data for main keywords from groups of synonyms default value: false
limitintegerthe maximum number of returned results for domain optional field default value: 100 maximum value: 1000
offsetintegeroffset in the results array of returned items optional field default value: 0 if you specify the 10 value, the first ten items in the results array will be omitted and the data will be provided for the successive items
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
