Call it
curl https://api.peume.com/v1/call/historical-google-rank-and-traffic-for-a-domain \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"target": "example.com",
"location_code": 2840,
"language_code": "en",
"date_from": "2026-04-24",
"date_to": "2026-06-24"
}
}'const res = await fetch("https://api.peume.com/v1/call/historical-google-rank-and-traffic-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_code": "en",
"date_from": "2026-04-24",
"date_to": "2026-06-24"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/historical-google-rank-and-traffic-for-a-domain",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"target": "example.com",
"location_code": 2840,
"language_code": "en",
"date_from": "2026-04-24",
"date_to": "2026-06-24"
}
},
)
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: historical-google-rank-and-traffic-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 required field if you don’t specify location_code Note: it is required to specify either location_name or location_code you can receive the list of available locations with their location_name by making a separate request to the
location_codeintegerlocation code required field if you don’t specify location_name Note: it is required to specify either location_name or location_code you can receive the list of available locations with their location_code by making a separate request to the
Example: 2840
language_namestringfull name of the language required field if you don’t specify language_code Note: it is required to specify either language_name or language_code you can receive the list of available locations with their language_name by making a separate request to the
language_codestringlanguage code required field if you don’t specify language_name Note: it is required to specify either language_name or language_code you can receive the list of available locations with their language_code by making a separate request to the
Example: en
date_fromstringstarting date of the time range optional field if you don’t specify this field, the data will be provided for the previous 6 months minimal possible value: 2020-10-01 date format: "yyyy-mm-dd"
Example: 2026-04-24
date_tostringending date of the time range optional field if you don’t specify this field, the today’s date will be used by default date format: "yyyy-mm-dd" example: "2021-04-01"
Example: 2026-06-24
correlatebooleancorrelate data with previously obtained datasets optional field default value: true if you use this parameter, our system will correlate data you obtain now with previously obtained datasets this parameter is intended to mitigate any inconsistencies that may result from changes to our database we re
ignore_synonymsbooleanignore highly similar keywords optional field if set to true, only data based on core keywords will be returned, data for all highly similar keywords will be excluded; default value: false
include_clickstream_databooleaninclude or exclude data from clickstream-based metrics in the result optional field if the parameter is set to true, you will receive clickstream_etv, clickstream_gender_distribution, and clickstream_age_distribution fields with clickstream data in the response; default value: false; Note: historica
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
