Call it
curl https://api.peume.com/v1/call/amazon-keywords-a-product-ranks-for-by-asin \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"asin": "B00R92CL5E",
"location_code": 2840,
"language_code": "en"
}
}'const res = await fetch("https://api.peume.com/v1/call/amazon-keywords-a-product-ranks-for-by-asin", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"asin": "B00R92CL5E",
"location_code": 2840,
"language_code": "en"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/amazon-keywords-a-product-ranks-for-by-asin",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"asin": "B00R92CL5E",
"location_code": 2840,
"language_code": "en"
}
},
)
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-keywords-a-product-ranks-for-by-asin.
Parameters
asinstringproduct ID required field unique product identifier (ASIN) on Amazon; you can receive the asin parameter by making a separate request to the Amazon Products endpoint
Example: B00R92CL5E
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
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
Example: en
limitintegerthe maximum number of products in the results array optional field default value: 100; maximum value: 1000
ignore_synonymsbooleanignore highly similar keywords optional field if set to true only core keywords will be returned, all highly similar keywords will be excluded; default value: false
filtersarrayarray of results filtering parameters optional field you can add several filters at once (8 filters maximum) you should set a logical operator and, or between the conditions the following operators are supported: regex, not_regex, <, <=, >, >=, =, <>, in, not_in, like, not_like, match, not_match you
order_byarrayresults sorting rules optional field you can use the same values as in the filters array to sort the results possible sorting types: asc – results will be sorted in the ascending order desc – results will be sorted in the descending order you should use a comma to set up a sorting parameter example:
offsetintegeroffset in the results array of returned keywords optional field default value: 0 if you specify the 10 value, the first ten keywords in the results array will be omitted and the data will be provided for the successive keywords
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
