SERP / Rank checker API



Price: 5 credits per request


Description: Automatically extract Google search results with the real-time SERP API. Track the rankings for your website and your competitors.

Request parameters

Name Parameter Description
Keyword &keyword=

Extract the Google search results for your keyword in real-time. (Supporting 9 different SERP features)

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
type The search result type: organic
domain The domain corresponding with the URL displayed in search.
title The title of the specific search result
description The description of the specific search result
url The URL of the specific search result
breadcrumb The breadcrumb of the specific search result

SERP features

Name
Organic search results
Answer box
Featured snippets
Google reviews
Knowledge graph
Local pack
People also ask
Related searches
Shopping

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/rankings/?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/rankings/?keyword='+keyword+'&location='+location+'&hl='+language+'&key='+apiKey;

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

JSON response example