Call it
curl https://api.peume.com/v1/call/google-monthly-traffic-estimates-for-up-to-1000-domains \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"targets": [
"example.com",
"cnn.com",
"forbes.com"
],
"location_code": 2840,
"language_code": "en",
"item_types": [
"organic",
"paid"
]
}
}'const res = await fetch("https://api.peume.com/v1/call/google-monthly-traffic-estimates-for-up-to-1000-domains", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"targets": [
"example.com",
"cnn.com",
"forbes.com"
],
"location_code": 2840,
"language_code": "en",
"item_types": [
"organic",
"paid"
]
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/google-monthly-traffic-estimates-for-up-to-1000-domains",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"targets": [
"example.com",
"cnn.com",
"forbes.com"
],
"location_code": 2840,
"language_code": "en",
"item_types": [
"organic",
"paid"
]
}
},
)
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-monthly-traffic-estimates-for-up-to-1000-domains.
Parameters
targetsarraytarget domains, subdomains, and webpages required field you can specify domains, subdomains, and webpages in this field; domains and subdomains should be specified without https:// and www.; pages should be specified with absolute URL, including https:// and www.; you can set up to 1000 domains, sub
Example: ["example.com","cnn.com","forbes.com"]
location_namestringfull name of the location if you use this field, you don’t have 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 to get the res
location_codeintegerlocation code if you use this field, you don’t have 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 results for all
Example: 2840
language_namestringfull name of the language 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 to get the res
language_codestringlanguage code 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 results for all
Example: en
item_typesarraydisplay results by item type optional field indicates the type of search results included in the response Note: if the item_types array contains item types that are different from organic, the results will be ordered by the first item type in the array possible values: ["organic", "paid", "featured_
Example: ["organic","paid"]
ignore_synonymsbooleanignore highly similar keywords optional field if set to true, only core keywords will be returned, all highly similar keywords will be excluded; default value: false
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
