targetsarray
Array of 2 to 10 objects, each with a `key` label and a `target` array of domain or keyword entities.
https://api.sandbase.ai/v1/api/dataforseo/v3/ai_optimization/llm_mentions/multi_target_metrics/liveMention metrics for 2 to 10 domains or keywords side by side, for share-of-voice comparisons in AI answers.
Votre sortie apparaîtra ici
Complétez les entrées, puis cliquez sur Exécuter.
Returns LLM mention counts and AI search volume for 2 to 10 targets in one call. Each target is a labeled group of domains or keywords, and the response gives totals plus a per-target breakdown by platform, language, location, source domain and brand entity.
mentions and ai_search_volume values.curl -X POST "https://api.sandbase.ai/v1/api/dataforseo/v3/ai_optimization/llm_mentions/multi_target_metrics/live" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"targets": [{"key": "nike", "target": [{"domain": "nike.com"}]}, {"key": "adidas", "target": [{"domain": "adidas.com"}]}], "location_code": 2840, "language_code": "en"}'
The result is returned in outputs[0].
| Name | Type | Required | Description |
|---|---|---|---|
language_code | string | No | Language code; default "en". |
location_code | integer | No | Location code; default 2840 (United States). |
platform | string | No | Optional: "google" (AI Overviews) or "chat_gpt". Omit for both. |
targets | array | No | Array of 2 to 10 objects, each with a key label and a target array of domain or keyword entities. |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"status_code": 20000,
"status_message": "Ok.",
"tasks": [
{
"data": {
"api": "ai_optimization",
"function": "multi_target_metrics",
"language_code": "en",
"location_code": 2840,
"targets": [
{
"key": "nike",
"target": [
{
"domain": "nike.com"
}
]
}
]
},
"id": "11030828-2190-0652-0000-69973a20683e",
"path": [
"v3"
],
"result": [
{
"aggregated_metrics": {
"brand_entities_category": [
{
"ai_search_volume": 135562,
"key": "product",
"mentions": 5788
}
],
"brand_entities_title": [
{
"ai_search_volume": 8580,
"key": "Nike",
"mentions": 935
}
],
"language": [
{
"ai_search_volume": 137745073,
"key": "en",
"mentions": 216373
}
],
"location": [
{
"ai_search_volume": 137745073,
"key": 2840,
"mentions": 216373
}
],
"platform": [
{
"ai_search_volume": 136695320,
"key": "google",
"mentions": 185713
}
],
"search_results_domain": [
{
"ai_search_volume": 701873,
"key": "www.nike.com",
"mentions": 18950
}
],
"sources_domain": [
{
"ai_search_volume": 101825425,
"key": "www.nike.com",
"mentions": 148275
}
],
"total": {
"ai_search_volume": 137745073,
"mentions": 216373
}
},
"items": [
{
"brand_entities_category": [
{
"ai_search_volume": 112090,
"key": "product",
"mentions": 4795
}
],
"brand_entities_title": [
{
"ai_search_volume": 8292,
"key": "Nike",
"mentions": 905
}
],
"key": "nike",
"language": [
{
"ai_search_volume": 102075470,
"key": "en",
"mentions": 156932
}
],
"location": [
{
"ai_search_volume": 102075470,
"key": 2840,
"mentions": 156932
}
],
"platform": [
{
"ai_search_volume": 101220080,
"key": "google",
"mentions": 132043
}
],
"search_results_domain": [
{
"ai_search_volume": 701873,
"key": "www.nike.com",
"mentions": 18950
}
],
"sources_domain": [
{
"ai_search_volume": 101825425,
"key": "www.nike.com",
"mentions": 148275
}
]
}
],
"items_count": 2,
"offset": 0,
"total_count": 2
}
],
"result_count": 1,
"status_code": 20000,
"status_message": "Ok.",
"time": "0.0764 sec."
}
],
"tasks_count": 1,
"tasks_error": 0,
"time": "0.1111 sec.",
"version": "0.1.20261022"
}
| Field | Meaning |
|---|---|
tasks[].result[].items[].key | The label you gave the target in the request, such as nike or adidas. Use it to match each row to its target. |
tasks[].result[].items[].platform[] | Mentions and AI search volume for that target on each platform, such as google and chat_gpt. The platform name is in key. |
tasks[].result[].items[].sources_domain[] | Domains that AI answers cited as sources for this target. Each row has the domain in key, with mentions and ai_search_volume. |
tasks[].result[].items[].search_results_domain[] | Domains found in search results tied to this target, with mentions and ai_search_volume for each. |
tasks[].result[].items[].brand_entities_title[] | Brand or entity names that appear alongside this target, with their mentions and ai_search_volume. Rival brands can show up here. |
tasks[].result[].items[].brand_entities_category[] | The same brand entities grouped by category, such as product, brand and athlete. |
tasks[].result[].items[].language[] / tasks[].result[].items[].location[] | The same metrics split by language code and location code. The code is in key. |
tasks[].result[].aggregated_metrics.total | Combined mentions and ai_search_volume across all targets in the request. |
tasks[].result[].aggregated_metrics.platform[] / tasks[].result[].aggregated_metrics.sources_domain[] | The same breakdowns as the per-target rows, but combined across all targets. |
tasks[].result[].items_count / tasks[].result[].total_count | Number of target rows returned and the total number of targets. |
targets needs a key label and a target array, for example [{"domain": "nike.com"}]. The key comes back unchanged in items[].key.platform to google or chat_gpt to limit the metrics to one platform. Leave it out to get both.location rows use the numeric code in key, such as 2840. The language rows use the code, such as en.Billed at the actual cost of each call, about $0.102 for the request above. Failed calls are not charged.
Commencer à construire
Point de terminaison de l'API de la plateforme avec authentification unifiée et suivi de l'utilisation.
curl -X POST "https://api.sandbase.ai/v1/api/dataforseo/v3/ai_optimization/llm_mentions/multi_target_metrics/live" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"targets": [
{
"key": "nike",
"target": [
{
"domain": "nike.com"
}
]
},
{
"key": "adidas",
"target": [
{
"domain": "adidas.com"
}
]
}
],
"language_code": "en",
"location_code": 2840
}'Définissez votre clé API SandBase dans l'environnement de votre serveur. Les requêtes utilisent l'authentification Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Conservez votre clé côté serveur. Ne l'exposez pas dans le code du navigateur.
targetsarrayArray of 2 to 10 objects, each with a `key` label and a `target` array of domain or keyword entities.
location_codeintegerLocation code; default 2840 (United States).
language_codestringLanguage code; default "en".
platformstringOptional: "google" (AI Overviews) or "chat_gpt". Omit for both.
Exemple de réponse enregistré pour cette API ; aucune requête en direct n'est effectuée lors de l'affichage.
Aucune réponse enregistrée n'a été publiée. Exécutez l'API dans Playground pour inspecter sa réponse.
Explorer plus
| API | Prix | Réponse |
|---|---|---|
DataForSEO | À partir de $0.102 par appel | JSON |
DataForSEO | À partir de $0.0102 par appel | JSON |
DataForSEO | À partir de $0.000724 par appel | JSON |
DataForSEO | $0.004 par appel | JSON |
DataForSEO | À partir de $0.00162 par appel | JSON |
DataForSEO | À partir de $0.001105 par appel | JSON |
Questions
Envoyez une requête POST à https://api.sandbase.ai/v1/api/dataforseo/v3/ai_optimization/llm_mentions/multi_target_metrics/live avec votre clé API SandBase dans l’en-tête Authorization (Bearer) et les paramètres dans un corps JSON. Vous pouvez aussi l’essayer dans le Playground sur cette page sans écrire de code.
À partir de $0.102 par appel, facturé depuis votre solde SandBase. Vous ne payez que les appels que vous effectuez ; aucun abonnement.
Aucun paramètre n’est requis. Facultatif : targets (array), location_code (integer), language_code (string) et platform (string). Le tableau des paramètres et le Playground sur cette page listent tous les champs.
Une réponse JSON renvoyée dans la même requête HTTP (synchrone). Le README sur cette page inclut un exemple de réponse.
Non. DataForSEO LLM Mentions Multi-Target Metrics fonctionne via SandBase, donc une seule clé API SandBase couvre ce point de terminaison ainsi que toutes les autres API et tous les modèles du catalogue. Vous n’avez pas besoin de demander un accès API DataForSEO séparément.