Call it
curl https://api.peume.com/v1/call/keyword-search-volume \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"keywords": [
"you tube",
"youtube",
"youtub"
],
"location_code": 2840,
"language_code": "en",
"tag": "test-tag"
}
}'const res = await fetch("https://api.peume.com/v1/call/keyword-search-volume", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"keywords": [
"you tube",
"youtube",
"youtub"
],
"location_code": 2840,
"language_code": "en",
"tag": "test-tag"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/keyword-search-volume",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"keywords": [
"you tube",
"youtube",
"youtub"
],
"location_code": 2840,
"language_code": "en",
"tag": "test-tag"
}
},
)
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: keyword-search-volume.
Parameters
keywordsarraytarget keywords required field UTF-8 encoding maximum number of keywords you can specify in this array: 1000 the keywords will be converted to lowercase format Note: certain symbols and characters (e.g., UTF symbols, emojis) are not allowed to learn more about which symbols and characters can be use
Example: ["you tube","youtube","youtub"]
location_namestringfull name of search engine location required field if you don’t specify location_code you can receive the list of available locations with location_name by making a separate request to example: United Kingdom
location_codeintegersearch engine location code required field if you don’t specify location_name if you use this field, you can receive the list of available locations with location_code by making a separate request to the example: 28
Example: 2840
language_namestringfull name of search engine 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_codestringsearch engine language 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
use_clickstreambooleanuse clickstream data to provide results optional field if set to true, you will get search volume values based on clickstream data; if set to false, Bing search volume data will be used to calculate search volume; default value: true; Note: Bing search volume is available for l
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
Example: test-tag
