Call it
curl https://api.peume.com/v1/call/1688-product-search \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"query": "your query"
}
}'const res = await fetch("https://api.peume.com/v1/call/1688-product-search", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"query": "your query"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/1688-product-search",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"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: 1688-product-search.
Parameters
queryRequiredstringProduct keyword to search, in any language, e.g. 'bag' or '手机壳'.
languagestringTwo-letter language code for titles and supplier names (default 'en').
currencystringCurrency code for the converted prices (default 'HKD'). The original yuan price is always returned, so leave this unset for yuan.
USD · HKD · EUR · GBP · JPY · KRW · SGD · MYR · TWD · THB · IDR · PHP …
beginPageintegerResult page, starting at 1 (default 1). Stay within the result total (`totalCount` / `pageSize`): a page past the end fails upstream.
pageSizeintegerOffers per page, 1-60 (default 60).
exactMatchbooleanKeep only the offers whose title contains every word of `query` (default false). 1688 ranks loosely: a precise multi-word query can come back with unrelated products. With this on those are dropped, `match` says which words were checked and how many offers were removed, and a page where no title has every word returns an empty `offers` list (not billed). The check is strict, on the returned title, whole words only (singular and plural count as one word): an offer worded differently ('double-layer' for 'double wall') is dropped too, so an empty page means no title on this page had all the words
