Call it
curl https://api.peume.com/v1/call/amazon-products-by-asin \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"asins": [],
"amazonDomain": "amazon.com"
}
}'const res = await fetch("https://api.peume.com/v1/call/amazon-products-by-asin", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"asins": [],
"amazonDomain": "amazon.com"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/amazon-products-by-asin",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"asins": [],
"amazonDomain": "amazon.com"
}
},
)
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-products-by-asin.
Parameters
asinsRequiredarrayUp to 10 Amazon ASINs to look up (e.g. ["B0CHX1W1XY", "B09G9FPHY6"]).
amazonDomainstringAmazon marketplace domain to fetch products from (e.g. amazon.com, amazon.de, amazon.co.uk).
Example: amazon.com
routestringUpstream source to run on; omit for "octopus". octopus ($0 + $0.0036 per asin, at most $0.036, 98.4% uptime).
octopus
limitintegerMaximum number of results to return (1-10, default 10). You are billed per result returned, so a lower limit costs less.
