Keyword Difficulty API



Price: 3 credits per request


Description: use the keyword difficulty API to find out how hard it is to rank in the first 10 Google search results for a specific keyword. The keyword difficult score is measured on a 0 to 100 logarithmic scale.

Query string parameters

Name Parameter Description
Keyword &keyword=

The keyword or phrase is used by the the algorithm to calculate the keyword difficulty score.

example: seo tools

Language &hl=

The language that is used as input to analyze the relevant Google search results  (full list of the available languages)

example: English

Location &location=

The geographical location that is used as input to analyze the relevant Google search results

example: United States

API key &key= Your private API key

Response elements

Name Description
keyword Input keyword
keyword difficulty The keyword difficulty score

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/keyword-difficulty/?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); 
}

?>

JSON response example







Trusted by →

clients