# Fixed reference example. Playground inputs do not update this sample.
curl --request POST \
--url https://api.aisa.one/apis/v1/dataforseo/ai_optimization/llm_mentions/multi_target_metrics/live \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '[
{
"language_code": "en",
"location_code": 2840,
"platform": "google",
"targets": [
{
"key": "chat_gpt",
"target": [
{
"keyword": "chat gpt"
}
]
},
{
"key": "claude",
"target": [
{
"keyword": "claude"
}
]
},
{
"key": "gemini",
"target": [
{
"keyword": "gemini"
}
]
},
{
"key": "perplexity",
"target": [
{
"keyword": "perplexity",
"search_filter": "include"
}
]
}
],
"initial_dataset_filters": [
[
"ai_search_volume",
">",
10
]
],
"internal_list_limit": 5
}
]'curl --request POST \
--url https://api.aisa.one/apis/v1/dataforseo/ai_optimization/llm_mentions/multi_target_metrics/live \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
[
{
"initial_dataset_filters": [
[
"ai_search_volume",
">",
10
]
],
"internal_list_limit": 5,
"language_code": "en",
"location_code": 2840,
"platform": "google",
"targets": [
{
"key": "chat_gpt",
"target": [
{
"keyword": "chat gpt"
}
]
},
{
"key": "claude",
"target": [
{
"keyword": "claude"
}
]
},
{
"key": "gemini",
"target": [
{
"keyword": "gemini"
}
]
},
{
"key": "perplexity",
"target": [
{
"keyword": "perplexity",
"search_filter": "include"
}
]
}
]
}
]
'import requests
url = "https://api.aisa.one/apis/v1/dataforseo/ai_optimization/llm_mentions/multi_target_metrics/live"
payload = [
{
"initial_dataset_filters": [["ai_search_volume", ">", 10]],
"internal_list_limit": 5,
"language_code": "en",
"location_code": 2840,
"platform": "google",
"targets": [
{
"key": "chat_gpt",
"target": [{ "keyword": "chat gpt" }]
},
{
"key": "claude",
"target": [{ "keyword": "claude" }]
},
{
"key": "gemini",
"target": [{ "keyword": "gemini" }]
},
{
"key": "perplexity",
"target": [
{
"keyword": "perplexity",
"search_filter": "include"
}
]
}
]
}
]
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify([
{
initial_dataset_filters: [['ai_search_volume', '>', 10]],
internal_list_limit: 5,
language_code: 'en',
location_code: 2840,
platform: 'google',
targets: [
{key: 'chat_gpt', target: [{keyword: 'chat gpt'}]},
{key: 'claude', target: [{keyword: 'claude'}]},
{key: 'gemini', target: [{keyword: 'gemini'}]},
{key: 'perplexity', target: [{keyword: 'perplexity', search_filter: 'include'}]}
]
}
])
};
fetch('https://api.aisa.one/apis/v1/dataforseo/ai_optimization/llm_mentions/multi_target_metrics/live', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.aisa.one/apis/v1/dataforseo/ai_optimization/llm_mentions/multi_target_metrics/live",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
[
'initial_dataset_filters' => [
[
'ai_search_volume',
'>',
10
]
],
'internal_list_limit' => 5,
'language_code' => 'en',
'location_code' => 2840,
'platform' => 'google',
'targets' => [
[
'key' => 'chat_gpt',
'target' => [
[
'keyword' => 'chat gpt'
]
]
],
[
'key' => 'claude',
'target' => [
[
'keyword' => 'claude'
]
]
],
[
'key' => 'gemini',
'target' => [
[
'keyword' => 'gemini'
]
]
],
[
'key' => 'perplexity',
'target' => [
[
'keyword' => 'perplexity',
'search_filter' => 'include'
]
]
]
]
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.aisa.one/apis/v1/dataforseo/ai_optimization/llm_mentions/multi_target_metrics/live"
payload := strings.NewReader("[\n {\n \"initial_dataset_filters\": [\n [\n \"ai_search_volume\",\n \">\",\n 10\n ]\n ],\n \"internal_list_limit\": 5,\n \"language_code\": \"en\",\n \"location_code\": 2840,\n \"platform\": \"google\",\n \"targets\": [\n {\n \"key\": \"chat_gpt\",\n \"target\": [\n {\n \"keyword\": \"chat gpt\"\n }\n ]\n },\n {\n \"key\": \"claude\",\n \"target\": [\n {\n \"keyword\": \"claude\"\n }\n ]\n },\n {\n \"key\": \"gemini\",\n \"target\": [\n {\n \"keyword\": \"gemini\"\n }\n ]\n },\n {\n \"key\": \"perplexity\",\n \"target\": [\n {\n \"keyword\": \"perplexity\",\n \"search_filter\": \"include\"\n }\n ]\n }\n ]\n }\n]")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.aisa.one/apis/v1/dataforseo/ai_optimization/llm_mentions/multi_target_metrics/live")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("[\n {\n \"initial_dataset_filters\": [\n [\n \"ai_search_volume\",\n \">\",\n 10\n ]\n ],\n \"internal_list_limit\": 5,\n \"language_code\": \"en\",\n \"location_code\": 2840,\n \"platform\": \"google\",\n \"targets\": [\n {\n \"key\": \"chat_gpt\",\n \"target\": [\n {\n \"keyword\": \"chat gpt\"\n }\n ]\n },\n {\n \"key\": \"claude\",\n \"target\": [\n {\n \"keyword\": \"claude\"\n }\n ]\n },\n {\n \"key\": \"gemini\",\n \"target\": [\n {\n \"keyword\": \"gemini\"\n }\n ]\n },\n {\n \"key\": \"perplexity\",\n \"target\": [\n {\n \"keyword\": \"perplexity\",\n \"search_filter\": \"include\"\n }\n ]\n }\n ]\n }\n]")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/dataforseo/ai_optimization/llm_mentions/multi_target_metrics/live")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "[\n {\n \"initial_dataset_filters\": [\n [\n \"ai_search_volume\",\n \">\",\n 10\n ]\n ],\n \"internal_list_limit\": 5,\n \"language_code\": \"en\",\n \"location_code\": 2840,\n \"platform\": \"google\",\n \"targets\": [\n {\n \"key\": \"chat_gpt\",\n \"target\": [\n {\n \"keyword\": \"chat gpt\"\n }\n ]\n },\n {\n \"key\": \"claude\",\n \"target\": [\n {\n \"keyword\": \"claude\"\n }\n ]\n },\n {\n \"key\": \"gemini\",\n \"target\": [\n {\n \"keyword\": \"gemini\"\n }\n ]\n },\n {\n \"key\": \"perplexity\",\n \"target\": [\n {\n \"keyword\": \"perplexity\",\n \"search_filter\": \"include\"\n }\n ]\n }\n ]\n }\n]"
response = http.request(request)
puts response.read_body{
"cost": 123,
"status_code": 123,
"status_message": "<string>",
"tasks_count": 123,
"tasks_error": 123,
"time": "<string>",
"version": "<string>",
"tasks": [
{
"cost": 123,
"data": {},
"id": "<string>",
"path": [
"<string>"
],
"result_count": 123,
"status_code": 123,
"status_message": "<string>",
"time": "<string>",
"result": [
{
"aggregated_metrics": {
"brand_entities_category": [
{
"ai_search_volume": 123,
"key": "<string>",
"mentions": 123
}
],
"brand_entities_title": [
{
"ai_search_volume": 123,
"key": "<string>",
"mentions": 123
}
],
"language": [
{
"ai_search_volume": 123,
"key": "<string>",
"mentions": 123
}
],
"location": [
{
"ai_search_volume": 123,
"key": "<string>",
"mentions": 123
}
],
"platform": [
{
"ai_search_volume": 123,
"key": "<string>",
"mentions": 123
}
],
"search_results_domain": [
{
"ai_search_volume": 123,
"key": "<string>",
"mentions": 123
}
],
"sources_domain": [
{
"ai_search_volume": 123,
"key": "<string>",
"mentions": 123
}
],
"total": {
"ai_search_volume": 123,
"mentions": 123
}
},
"items": [
{
"brand_entities_category": [
{
"ai_search_volume": 123,
"key": "<string>",
"mentions": 123
}
],
"brand_entities_title": [
{
"ai_search_volume": 123,
"key": "<string>",
"mentions": 123
}
],
"key": "<string>",
"language": [
{
"ai_search_volume": 123,
"key": "<string>",
"mentions": 123
}
],
"location": [
{
"ai_search_volume": 123,
"key": "<string>",
"mentions": 123
}
],
"platform": [
{
"ai_search_volume": 123,
"key": "<string>",
"mentions": 123
}
],
"search_results_domain": [
{
"ai_search_volume": 123,
"key": "<string>",
"mentions": 123
}
],
"sources_domain": [
{
"ai_search_volume": 123,
"key": "<string>",
"mentions": 123
}
],
"total": {
"ai_search_volume": 123,
"mentions": 123
}
}
],
"items_count": 123,
"offset": 123,
"total_count": 123
}
]
}
]
}Live Ai Optimization Llm Mentions Multi Target Metrics
Live LLM Mentions Multi-Target Metrics endpoint provides aggregated metrics grouped by custom keys for mentions of the keywords or domains specified in the target array of the request. Each item in the results array corresponds to the specified target. The results are specific to the selected platform (google for Google’s AI Overview or chat_gpt for ChatGPT), location and language parameters (see the List of Locations & Languages).
DataForSEO POST /v3/ai_optimization/llm_mentions/multi_target_metrics/live
# Fixed reference example. Playground inputs do not update this sample.
curl --request POST \
--url https://api.aisa.one/apis/v1/dataforseo/ai_optimization/llm_mentions/multi_target_metrics/live \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '[
{
"language_code": "en",
"location_code": 2840,
"platform": "google",
"targets": [
{
"key": "chat_gpt",
"target": [
{
"keyword": "chat gpt"
}
]
},
{
"key": "claude",
"target": [
{
"keyword": "claude"
}
]
},
{
"key": "gemini",
"target": [
{
"keyword": "gemini"
}
]
},
{
"key": "perplexity",
"target": [
{
"keyword": "perplexity",
"search_filter": "include"
}
]
}
],
"initial_dataset_filters": [
[
"ai_search_volume",
">",
10
]
],
"internal_list_limit": 5
}
]'curl --request POST \
--url https://api.aisa.one/apis/v1/dataforseo/ai_optimization/llm_mentions/multi_target_metrics/live \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
[
{
"initial_dataset_filters": [
[
"ai_search_volume",
">",
10
]
],
"internal_list_limit": 5,
"language_code": "en",
"location_code": 2840,
"platform": "google",
"targets": [
{
"key": "chat_gpt",
"target": [
{
"keyword": "chat gpt"
}
]
},
{
"key": "claude",
"target": [
{
"keyword": "claude"
}
]
},
{
"key": "gemini",
"target": [
{
"keyword": "gemini"
}
]
},
{
"key": "perplexity",
"target": [
{
"keyword": "perplexity",
"search_filter": "include"
}
]
}
]
}
]
'import requests
url = "https://api.aisa.one/apis/v1/dataforseo/ai_optimization/llm_mentions/multi_target_metrics/live"
payload = [
{
"initial_dataset_filters": [["ai_search_volume", ">", 10]],
"internal_list_limit": 5,
"language_code": "en",
"location_code": 2840,
"platform": "google",
"targets": [
{
"key": "chat_gpt",
"target": [{ "keyword": "chat gpt" }]
},
{
"key": "claude",
"target": [{ "keyword": "claude" }]
},
{
"key": "gemini",
"target": [{ "keyword": "gemini" }]
},
{
"key": "perplexity",
"target": [
{
"keyword": "perplexity",
"search_filter": "include"
}
]
}
]
}
]
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify([
{
initial_dataset_filters: [['ai_search_volume', '>', 10]],
internal_list_limit: 5,
language_code: 'en',
location_code: 2840,
platform: 'google',
targets: [
{key: 'chat_gpt', target: [{keyword: 'chat gpt'}]},
{key: 'claude', target: [{keyword: 'claude'}]},
{key: 'gemini', target: [{keyword: 'gemini'}]},
{key: 'perplexity', target: [{keyword: 'perplexity', search_filter: 'include'}]}
]
}
])
};
fetch('https://api.aisa.one/apis/v1/dataforseo/ai_optimization/llm_mentions/multi_target_metrics/live', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.aisa.one/apis/v1/dataforseo/ai_optimization/llm_mentions/multi_target_metrics/live",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
[
'initial_dataset_filters' => [
[
'ai_search_volume',
'>',
10
]
],
'internal_list_limit' => 5,
'language_code' => 'en',
'location_code' => 2840,
'platform' => 'google',
'targets' => [
[
'key' => 'chat_gpt',
'target' => [
[
'keyword' => 'chat gpt'
]
]
],
[
'key' => 'claude',
'target' => [
[
'keyword' => 'claude'
]
]
],
[
'key' => 'gemini',
'target' => [
[
'keyword' => 'gemini'
]
]
],
[
'key' => 'perplexity',
'target' => [
[
'keyword' => 'perplexity',
'search_filter' => 'include'
]
]
]
]
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.aisa.one/apis/v1/dataforseo/ai_optimization/llm_mentions/multi_target_metrics/live"
payload := strings.NewReader("[\n {\n \"initial_dataset_filters\": [\n [\n \"ai_search_volume\",\n \">\",\n 10\n ]\n ],\n \"internal_list_limit\": 5,\n \"language_code\": \"en\",\n \"location_code\": 2840,\n \"platform\": \"google\",\n \"targets\": [\n {\n \"key\": \"chat_gpt\",\n \"target\": [\n {\n \"keyword\": \"chat gpt\"\n }\n ]\n },\n {\n \"key\": \"claude\",\n \"target\": [\n {\n \"keyword\": \"claude\"\n }\n ]\n },\n {\n \"key\": \"gemini\",\n \"target\": [\n {\n \"keyword\": \"gemini\"\n }\n ]\n },\n {\n \"key\": \"perplexity\",\n \"target\": [\n {\n \"keyword\": \"perplexity\",\n \"search_filter\": \"include\"\n }\n ]\n }\n ]\n }\n]")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.aisa.one/apis/v1/dataforseo/ai_optimization/llm_mentions/multi_target_metrics/live")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("[\n {\n \"initial_dataset_filters\": [\n [\n \"ai_search_volume\",\n \">\",\n 10\n ]\n ],\n \"internal_list_limit\": 5,\n \"language_code\": \"en\",\n \"location_code\": 2840,\n \"platform\": \"google\",\n \"targets\": [\n {\n \"key\": \"chat_gpt\",\n \"target\": [\n {\n \"keyword\": \"chat gpt\"\n }\n ]\n },\n {\n \"key\": \"claude\",\n \"target\": [\n {\n \"keyword\": \"claude\"\n }\n ]\n },\n {\n \"key\": \"gemini\",\n \"target\": [\n {\n \"keyword\": \"gemini\"\n }\n ]\n },\n {\n \"key\": \"perplexity\",\n \"target\": [\n {\n \"keyword\": \"perplexity\",\n \"search_filter\": \"include\"\n }\n ]\n }\n ]\n }\n]")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/dataforseo/ai_optimization/llm_mentions/multi_target_metrics/live")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "[\n {\n \"initial_dataset_filters\": [\n [\n \"ai_search_volume\",\n \">\",\n 10\n ]\n ],\n \"internal_list_limit\": 5,\n \"language_code\": \"en\",\n \"location_code\": 2840,\n \"platform\": \"google\",\n \"targets\": [\n {\n \"key\": \"chat_gpt\",\n \"target\": [\n {\n \"keyword\": \"chat gpt\"\n }\n ]\n },\n {\n \"key\": \"claude\",\n \"target\": [\n {\n \"keyword\": \"claude\"\n }\n ]\n },\n {\n \"key\": \"gemini\",\n \"target\": [\n {\n \"keyword\": \"gemini\"\n }\n ]\n },\n {\n \"key\": \"perplexity\",\n \"target\": [\n {\n \"keyword\": \"perplexity\",\n \"search_filter\": \"include\"\n }\n ]\n }\n ]\n }\n]"
response = http.request(request)
puts response.read_body{
"cost": 123,
"status_code": 123,
"status_message": "<string>",
"tasks_count": 123,
"tasks_error": 123,
"time": "<string>",
"version": "<string>",
"tasks": [
{
"cost": 123,
"data": {},
"id": "<string>",
"path": [
"<string>"
],
"result_count": 123,
"status_code": 123,
"status_message": "<string>",
"time": "<string>",
"result": [
{
"aggregated_metrics": {
"brand_entities_category": [
{
"ai_search_volume": 123,
"key": "<string>",
"mentions": 123
}
],
"brand_entities_title": [
{
"ai_search_volume": 123,
"key": "<string>",
"mentions": 123
}
],
"language": [
{
"ai_search_volume": 123,
"key": "<string>",
"mentions": 123
}
],
"location": [
{
"ai_search_volume": 123,
"key": "<string>",
"mentions": 123
}
],
"platform": [
{
"ai_search_volume": 123,
"key": "<string>",
"mentions": 123
}
],
"search_results_domain": [
{
"ai_search_volume": 123,
"key": "<string>",
"mentions": 123
}
],
"sources_domain": [
{
"ai_search_volume": 123,
"key": "<string>",
"mentions": 123
}
],
"total": {
"ai_search_volume": 123,
"mentions": 123
}
},
"items": [
{
"brand_entities_category": [
{
"ai_search_volume": 123,
"key": "<string>",
"mentions": 123
}
],
"brand_entities_title": [
{
"ai_search_volume": 123,
"key": "<string>",
"mentions": 123
}
],
"key": "<string>",
"language": [
{
"ai_search_volume": 123,
"key": "<string>",
"mentions": 123
}
],
"location": [
{
"ai_search_volume": 123,
"key": "<string>",
"mentions": 123
}
],
"platform": [
{
"ai_search_volume": 123,
"key": "<string>",
"mentions": 123
}
],
"search_results_domain": [
{
"ai_search_volume": 123,
"key": "<string>",
"mentions": 123
}
],
"sources_domain": [
{
"ai_search_volume": 123,
"key": "<string>",
"mentions": 123
}
],
"total": {
"ai_search_volume": 123,
"mentions": 123
}
}
],
"items_count": 123,
"offset": 123,
"total_count": 123
}
]
}
]
}Request contract
- Method and path: POST /apis/v1/dataforseo/ai_optimization/llm_mentions/multi_target_metrics/live
- Availability: enabled
- Request URL template:
https://api.aisa.one/apis/v1/dataforseo/ai_optimization/llm_mentions/multi_target_metrics/live
{
"operationId": "any_dataforseo_apis_v1_dataforseo_ai_optimization_5d5a92",
"method": "POST",
"path": "/apis/v1/dataforseo/ai_optimization/llm_mentions/multi_target_metrics/live",
"servers": [
{
"url": "https://api.aisa.one"
}
],
"parameters": [],
"security": [
{
"bearerAuth": []
}
],
"requestBody": {
"content": {
"application/json": {
"schema": {
"example": [
{
"initial_dataset_filters": [
[
"ai_search_volume",
">",
10
]
],
"internal_list_limit": 5,
"language_code": "en",
"location_code": 2840,
"platform": "google",
"targets": [
{
"key": "chat_gpt",
"target": [
{
"keyword": "chat gpt"
}
]
},
{
"key": "claude",
"target": [
{
"keyword": "claude"
}
]
},
{
"key": "gemini",
"target": [
{
"keyword": "gemini"
}
]
},
{
"key": "perplexity",
"target": [
{
"keyword": "perplexity",
"search_filter": "include"
}
]
}
]
}
],
"items": {
"oneOf": [
{
"properties": {
"filters": {
"description": "<em>array of results filtering parameters</em><br>optional field<br><strong>you can add several filters at once (8 filters maximum)</strong><br>you should set a logical operator <code>and</code>, <code>or</code> between the conditions<br>the following operators are supported:<br><code>=</code>, <code><></code>, <code>in</code>, <code>not_in</code>, <code>like</code>, <code>not_like</code>, <code>ilike</code>, <code>not_ilike</code>, <code>match</code>, <code>not_match</code><br>you can use the <code>%</code> operator with <code>like</code> and <code>not_like</code> to match any string of zero or more characters<br>example:<br><code>[\"ai_search_volume\",\">\",1000]</code><p>The full list of possible filters is available <a href=\"/v3/ai_optimization/llm_mentions/filters/\" rel=\"noopener noreferrer\" target=\"_blank\">here.</a>",
"items": {
"anyOf": [
{
"type": "string"
},
{
"type": "number"
},
{
"type": "boolean"
},
{
"additionalProperties": {
"$ref": "#/components/schemas/ProviderF3207D84Cc07_AisaDataforseoFilterJsonValue"
},
"type": [
"object",
"null"
]
},
{
"items": {
"$ref": "#/components/schemas/ProviderF3207D84Cc07_AisaDataforseoFilterJsonValue"
},
"type": "array"
}
],
"description": "JSON representation of filter values and nested expressions. Field names, operators, condition counts and operand compatibility remain provider-validated as documented for each endpoint; this is not a complete filter-language validator."
},
"type": [
"array",
"null"
]
},
"initial_dataset_filters": {
"description": "<em>array of filter expressions applied before aggregation</em><br>optional field<br>you can use this array to filter expressions applied to the raw mentions database before aggregation to limit the rows contributing to the result;<p><strong>you can add several filters at once (8 filters maximum)</strong><br>you should set a logical operator <code>and</code>, <code>or</code> between the conditions<br>the following operators are supported:<br><code>=</code>, <code><></code>, <code>in</code>, <code>not_in</code>, <code>like</code>, <code>not_like</code>, <code>ilike</code>, <code>not_ilike</code>, <code>match</code>, <code>not_match</code><br>you can use the <code>%</code> operator with <code>like</code> and <code>not_like</code> to match any string of zero or more characters<br>example:<br><code>[\"ai_search_volume\",\">\",1000]</code><p>the full list of possible filters is available <a href=\"/v3/ai_optimization/llm_mentions/filters\" rel=\"noopener noreferrer\" target=\"_blank\">here.</a><br>learn more about the initial dataset filters in <a href=\"https://dataforseo.com/help-center/what-are-the-initial-dataset-filters-and-how-do-they-work\" rel=\"noopener noreferrer\" target=\"_blank\">this help center article.</a>",
"items": {
"anyOf": [
{
"type": "string"
},
{
"type": "number"
},
{
"type": "boolean"
},
{
"additionalProperties": {
"$ref": "#/components/schemas/ProviderF3207D84Cc07_AisaDataforseoFilterJsonValue"
},
"type": [
"object",
"null"
]
},
{
"items": {
"$ref": "#/components/schemas/ProviderF3207D84Cc07_AisaDataforseoFilterJsonValue"
},
"type": "array"
}
],
"description": "JSON representation of filter values and nested expressions. Field names, operators, condition counts and operand compatibility remain provider-validated as documented for each endpoint; this is not a complete filter-language validator."
},
"type": [
"array",
"null"
]
},
"internal_list_limit": {
"description": "<em>maximum number of elements within internal arrays</em><br>optional field<br>you can use this field to limit the number of elements within the following arrays:<br><code>sources_domain</code><br><code>search_results_domain</code><br>minimum value: <code>1</code><br>maximum value: <code>10</code><br>default value: <code>5</code>",
"type": [
"integer",
"null"
]
},
"language_code": {
"description": "<em>search language code</em><br>optional field<br>if you use this field, you don't need to specify <code>language_name</code>;<br>you can receive the list of available languages of the search engine with their <code>language_code</code> by making a separate request to the <code>https://api.dataforseo.com/v3/ai_optimization/llm_mentions/locations_and_languages</code><br>default value: <code class=\"long-string\">en</code><br><strong>Note: <code>chat_gpt</code> data is available for <code class=\"long-string\">en</code> only",
"type": [
"string",
"null"
]
},
"language_name": {
"description": "<em>full name of search language</em><br>optional field<br>if you use this field, you don't need to specify <code>language_code</code>;<br>if you don't specify this field, the <code>language_code</code> with <code class=\"long-string\">en</code> value will be used by default;<br>you can receive the list of available languages of the search engine with their <code>language_name</code> by making a separate request to the <code>https://api.dataforseo.com/v3/ai_optimization/llm_mentions/locations_and_languages</code><br><strong>Note: <code>chat_gpt</code> data is available for <code class=\"long-string\">English</code> only",
"type": [
"string",
"null"
]
},
"limit": {
"description": "<em>the maximum number of returned objects</em><br>optional field<p>default value: <code>100</code><br>maximum value: <code>1000</code>",
"type": [
"integer",
"null"
]
},
"location_code": {
"description": "<em>search location code</em><br>optional field<br>if you use this field, you don't need to specify <code>location_name</code><br>you can receive the list of available locations of the search engine with their <code>location_code</code> by making a separate request to the <code>https://api.dataforseo.com/v3/ai_optimization/llm_mentions/locations_and_languages</code><br>default value: <code class=\"long-string\">2840</code><br><strong>Note: <code>chat_gpt</code> data is available for <code class=\"long-string\">2840</code> only",
"type": [
"integer",
"null"
]
},
"location_name": {
"description": "<em>full name of search location</em><br>optional field<br>if you use this field, you don't need to specify <code>location_code</code><br>if you don't specify this field, the <code>location_code</code> with <code class=\"long-string\">2840</code> value will be used by default;<br>you can receive the list of available locations of the search engine with their <code>location_name</code> by making a separate request to the <code>https://api.dataforseo.com/v3/ai_optimization/llm_mentions/locations_and_languages</code><br><strong>Note: <code>chat_gpt</code> data is available for <code class=\"long-string\">United States</code> only",
"type": [
"string",
"null"
]
},
"offset": {
"description": "<em>offset in the results array of the returned mentions data</em><br>optional field<p>default value: <code>0</code><br>example: if you specify the <code>10</code> value, the first ten mentions objects in the results array will be omitted and the data will be provided for the successive objects;<br><strong>Note:</strong> the maximum value is <code>1000000</code>, use the <code>search_after_token</code> if you would like to offset more results",
"type": [
"integer",
"null"
]
},
"order_by": {
"description": "<em>results sorting rules</em><br>optional field<br>you can use the same values as in the <code>filters</code> array to sort the results<br>possible sorting types:<br><code>asc</code> - results will be sorted in the ascending order<br><code>desc</code> - results will be sorted in the descending order<br>you should use a comma to set up a sorting type<br>example:<br><code>[\"ai_search_volume,desc\"]</code><br><strong>Note:</strong> you can set no more than three sorting rules in a single request<br>you should use a comma to separate several sorting rules",
"items": {
"type": "string"
},
"type": [
"array",
"null"
]
},
"platform": {
"description": "<em>target platform</em><br>optional field<br>possible values:<br><code>chat_gpt</code>, <code>google</code><br>default value: <code class=\"long-string\">google</code><br><strong>Note:</strong> if the <code>platform</code> is not specified, the data is returned for both platforms<br><strong>Note #2:</strong><code>chat_gpt</code> data is available for the <code>United States</code> and <code>English</code> only",
"type": [
"string",
"null"
]
},
"tag": {
"description": "<em>user-defined task identifier</em><br>optional field<br><em>the character limit is 255</em><br>you can use this parameter to identify the task and match it with the result<br>you will find the specified <code>tag</code> value in the <code>data</code> object of the response",
"type": [
"string",
"null"
]
},
"targets": {
"items": {
"oneOf": [
{
"properties": {
"key": {
"description": "key for grouping the results\nrequired field\ngroups results for comparison and serves as a label for the group;\nyou can specify up to 250 characters in the key field",
"type": [
"string",
"null"
]
},
"target": {
"items": {
"oneOf": [
{
"discriminator": {
"mapping": {
"domain": "#/components/schemas/ProviderF3207D84Cc07_AiOptimizationLLmMentionsDomainElement",
"keyword": "#/components/schemas/ProviderF3207D84Cc07_AiOptimizationLLmMentionsKeywordElement"
},
"propertyName": "type"
},
"properties": {
"search_filter": {
"description": "target domain search filter\noptional field\npossible values:\ninclude, exclude\ndefault value: include",
"type": [
"string",
"null"
]
},
"search_scope": {
"description": "target domain search scope\noptional field\npossible values:\nany, sources, search_results\ndefault value: any",
"items": {
"type": [
"string",
"null"
]
},
"type": [
"array",
"null"
]
}
},
"type": "object"
}
],
"type": [
"object",
"null"
]
},
"type": [
"array",
"null"
]
}
},
"type": "object"
}
],
"type": [
"object",
"null"
]
},
"type": [
"array",
"null"
]
}
},
"type": "object"
}
],
"type": [
"object",
"null"
]
},
"type": "array"
}
}
}
},
"x-aisa-status": "enabled",
"components": {
"schemas": {
"ProviderF3207D84Cc07_AisaDataforseoFilterJsonValue": {
"anyOf": [
{
"type": "string"
},
{
"type": "number"
},
{
"type": "boolean"
},
{
"additionalProperties": {
"$ref": "#/components/schemas/ProviderF3207D84Cc07_AisaDataforseoFilterJsonValue"
},
"type": [
"object",
"null"
]
},
{
"items": {
"$ref": "#/components/schemas/ProviderF3207D84Cc07_AisaDataforseoFilterJsonValue"
},
"type": "array"
}
],
"description": "JSON representation of filter values and nested expressions. Field names, operators, condition counts and operand compatibility remain provider-validated as documented for each endpoint; this is not a complete filter-language validator."
},
"ProviderF3207D84Cc07_AiOptimizationLLmMentionsDomainElement": {
"allOf": [
{
"oneOf": [
{
"$ref": "#/components/schemas/ProviderF3207D84Cc07_BaseAiOptimizationLLmMentionsTargetElement"
}
],
"type": [
"object",
"null"
]
},
{
"properties": {
"domain": {
"description": "target domain\nrequired field if you don’t specify keyword\na domain should be specified without https:// and www.",
"type": [
"string",
"null"
]
},
"include_subdomains": {
"description": "indicates if the subdomains of the target domain will be included in the search\noptional field\nif set to true, the subdomains will be included in the search\ndefault value: false",
"type": [
"boolean",
"null"
]
}
},
"type": "object"
}
]
},
"ProviderF3207D84Cc07_BaseAiOptimizationLLmMentionsTargetElement": {
"discriminator": {
"mapping": {
"domain": "#/components/schemas/ProviderF3207D84Cc07_AiOptimizationLLmMentionsDomainElement",
"keyword": "#/components/schemas/ProviderF3207D84Cc07_AiOptimizationLLmMentionsKeywordElement"
},
"propertyName": "type"
},
"properties": {
"search_filter": {
"description": "target domain search filter\noptional field\npossible values:\ninclude, exclude\ndefault value: include",
"type": [
"string",
"null"
]
},
"search_scope": {
"description": "target domain search scope\noptional field\npossible values:\nany, sources, search_results\ndefault value: any",
"items": {
"type": [
"string",
"null"
]
},
"type": [
"array",
"null"
]
}
},
"type": "object"
},
"ProviderF3207D84Cc07_AiOptimizationLLmMentionsKeywordElement": {
"allOf": [
{
"oneOf": [
{
"$ref": "#/components/schemas/ProviderF3207D84Cc07_BaseAiOptimizationLLmMentionsTargetElement"
}
],
"type": [
"object",
"null"
]
},
{
"properties": {
"keyword": {
"description": "target keyword\nrequired field if you don’t specify domain\nyou can specify up to 2000 characters in the keyword field\nall %## will be decoded (plus character ‘+’ will be decoded to a space character)\nif you need to use the “%” character for your keyword, please specify it as “%25”;\nif you need to use the “+” character for your keyword, please specify it as “%2B”\nlearn more about rules and limitations of keyword and keywords fields in",
"type": [
"string",
"null"
]
},
"match_type": {
"description": "target keyword match type\ndefines how the specified keyword is matched\noptional field\npossible values:\nword_match – full-text search for terms that match the specified seed keyword with additional words included before, after, or within the key phrase (e.g., search for “light” will return results with “light bulb”, “light switch”);\npartial_match – substring search that finds all instances containing the specified sequence of characters, even if it appears inside a longer word (e.g., search for “light” will return results with “lighting”, “highlight”);\ndefault value: word_match",
"type": [
"string",
"null"
]
}
},
"type": "object"
}
]
}
},
"securitySchemes": {
"bearerAuth": {
"scheme": "bearer",
"type": "http"
}
}
}
}
Cost and request rules
Usage-based pricing. Default request estimate: $0.101 USD. The final charge depends on actual usage. Your account price may differ; use a request quote where supported.Authorizations
Body
array of results filtering parameters
optional field
you can add several filters at once (8 filters maximum)
you should set a logical operator and, or between the conditions
the following operators are supported:=, <>, in, not_in, like, not_like, ilike, not_ilike, match, not_match
you can use the % operator with like and not_like to match any string of zero or more characters
example:["ai_search_volume",">",1000]
The full list of possible filters is available here.
- string
- number
- boolean
- object
- any[]
JSON representation of filter values and nested expressions. Field names, operators, condition counts and operand compatibility remain provider-validated as documented for each endpoint; this is not a complete filter-language validator.
array of filter expressions applied before aggregation
optional field
you can use this array to filter expressions applied to the raw mentions database before aggregation to limit the rows contributing to the result;
you can add several filters at once (8 filters maximum)
you should set a logical operator and, or between the conditions
the following operators are supported:=, <>, in, not_in, like, not_like, ilike, not_ilike, match, not_match
you can use the % operator with like and not_like to match any string of zero or more characters
example:["ai_search_volume",">",1000]
the full list of possible filters is available here.
learn more about the initial dataset filters in this help center article.
- string
- number
- boolean
- object
- any[]
JSON representation of filter values and nested expressions. Field names, operators, condition counts and operand compatibility remain provider-validated as documented for each endpoint; this is not a complete filter-language validator.
search language code
optional field
if you use this field, you don't need to specify language_name;
you can receive the list of available languages of the search engine with their language_code by making a separate request to the https://api.dataforseo.com/v3/ai_optimization/llm_mentions/locations_and_languages
default value: en
Note: chat_gpt data is available for en only
full name of search language
optional field
if you use this field, you don't need to specify language_code;
if you don't specify this field, the language_code with en value will be used by default;
you can receive the list of available languages of the search engine with their language_name by making a separate request to the https://api.dataforseo.com/v3/ai_optimization/llm_mentions/locations_and_languages
Note: chat_gpt data is available for English only
search location code
optional field
if you use this field, you don't need to specify location_name
you can receive the list of available locations of the search engine with their location_code by making a separate request to the https://api.dataforseo.com/v3/ai_optimization/llm_mentions/locations_and_languages
default value: 2840
Note: chat_gpt data is available for 2840 only
full name of search location
optional field
if you use this field, you don't need to specify location_code
if you don't specify this field, the location_code with 2840 value will be used by default;
you can receive the list of available locations of the search engine with their location_name by making a separate request to the https://api.dataforseo.com/v3/ai_optimization/llm_mentions/locations_and_languages
Note: chat_gpt data is available for United States only
offset in the results array of the returned mentions data
optional field
default value: 0
example: if you specify the 10 value, the first ten mentions objects in the results array will be omitted and the data will be provided for the successive objects;
Note: the maximum value is 1000000, use the search_after_token if you would like to offset more results
results sorting rules
optional field
you can use the same values as in the filters array to sort the results
possible sorting types:asc - results will be sorted in the ascending orderdesc - results will be sorted in the descending order
you should use a comma to set up a sorting type
example:["ai_search_volume,desc"]
Note: you can set no more than three sorting rules in a single request
you should use a comma to separate several sorting rules
[
{
"initial_dataset_filters": [["ai_search_volume", ">", 10]],
"internal_list_limit": 5,
"language_code": "en",
"location_code": 2840,
"platform": "google",
"targets": [
{
"key": "chat_gpt",
"target": [{ "keyword": "chat gpt" }]
},
{
"key": "claude",
"target": [{ "keyword": "claude" }]
},
{
"key": "gemini",
"target": [{ "keyword": "gemini" }]
},
{
"key": "perplexity",
"target": [
{
"keyword": "perplexity",
"search_filter": "include"
}
]
}
]
}
]
Response
Successful operation