keyword.seo.serpfeatures

Credits: 1/entry returned
Provides information about the SERP features found for a specified keyword, including counts of various types such as featured snippets, knowledge panels, and more. You can refine the results by using the COUNTRY parameter to obtain SERP features data for a specific country. To include all SERP feature types, even those not used in the display, set the show-all-types parameter to true.

Result

The result includes a list of SERP types identified for the specified keyword. Each SERP type is presented as a key-value pair, where the key represents the SERP type, and the value indicates the frequency of that type.

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-types
BOOLEAN
Determines whether to include all available SERP feature types in the results, even if they are not actively used in the display for the specified keyword. Set to true to include all feature types, otherwise only the relevant ones will be shown.
date
DATE
Defines a specific date for which the amount and types of serps will be returned.
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.serpfeatures";
$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.serpfeatures'
post = {

}
response = requests.post(baseUrl, post)
data = response.text
curl https://api.sistrix.com/keyword.seo.serpfeatures \
let baseUrl = 'https://api.sistrix.com/keyword.seo.serpfeatures';
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
})