Website Traffic Analytics API (Organic / Paid)



Price: 4 credits per request


Description: Collect Organic and Paid traffic statistics for any website.

Query string parameters

Name Parameter Description
URL &url=

The domain you want to analyse (add the domain name without parameters, schema, path and www)

example: domain.com

Language &hl=

The language

example: English

Location &location=

The geographical location

example: United States

API key &key= Your private API key

Response elements

Name Description
organic Monthly organic traffic
paid Monthly paid traffic

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"

// input Domain
$inputDomain'searchengineland.com'

// Language
$language "English"

// specific API url 
$apiRequestUrl 'https://api.seoreviewtools.com/website-traffic-organic-paid/?url='.urlencode($inputDomain).'&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