Call it
curl https://api.peume.com/v1/call/amazon-search \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"limit": 10,
"keyword": "your keyword"
}
}'const res = await fetch("https://api.peume.com/v1/call/amazon-search", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"limit": 10,
"keyword": "your keyword"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/amazon-search",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"limit": 10,
"keyword": "your keyword"
}
},
)
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: amazon-search.
Parameters
fastbooleanFast mode for `search`. JSON boolean, default `false`; the string `"true"` is rejected. Pass `true` when you only need title, price, rating and link. The call then usually returns in 10 to 20 seconds, the response gets a top-level `"fast": true`, and each row leaves out these 8 fields: `brand`, `in_stock`, `category`, `description`, `seller_name`, `images`, `features`, `bestseller_ranks`. The price is the same as without `fast`. Fast mode works on synchronous calls only and cannot be combined with `lang`; either case returns 422. Only some Amazon domains are supported; for others you get a 422
domainstringSpecifies the Amazon country domain without a scheme or path, such as amazon.com, amazon.co.uk, or amazon.co.jp. It defaults to amazon.com, and the search action uses it to build that store's search URLs.
limitintegerMaximum number of results, 1 to 50 (default 10). For some actions it counts pages or items per parent rather than final rows.
Example: 10
keywordRequiredstringSpecifies the primary search string according to the requested Amazon action. In search, pass the product search terms. In bestsellers, pass a full Amazon bestsellers category URL or a category short name used to build the path. In sellers, pass a product or seller page URL; raw search terms generate a product search page rather than looking up a seller ID directly.
langstringSpecifies the page language for supported Amazon endpoints using valid codes such as en or ja. Use zhcn for Simplified Chinese and zhtw for Traditional Chinese instead of a generic zh code. Requests accept only the language codes listed for the action, and selecting a language alters the rendered content rather than changing the target country store. One of: ar, bn, cs, da, de, en, es, fr, he, hi, ja, kn, ko, ml, mrta, nl, pl, pt, sv, ta, te, tr, zhcn, zhtw.
ar · bn · cs · da · de · en · es · fr · he · hi · ja · kn …
