Call it
curl https://api.peume.com/v1/call/google-ads-keyword-ideas-from-seed-keywords \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"keywords": [
"phone",
"cellphone"
],
"location_code": 2840
}
}'const res = await fetch("https://api.peume.com/v1/call/google-ads-keyword-ideas-from-seed-keywords", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"keywords": [
"phone",
"cellphone"
],
"location_code": 2840
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/google-ads-keyword-ideas-from-seed-keywords",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"keywords": [
"phone",
"cellphone"
],
"location_code": 2840
}
},
)
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-keyword-ideas-from-seed-keywords.
Parameters
keywordsarraykeywords required field The maximum number of keywords you can specify: 20 The maximum number of characters for each keyword: 80 the keywords you specify will be converted to a lowercase format Note: Google Ads may return no data for certain groups of keywords visit our Help Center to learn more Als. Size: relays at most 8 MiB of response: a larger answer is refused with 502 response_buffer_limit and not charged; broad seeds can cross it well below 20 seeds, so send fewer seeds per call or narrow date_from/date_to
Example: ["phone","cellphone"]
location_namestringfull name of search engine location optional field if you do not indicate the location, you will receive worldwide results, i.e., for all available locations; if you use this field, you don’t need to specify location_code or location_coordinate you can receive the list of available locations of the
location_codeintegersearch engine location code optional field if you do not indicate the location, you will receive worldwide results, i.e., for all available locations; if you use this field, you don’t need to specify location_name or location_coordinate; you can receive the list of available locations of the search
Example: 2840
location_coordinatestringGPS coordinates of a location optional field if you do not indicate the location, you will receive worldwide results, i.e., for all available locations; if you use this field, you don’t need to specify location_name or location_code; location_coordinate parameter should be specified in the “latitude
language_namestringfull name of search engine language optional field you can receive the list of available languages of the search engine with their language_name by making a separate request to example: English
language_codestringsearch engine language code optional field you can receive the list of available languages of the search engine with their language_code by making a separate request to example: en
search_partnersbooleaninclude Google search partners optional field if you specify true, the results will be delivered for owned, operated, and syndicated networks across Google and partner sites that host Google search; default value: false – results are returned for Google search sites
date_fromstringstarting date of the time range optional field date format: "yyyy-mm-dd" minimal value: 4 years from the current date by default, data is returned for the past 12 months; Note: the indicated date cannot be greater than that specified in date_to and/or yesterday’s date;if Status endpoint returns fals
date_tostringending date of the time range optional field Note: the indicated date cannot be greater than yesterday’s date; if you don’t specify this field, yesterday’s date will be used by default date format: "yyyy-mm-dd" example: "2022-11-30"
sort_bystringresults sorting parameters optional field Use these parameters to sort the results by relevance, search_volume, competition_index, low_top_of_page_bid, or high_top_of_page_bid in descending order default value: relevance
include_adult_keywordsbooleaninclude keywords associated with adult content optional field if set to true, adult keywords will be included in the response default value: false note that the API may return no data for such keywords due to Google Ads restrictions
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
