Call it
curl https://api.peume.com/v1/call/google-competitor-domains-of-a-domain-rank-and-traffic \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"target": "newmouth.com",
"location_code": 2840,
"language_name": "English",
"limit": 3,
"intersecting_domains": [
"dentaly.org",
"health.com",
"trysnow.com"
]
}
}'const res = await fetch("https://api.peume.com/v1/call/google-competitor-domains-of-a-domain-rank-and-traffic", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"target": "newmouth.com",
"location_code": 2840,
"language_name": "English",
"limit": 3,
"intersecting_domains": [
"dentaly.org",
"health.com",
"trysnow.com"
]
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/google-competitor-domains-of-a-domain-rank-and-traffic",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"target": "newmouth.com",
"location_code": 2840,
"language_name": "English",
"limit": 3,
"intersecting_domains": [
"dentaly.org",
"health.com",
"trysnow.com"
]
}
},
)
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-competitor-domains-of-a-domain-rank-and-traffic.
Parameters
targetstringdomain required field the domain name of the target website the domain should be specified without https:// and www. you can specify page URL, but the results will be specific to the domain in the specified URL
Example: newmouth.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 languages with their language_name by making a separate request to the
Example: English
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 languages with their language_code by making a separate request to the
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; you will not be able to sort and filter result
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 with this paramet
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: regex, not_regex, <, <=, >, >=, =, <>, in, not_in example: ["metrics.organic.count",">"
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: ["m
limitintegerthe maximum number of returned domains optional field default value: 100 maximum value: 1000
Example: 3
offsetintegeroffset in the results array of returned domains 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
max_rank_groupintegermaximum rank up to which competitors will be considered optional field default value: 100 if you specify 10 here, we will extract competitors from the top 10 Google search results only
exclude_top_domainsbooleanindicates whether to exclude world’s largest websites optional field default value: false set to true if you want to get highly-relevant competitors excluding the websites listed below: wikipedia.org pinterest.com amazon.com google.com facebook.com wordpress.com medium.com quora.com reddit.com youtu
exclude_domainsarrayexclude domains from the results optional field use this parameter to exclude specific domains from the results Note: you can specify up to 1000 domains in this array example: "exclude_domains": [ "reddit.com", "youtube.com" ]
intersecting_domainsarrayadditional domains for improving results accuracy optional field to improve the accuracy of the result, you can specify domains that are known to intersect with the target in SERPs; if you use this array, metrics in the result will be based on SERPs where both target website and intersecting_domains
Example: ["dentaly.org","health.com","trysnow.com"]
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
