ai.entity.prompts.count

Credits: 1
Returns the total number of AI-generated prompts where the specified entity appears in the response. This gives a quick overview of how many relevant prompts exist for the entity. The optional model and lang parameters allow you to filter the count for a specific AI model or language.

Result

The result contains the total count of prompts that include the specified entity. Each entry includes the number of prompts (prompt_count) and can be filtered by model and language.

GET-Parameters

Parameters (Mandatory)

api_key
STRING
Your personal API key. This key is used to authenticate your requests. You can obtain it here.
entity
STRING
In the context of AI analysis, an entity is a clearly identifiable object or concept mentioned within a text. This can include companies or brands (e.g., SISTRIX, Nike), people (e.g., Angela Merkel), places (e.g., Berlin, New York), or products and services (e.g., Toolbox, iPhone).

Parameters (Optional)

model
STRING
Defines the model for which the method will be executed. If no model is specified, results for all AI models will be returned. This can also be explicitly set by using the value all.
lang
STRING
Defines the language in which the results will be returned. The parameter follows ISO 639 (German = de). If no language is specified, the default Toolbox language will be used.
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/ai.entity.prompts.count";
$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/ai.entity.prompts.count'
post = {

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