Call it
curl https://api.peume.com/v1/call/google-ads-google-search-volume-and-cpc-for-up \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"keywords": [
"coffee"
],
"location_code": 2840,
"language_code": "en"
}
}'const res = await fetch("https://api.peume.com/v1/call/google-ads-google-search-volume-and-cpc-for-up", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"keywords": [
"coffee"
],
"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/google-ads-google-search-volume-and-cpc-for-up",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"keywords": [
"coffee"
],
"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: google-ads-google-search-volume-and-cpc-for-up.
Parameters
keywordsRequiredarrayup to 1000 keywords, each max 80 chars / 10 words; lowercased by the API
Example: ["coffee"]
location_codeinteger2840 = United States; omitting it returns worldwide volume
Example: 2840
language_codestringe.g. "en"
Example: en
search_partnersbooleaninclude Google search partners; default false
date_fromstringyyyy-mm-dd, max 4 years back
date_tostringyyyy-mm-dd, cannot be later than last month
include_adult_keywordsbooleandefault false
sort_bystringrelevance (default) | search_volume | competition_index | low_top_of_page_bid | high_top_of_page_bid
Other ways to do it
Same job, other sources, cheapest first.
