Call it
curl https://api.peume.com/v1/call/tiktok-shop-store-products-by-store-url \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"url": "https://www.tiktok.com/shop/store/goli-nutrition/7495794203056835079",
"sort_by": "top",
"region": "US"
}
}'const res = await fetch("https://api.peume.com/v1/call/tiktok-shop-store-products-by-store-url", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"url": "https://www.tiktok.com/shop/store/goli-nutrition/7495794203056835079",
"sort_by": "top",
"region": "US"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/tiktok-shop-store-products-by-store-url",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"url": "https://www.tiktok.com/shop/store/goli-nutrition/7495794203056835079",
"sort_by": "top",
"region": "US"
}
},
)
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-by-store-url.
Parameters
urlRequiredstringThe TikTok Shop store URL.
Example: https://www.tiktok.com/shop/store/goli-nutrition/7495794203056835079
cursorstringCursor parameter from the previous response to retrieve the next page of products. Omit for the first page.
sort_bystringSort products by best-selling items (`top`) or newest products (`new_releases`). Defaults to `top`.
Example: top
regionstringRegion to get shop products from. Defaults to US if not provided. Non-US regions are not reliable right now and may return `not_found` or limited catalog data even when the shop appears in search. Sorry for the inconv...
Example: US
Other ways to do it
Same job, other sources, cheapest first.
