Call it
curl https://api.peume.com/v1/call/citation-trends-by-category \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"category_code": 10994,
"search_mode": "as_is",
"date_from": "2026-04-24",
"date_group": "month"
}
}'const res = await fetch("https://api.peume.com/v1/call/citation-trends-by-category", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"category_code": 10994,
"search_mode": "as_is",
"date_from": "2026-04-24",
"date_group": "month"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/citation-trends-by-category",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"category_code": 10994,
"search_mode": "as_is",
"date_from": "2026-04-24",
"date_group": "month"
}
},
)
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: citation-trends-by-category.
Parameters
category_codeintegertarget category code required field to obtain a full list of available categories, refer to the Categories endpoint
Example: 10994
page_typearraytarget page types optional field use this parameter to filter the dataset by page types possible values: "ecommerce", "news", "blogs", "message-boards", "organization"
search_modestringresults grouping type optional field possible grouping types: as_is – returns data on all citations for the target category_code one_per_domain – returns data on one citation of the category_code per domain default value: as_is
Example: as_is
internal_list_limitintegermaximum number of elements within internal arrays optional field you can use this field to limit the number of elements within the following arrays: top_domains text_categories page_categories countries languages default value: 1 maximum value: 20
date_fromstringstarting date of the time range required field minimum value: 2022-10-31 date format: "yyyy-mm-dd" example: "2019-01-15"
Example: 2026-04-24
date_tostringending date of the time range optional field if you don’t specify this field, today’s date will be used by default date format: "yyyy-mm-dd" example: "2019-01-15"
date_groupstringtime range which will be used to group the results optional field default value: month possible values: day, week, month
Example: month
initial_dataset_filtersarrayinitial dataset filtering parameters optional field initial filtering parameters that apply to fields in the Search endpoint; 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_reg
rank_scalestringdefines the scale used for calculating and displaying the rank values optional field you can use this parameter to choose whether rank values are presented on a 0–100 or 0–1000 scale possible values: one_hundred — rank values are displayed on a 0–100 scale one_thousand — rank values are displayed on
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
