Call it
curl https://api.peume.com/v1/call/amazon-category-products \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"category_id": "your category id"
}
}'const res = await fetch("https://api.peume.com/v1/call/amazon-category-products", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"category_id": "your category id"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/amazon-category-products",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"category_id": "your category id"
}
},
)
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: amazon-category-products.
Parameters
category_idRequiredstringAn Amazon US category: a top-level category name such as `electronics` or `toys-and-games` (`Toys and Games` also works), a “top-level name/category ID” such as `electronics/281407`, or a US bestsellers link (/zgbs/… or /gp/bestsellers/…), the same forms `bestsellers` takes in `keyword`.
page_tokenstringPage token for `category_products`. Leave it out for the first page; when the response has `next_page_token`, pass it back unchanged as `page_token`, with `category_id` unchanged. Up to 100 pages; each page counts as one call.
