Call it
curl https://api.peume.com/v1/call/amazon-organic-and-paid-rank-for-products-by-asin \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"asins": [
"B001TJ3HUG",
"B01LW2SL7R"
],
"location_code": 2840,
"language_name": "English"
}
}'const res = await fetch("https://api.peume.com/v1/call/amazon-organic-and-paid-rank-for-products-by-asin", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"asins": [
"B001TJ3HUG",
"B01LW2SL7R"
],
"location_code": 2840,
"language_name": "English"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/amazon-organic-and-paid-rank-for-products-by-asin",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"asins": [
"B001TJ3HUG",
"B01LW2SL7R"
],
"location_code": 2840,
"language_name": "English"
}
},
)
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-organic-and-paid-rank-for-products-by-asin.
Parameters
asinsarrayproduct IDs to compare required field product IDs to receive ranking data for; the maximum number of ASINs you can specify in this array is 1000; you can receive the asin parameter by making a separate request to the Amazon Products endpoint Note: all letters in ASIN code must be specified in upperc
Example: ["B001TJ3HUG","B01LW2SL7R"]
location_namestringfull name of the location required field if don’t specify location_code you can receive the list of available locations with their location_name by making a separate request to Note: this endpoint currently supports the US, Egypt
location_codeintegerlocation code required field if don’t specify location_name you can receive the list of available locations with their location_code by making a separate request to Note: this endpoint currently supports the US, Egypt, Saudi Arab
Example: 2840
language_namestringfull name of the language required field if don’t specify language_code you can receive the list of available languages with their language_name by making a separate request to the example: English
Example: English
language_codestringlanguage code required field if don’t specify language_name you can receive the list of available languages with their language_code by making a separate request to the example: en
tagstringuser-defined task identifier optional field the character limit is 255 you can use this parameter to identify the task and match it with the result you will find the specified tag value in the data object of the response
