Call it
curl https://api.peume.com/v1/call/tiktok-shop-products-by-category \
-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/tiktok-shop-products-by-category", {
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/tiktok-shop-products-by-category",
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: tiktok-shop-products-by-category.
Parameters
countrystringThe TikTok Shop market: US (default), SG, MY, PH, TH, VN, ID, JP or MX. Prices are in that market's local currency: `price` is a number and `currency` is the currency code (USD, MXN, MYR, THB, VND, PHP, SGD, JPY, IDR).
category_idRequiredstringA numeric TikTok Shop category ID for `shop_category_products`, such as 601450 (beauty and personal care); first, second and third-level categories all work.
page_tokenstringPage token for TikTok list actions such as `hashtag_search`, `sound_videos`, `following` and `shop_products`. Leave it out for the first page, then pass back the previous response's `next_page_token` exactly as received, with the other parameters unchanged; the last page has none.
