Call it
curl https://api.peume.com/v1/call/tiktok-shop-store-products-3 \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"sortBy": "top",
"url": "your url"
}
}'const res = await fetch("https://api.peume.com/v1/call/tiktok-shop-store-products-3", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"sortBy": "top",
"url": "your url"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/tiktok-shop-store-products-3",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"sortBy": "top",
"url": "your url"
}
},
)
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-store-products-3.
Parameters
cursorstringOpaque pagination cursor from a previous response's nextCursor. Pages can overlap: a page may repeat items an earlier page returned and is billed like any other, so de-duplicate by item id and stop when a page adds no new id.
routestringUpstream source to run on; omit for "giraffe". anonymous-tiger-6f8f398d ($0.00119 per call, 0% uptime); giraffe ($0.0012 per call, 99.9% uptime); anonymous-tiger ($0.0012 per call, 76.5% uptime). Output fields only some routes return: productCount (giraffe); shopRating (giraffe); soldCount (giraffe). A route can refuse an input it cannot apply with a 400 source_unknown (not charged): retry on another route, or omit that input.
anonymous-tiger-6f8f398d · giraffe · anonymous-tiger
sortBystringProduct ordering within the store.
top · new_releases
Example: top
regionstringTwo-letter country code of the store's market (e.g. US).
urlRequiredstringTikTok Shop store URL (e.g. https://www.tiktok.com/shop/store/<name>/<id> or https://shop.tiktok.com/us/store/<name>/<id>). The link must include the store's numeric id, the long number after the store name: a link with only the name (tiktok.com/shop/store/<name>) does not open a store page on TikTok. A link without the store id, a vt.tiktok.com or vm.tiktok.com share link, or any link that is not a store page, is refused as invalid input, with no charge; send the store page link with its id (tiktok.com/shop/store/<name>/<id>) instead.
