Call it
curl https://api.peume.com/v1/call/google-product-categories-a-domain-ranks-in \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"target": "example.com",
"location_name": "United States",
"language_code": "en",
"item_types": [
"paid",
"organic",
"featured_snippet",
"local_pack"
],
"limit": 3
}
}'const res = await fetch("https://api.peume.com/v1/call/google-product-categories-a-domain-ranks-in", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"target": "example.com",
"location_name": "United States",
"language_code": "en",
"item_types": [
"paid",
"organic",
"featured_snippet",
"local_pack"
],
"limit": 3
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/google-product-categories-a-domain-ranks-in",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"target": "example.com",
"location_name": "United States",
"language_code": "en",
"item_types": [
"paid",
"organic",
"featured_snippet",
"local_pack"
],
"limit": 3
}
},
)
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-product-categories-a-domain-ranks-in.
Parameters
targetstringdomain or subdomain required field the domain or subdomain name of the target website the domain or subdomain 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
Example: United States
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
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
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
Example: en
include_subcategoriesbooleanindicates if the subcategories will be included in the search optional field if set to false, the subcategories will be ignored default value: false learn more about the parameter in this help center article
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
historical_serp_modestringdata collection mode optional field you can use this field to filter the results; possible types of filtering: live — return metrics for SERPs in which the specified target currently has ranking results; lost — return metrics for SERPs in which the specified target had previously had ranking results
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 the organic object, the results will be ordered by the first item type in the array; you will not be able to sort and fi
Example: ["paid","organic","featured_snippet","local_pack"]
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.pos_1,">",
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 categories optional field default value: 100 maximum value: 1000
Example: 3
offsetintegeroffset in the results array of returned categories optional field default value: 0 if you specify the 10 value, the first ten categories in the results array will be omitted and the data will be provided for the successive categories
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
