Call it
curl https://api.peume.com/v1/call/domain-rating-history \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"target": "your target",
"date_from": "your date from",
"history_grouping": "monthly"
}
}'const res = await fetch("https://api.peume.com/v1/call/domain-rating-history", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"target": "your target",
"date_from": "your date from",
"history_grouping": "monthly"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/domain-rating-history",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"target": "your target",
"date_from": "your date from",
"history_grouping": "monthly"
}
},
)
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: domain-rating-history.
Parameters
targetRequiredstringThe target of the report: a domain ('example.com') or a URL ('https://example.com/page').
date_fromRequiredstringStart date of the historical period in YYYY-MM-DD format.
date_tostringEnd date of the historical period in YYYY-MM-DD format. Defaults to today.
history_groupingstringTime bucket size for history rows: daily, weekly, or monthly (default). Each bucket is one billed row.
daily · weekly · monthly
Example: monthly
