Call it
curl https://api.peume.com/v1/call/search-amazon-products-by-keyword-or-asin \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"keyword": "your keyword",
"country": "US",
"sortBy": "RELEVANCE",
"productCondition": "ALL",
"isPrime": false,
"dealsAndDiscounts": "NONE"
}
}'const res = await fetch("https://api.peume.com/v1/call/search-amazon-products-by-keyword-or-asin", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"keyword": "your keyword",
"country": "US",
"sortBy": "RELEVANCE",
"productCondition": "ALL",
"isPrime": false,
"dealsAndDiscounts": "NONE"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/search-amazon-products-by-keyword-or-asin",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"keyword": "your keyword",
"country": "US",
"sortBy": "RELEVANCE",
"productCondition": "ALL",
"isPrime": False,
"dealsAndDiscounts": "NONE"
}
},
)
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-amazon-products-by-keyword-or-asin.
Parameters
keywordRequiredstringSearch keyword or ASIN to find Amazon products.
countrystringCountry code for the Amazon marketplace. Available Values: - `US`: United States - `AU`: Australia - `BR`: Brazil - `CA`: Canada - `CN`: China - `FR`: France - `DE`: Germany - `IN`: India - `IT`: Italy - `MX`: Mexico - `NL`: Netherlands - `SG`: Singapore - `ES`: Spain - `TR`: Turkey - `AE`: United A One of: US, AU, BR, CA, CN, FR, DE, IN, IT, MX, NL, SG.
Example: US
sortBystringSort order for Amazon product search results. Available Values: - `RELEVANCE`: Relevance - `LOWEST_PRICE`: Lowest Price - `HIGHEST_PRICE`: Highest Price - `REVIEWS`: Reviews - `NEWEST`: Newest - `BEST_SELLERS`: Best Sellers One of: RELEVANCE, LOWEST_PRICE, HIGHEST_PRICE, REVIEWS, NEWEST, BEST_SELLERS.
RELEVANCE · LOWEST_PRICE · HIGHEST_PRICE · REVIEWS · NEWEST · BEST_SELLERS
Example: RELEVANCE
productConditionstringProduct condition filter for Amazon search results. Available Values: - `ALL`: All product conditions - `NEW`: New products - `USED`: Used products - `RENEWED`: Renewed products - `COLLECTIBLE`: Collectible products One of: ALL, NEW, USED, RENEWED, COLLECTIBLE.
ALL · NEW · USED · RENEWED · COLLECTIBLE
Example: ALL
isPrimebooleanWhether to return only Prime-eligible products.
Example: false
dealsAndDiscountsstringDeals and discounts filter for Amazon search results. Available Values: - `NONE`: Do not filter by deals or discounts - `ALL_DISCOUNTS`: Return discounted products - `TODAYS_DEALS`: Return today's deals One of: NONE, ALL_DISCOUNTS, TODAYS_DEALS.
NONE · ALL_DISCOUNTS · TODAYS_DEALS
Example: NONE
pageintegerPage number for pagination.
Example: 1
Other ways to do it
Same job, other sources, cheapest first.
