Call it
curl https://api.peume.com/v1/call/amazon-related-search-keywords-for-a-seed-keyword \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"keyword": "computer mouse",
"location_code": 2840,
"language_name": "English",
"include_seed_keyword": true,
"limit": 5
}
}'const res = await fetch("https://api.peume.com/v1/call/amazon-related-search-keywords-for-a-seed-keyword", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"keyword": "computer mouse",
"location_code": 2840,
"language_name": "English",
"include_seed_keyword": true,
"limit": 5
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/amazon-related-search-keywords-for-a-seed-keyword",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"keyword": "computer mouse",
"location_code": 2840,
"language_name": "English",
"include_seed_keyword": True,
"limit": 5
}
},
)
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-related-search-keywords-for-a-seed-keyword.
Parameters
keywordstringkeyword required field UTF-8 encoding the keywords should be specified in the lowercase format learn more about rules and limitations of keyword and keywords fields in APIs in this Help Center article
Example: computer mouse
location_namestringfull name of the location required field if you don’t specify location_code Note: it is required to specify either location_name or location_code you can receive the list of available locations with their location_name by making a separate request to
location_codeintegerlocation code required field if you don’t specify location_name Note: it is required to specify either location_name or location_code you can receive the list of available locations with their location_code by making a separate request to
Example: 2840
language_namestringfull name of the language required field if you don’t specify language_code Note: it is required to specify either language_name or language_code you can receive the list of available locations with their language_name by making a separate request to
Example: English
language_codestringlanguage code required field if you don’t specify language_name Note: it is required to specify either language_name or language_code you can receive the list of available locations with their language_code by making a separate request to
depthintegerkeyword search depth optional field default value: 1; number of the returned results depends on the value you set in this field; you can specify a level from 0 to 4; estimated number of keywords for each level (maximum): 0 – the keyword set in the keyword field 1 – 6 keywords 2 – 42 keywords 3 – 258
include_seed_keywordbooleaninclude data for the seed keyword optional field if set to true, data for the seed keyword specified in the keyword field will be provided in the seed_keyword_data array of the response default value: false
Example: true
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
limitintegerthe maximum number of returned keywords optional field default value: 100 maximum value: 1000
Example: 5
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
