Call it
curl https://api.peume.com/v1/call/tiktok-shop-search-2 \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"country": "US",
"query": "your query"
}
}'const res = await fetch("https://api.peume.com/v1/call/tiktok-shop-search-2", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"country": "US",
"query": "your query"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/tiktok-shop-search-2",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"country": "US",
"query": "your query"
}
},
)
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-search-2.
Parameters
countrystringCountry code of the TikTok Shop market to search (e.g. US).
US · VN · TH · PH · MY · ID · GB · SG · ES · MX · DE · IT …
Example: US
routestringUpstream source to run on; omit for "giraffe". flamingo ($0.00095 per call, 92.1% uptime); giraffe ($0.0012 per call, 99.8% uptime); chameleon ($0.0012 per call, 87.5% uptime); tiger ($0.0015 per call, 96% uptime). Output fields only some routes return: currency (giraffe, chameleon, tiger); reviewCount (giraffe, chameleon, tiger). A route can refuse an input it cannot apply with a 400 source_unknown (not charged): retry on another route, or omit that input.
flamingo · giraffe · chameleon · tiger
queryRequiredstringSearch keyword for TikTok Shop products (e.g. wireless earbuds).
limitintegerMaximum products to return, honoured on US searches up to 30. Other countries and larger values return every product TikTok Shop gives for the query, typically about 30 and occasionally more than 50. The price per call is the same either way.
