SERP Analyzer API



Price: 12 credits per request


Description: use the SERP Analyzer API to extract SEO statistics from the top 10 results ranking for a specific keyword in Google

Query string parameters

Name Parameter Description
Keyword &keyword=

The keyword or phrase is used by the the algorithm to extract the SEO statistics.

example: backlink checker

Language &hl=

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

example: en

Location &location=

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

example: US

API key &key= Your private API key

Response elements

Main element Sub elements Description
Title tag Keyword usage Percentage
  avg Length Characters 
  Range  | – | 
Meta description Keyword usage Percentage
  avg Length Characters
  Range | – |
H1 Keyword usage Percentage
Word count avg Words
  Range | – |
Corrected word count avg Words
  Range | – |
Keyword density avg Percentage
  Range | – |
On page links avg Count
  Range | – |
Internal links avg Count
  Range | – |
External links avg Count
  Range | – |
Image count avg Count
  Range | – |
     

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 "Backlink checker"

// Location (short code)
$location "US"

// Language (short code)
$language "en"

// specific API url 
$apiRequestUrl 'https://api.seoreviewtools.com/serp-analyzer/?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