Trending Topics API



Price: 1 credits per request


Description: Discover trending topics by country in Google search 

Query string parameters

Name Parameter Description
Country code &country_code=

The country code is used to serve you with the latest trending topics relevant to your location (full list of the available country codes)

example: US

API key &key= Your private API key

Response elements

Name Description
topic The subject
traffic estimate An estimate of the search volume for a (broad) topic in Google 
news items An overview of the news items relevant to the topic 
 → title News item title
 → source Name of the source
 → url The URL of the publication
   

Supported country codes

Country Code
United States us
Canada ca
United Kingdom uk
Netherlands nl
Belgium (FR) be
Belgium (NL) be
Austria at
Switzerland ch
Germany de
France fr
Denmark dk
Sweden se
Norway no
Ireland ie
Italy it
Spain es
Portugal pt
Greece gr
Turkey tr
Ukraine ua
Russia ru
India in
China cn
Thailand th
Australia au
New Zealand (EN) nz

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';

// Country Code
$countryCode "US"

// specific API url 
$apiRequestUrl 'https://api.seoreviewtools.com/trending-topics/?country_code='.$countryCode.'&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

import requests

# API key
api_key = "YOUR-API-KEY"

# Country Code
country_code = "US"

# Specific API URL
api_request_url = f"https://api.seoreviewtools.com/trending-topics/?country_code={country_code}&key={api_key}"

# Get data from API
response = requests.get(api_request_url)
data = response.json()

# Check if API call was successful
if data.get("status") != "ok":
    # Return error message
    print(f"Error message: {data.get('error message')}")
else:
    # Print data
    print(data)

JSON response example







Trusted by →

clients