Call it
curl https://api.peume.com/v1/call/search-lazada-products-by-keyword-across-southeast-asia \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"maxItems": 40,
"maxTotalChargeUsd": 0.06,
"memory": 2048,
"timeout": 90,
"search_terms": [
"iphone 15 case"
],
"region": "sg"
}
}'const res = await fetch("https://api.peume.com/v1/call/search-lazada-products-by-keyword-across-southeast-asia", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"maxItems": 40,
"maxTotalChargeUsd": 0.06,
"memory": 2048,
"timeout": 90,
"search_terms": [
"iphone 15 case"
],
"region": "sg"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/search-lazada-products-by-keyword-across-southeast-asia",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"maxItems": 40,
"maxTotalChargeUsd": 0.06,
"memory": 2048,
"timeout": 90,
"search_terms": [
"iphone 15 case"
],
"region": "sg"
}
},
)
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-lazada-products-by-keyword-across-southeast-asia.
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: 40
maxTotalChargeUsdnumberthe spend cap enforces on every event this run bills, in dollars. 's key requires it, at most 1, and holds it for the call; this actor refuses a cap below 0.05. Set it ABOVE max_results x 0.005 (0.06 for 10 products): a run whose charges land exactly on the cap can be aborted by and answers 400 with no rows
Example: 0.06
memoryintegerMB of run memory. 's key requires 2048; 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 is paged until the run reaches max_results. An empty list stops the run with an input error before anything is charged
Example: ["iphone 15 case"]
regionstringone of sg|my|vn|th|ph|id — decides which country site, the listing language and the currency of every price. Default sg. One run covers one country, so comparing markets means one run per region
Example: sg
max_resultsintegertotal products across all search terms; default 40, max 4000, and a value below 10 is raised to 10. A single keyword usually runs out before 4000 — widen coverage with more terms, not a higher cap
Example: 40
proxyUrlsarrayleave empty to use the residential proxy included in the run price; or pass one gateway URL per entry to route through your own provider instead
