Call it
curl https://api.peume.com/v1/call/search-tiktok-shop-products-by-keyword \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"maxItems": 100,
"maxTotalChargeUsd": 0.5,
"memory": 2048,
"timeout": 90,
"search_terms": [
"phone case"
],
"region": "US"
}
}'const res = await fetch("https://api.peume.com/v1/call/search-tiktok-shop-products-by-keyword", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"maxItems": 100,
"maxTotalChargeUsd": 0.5,
"memory": 2048,
"timeout": 90,
"search_terms": [
"phone case"
],
"region": "US"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/search-tiktok-shop-products-by-keyword",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"maxItems": 100,
"maxTotalChargeUsd": 0.5,
"memory": 2048,
"timeout": 90,
"search_terms": [
"phone case"
],
"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: search-tiktok-shop-products-by-keyword.
Parameters
maxItemsintegeroptional row cap; pay-per-event actors that take the row count from their own input ignore it, so maxTotalChargeUsd is the spend limit
Example: 100
maxTotalChargeUsdnumberthe spend cap enforces on every event this run bills, in dollars. 's key requires it, above 0 and at most 1, and holds it for the call
Example: 0.5
memoryintegerMB of run memory. 's key requires 2048, which fixes the actor-start charge; your own key may set any size
Example: 2048
timeoutintegerrun timeout in seconds. 's key requires 90 so the run and its rows arrive before any wait gives up; a larger pull should use your own key and the async web.scrape.job.* pair above
Example: 90
search_termsRequiredarraykeywords to search, one per entry; each returns every matching product up to max_results
Example: ["phone case"]
regionstringstorefront to scrape — one of US|GB|VN|TH|PH|MY|SG|JP|MX|ID; decides the catalogue, listing language and price currency. Default US. Coverage is strongest on US and SEA storefronts
Example: US
max_resultsintegermax products per search term, 1-500; default 100. You pay per product returned, so cap it or set maxTotalChargeUsd
Example: 100
scrape_product_detailsbooleantrue opens each product's detail page for the full field set — billed at the higher product-detail price, not the search price (see cost note). Default false
false
Example: false
proxyUrlsarrayleave empty to use the residential proxy included in the run price; or pass your own gateway URLs
Other ways to do it
Same job, other sources, cheapest first.
