Returns the traffic and click amounts for a specified keyword. Use the COUNTRY parameter to adjust the data for a specific country. Setting the SHOW-AL-COUNTRIES parameter to true will display traffic and click data for all available countries. To view historical traffic amounts, use the SHOW-ALL parameter to access all past data.
Result
The result contains basic information about the specified keyword. You receive the keyword (kw) for which the data applies, the traffic generated by the keyword (traffic), the number of clicks (clicks), and the associated country (country).GET-Parameters
Parameters (Mandatory)
api_key
STRING
Your personal API key. This key is used to authenticate your requests. You can obtain it here.
kw
STRING
Defines the keyword to which the method is applied.
Parameters (Optional)
country
STRING / countrycode
Defines the country for which the method will be executed. You can find a list of available country codes here. If no Country parameter is provided, the default country associated with the Toolbox account will be used.
show-all
BOOLEAN
Requests the full historical traffic data for the specified keyword. When set to true, this parameter retrieves all available historical traffic amounts, providing a comprehensive view of traffic trends over time.
show-all-countries
BOOLEAN
Retrieves traffic and click data for the specified keyword across all available countries. When set to true, this parameter lists the traffic and click amounts for every country, providing a comprehensive global overview.
format
STRING
Specifies whether the response will be returned in XML or JSON format. By default, the result will be in XML format.
To be able to use the API documentation with real data, you have to create an API key in your account.
EXAMPLE
$baseUrl = "https://api.sistrix.com/keyword.seo.traffic";
$post = [
];
$curl = curl_init();
curl_setopt($curl, CURLOPT_URL, $baseUrl);
curl_setopt($curl, CURLOPT_POSTFIELDS, $post);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
$response = curl_exec($curl);
curl_close($curl);
import requests
baseUrl = 'https://api.sistrix.com/keyword.seo.traffic'
post = {
}
response = requests.post(baseUrl, post)
data = response.text
curl https://api.sistrix.com/keyword.seo.traffic \
let baseUrl = 'https://api.sistrix.com/keyword.seo.traffic';
let form = new FormData();
fetch(baseUrl, {
method: 'POST',
body: form
}).then(function(response){
return response.text();
}).then(function(data){
//data contains the results of the request
})