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.
เอาต์พุตของคุณจะแสดงที่นี่
กรอกอินพุตให้ครบ แล้วคลิก Run
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.
เริ่มสร้าง
เอ็นด์พอยต์ของ Platform API ที่มีการยืนยันตัวตนและการติดตามการใช้งานแบบรวมศูนย์
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
}'ตั้งค่า SandBase API key ของคุณในสภาพแวดล้อมฝั่งเซิร์ฟเวอร์ คำขอจะใช้การยืนยันตัวตนแบบ Bearer
export SANDBASE_API_KEY="YOUR_API_KEY"เก็บ key ไว้บนเซิร์ฟเวอร์ อย่าเปิดเผยในโค้ดฝั่งเบราว์เซอร์
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.
บันทึกตัวอย่างการตอบกลับสำหรับ API นี้; จะไม่มีการส่งคำขอจริงเมื่อเปิดดู
ยังไม่มีการเผยแพร่การตอบกลับที่บันทึกไว้ ให้รัน API ใน Playground เพื่อดูการตอบกลับ
สำรวจเพิ่มเติม
| API | ราคา | การตอบกลับ |
|---|---|---|
DataForSEO | เริ่มต้นที่ $0.102 ต่อครั้ง | JSON |
DataForSEO | เริ่มต้นที่ $0.0102 ต่อครั้ง | JSON |
DataForSEO | เริ่มต้นที่ $0.000724 ต่อครั้ง | JSON |
DataForSEO | $0.004 ต่อการเรียก | JSON |
DataForSEO | เริ่มต้นที่ $0.00162 ต่อครั้ง | JSON |
DataForSEO | เริ่มต้นที่ $0.001105 ต่อครั้ง | JSON |
คำถาม
ส่งคำขอ POST ไปที่ https://api.sandbase.ai/v1/api/dataforseo/v3/ai_optimization/llm_mentions/multi_target_metrics/live โดยใส่ SandBase API key ของคุณใน Authorization header (Bearer) และส่งพารามิเตอร์เป็น JSON body คุณยังสามารถลองใช้ได้ใน Playground บนหน้านี้โดยไม่ต้องเขียนโค้ด
เริ่มต้นที่ $0.102 ต่อครั้ง คิดจากยอดคงเหลือ SandBase ของคุณ คุณจะถูกเรียกเก็บเฉพาะคำขอที่คุณส่งเท่านั้น ไม่มีค่าสมาชิกรายเดือน
ไม่ต้องระบุพารามิเตอร์ ตัวเลือก: targets (array), location_code (integer), language_code (string) และ platform (string). ตาราง Parameters และ Playground ในหน้านี้แสดงทุกฟิลด์
การตอบกลับ JSON ที่ส่งกลับในคำขอ HTTP เดียวกัน (แบบซิงโครนัส) README บนหน้านี้มีตัวอย่างการตอบกลับ
ไม่จำเป็น DataForSEO LLM Mentions Multi-Target Metrics ทำงานผ่าน SandBase ดังนั้น SandBase API key เดียวครอบคลุม endpoint นี้และทุก API กับโมเดลอื่นในแค็ตตาล็อก คุณไม่ต้องสมัครขอสิทธิ์เข้าถึง DataForSEO API แยกต่างหาก