Google Ads keyword API



Price: 8 credits per request


Description: Pull keyword data directly form the Google Ads API
Important: The rate limit for the API is 12 requests per minute. 

Query string parameters

Name Parameter Description
Keyword &keyword=

The keyword or phrase is used by the the algorithm to discover keyword ideas that are from the same keyword group

example: seo tools

Language &hl=

The language that is used as input for the algorithm to select relevant keyword ideas (full list of the available languages)

example: English

Location &location=

The geographical location that is used as input for the algorithm to select relevant keyword ideas

example: United States

API key &key= Your private API key

Response elements

Name Description
keyword The keyword idea
competition The competition score is a numeric value from 0 – 1 bases on Google Ads data
cpc The CPC represents the average Cost Per Click price bases on Google Ads data
search_volume The average monthly search volume for the keyword idea based on the data from previous month
monthly_searches Array containing the search volume statistics per month for the last 12 months
year The specific year (numeric value)
month The specific month (numeric value)
search_volume The monthly search volume corresponding with the specific month

Tool: Keyword Research Tool

More information: discover more about this API


PHP code example

 <?php

/*
    API documentation for SEO Review Tools.
    API info: https://www.seoreviewtools.com/seo-api/
    API documentation: https://api.seoreviewtools.com/documentation/
    LinkedIn: https://www.linkedin.com/company/seo-review-tools
*/

// API key 
$apiKey 'YOUR-API-KEY';

// Keyword
$keywordInput "SEO Tool"

// Location
$location "United States"

// Language
$language "English"

// specific API url 
$apiRequestUrl 'https://api.seoreviewtools.com/google-ads-keywords/?keyword='.urlencode($keyword).'&location='.$location.'&hl='.$language.'&key='.$apiKey;

// get data from API
$jsonReposnse file_get_contents($apiRequestUrl);

// convert JSON to PHP array
$dataArray json_decode($jsonReposnsetrue);

// check if API call is success or failed
// (just some basic validation)

// API call fail
if ($dataArray['status'] !== 'ok'){

    
// return error message
    
echo 'Error message: '.$dataArray['error message'];

// API call success    
} else {

    
// print data
    
print_r($dataArray); 
}

?> 

Python code example

# API documentation for SEO Review Tools.
# API info: https://www.seoreviewtools.com/seo-api/
# API documentation: https://api.seoreviewtools.com/documentation/
# LinkedIn: https://www.linkedin.com/company/seo-review-tools

import requests

# API key
apiKey = 'YOUR API KEY'

# Keyword
keyword = "SEO Tool"

# Location
location = "United States"

# Language
language = "English"

# API request url
apiRequestUrl = 'https://api.seoreviewtools.com/google-ads-keywords/?keyword='+keyword+'&location='+location+'&hl='+language+'&key='+apiKey;

r = requests.request("GET", apiRequestUrl,)
print(r.text)

JSON response example







Trusted by →

clients