Skip to content

LLM 提及最多的品牌类别(实时)

POST /v3/ai_optimization/llm_mentions/top_mentioned_brand_categories/live

本接口使用 POST 方法,路径为:

/v3/ai_optimization/llm_mentions/top_mentioned_brand_categories/live

本接口用于统计指定目标在大语言模型(LLM)回答中被提及的品牌类别,并品牌类别聚合展示提及次数、AI 搜索量、来源域名、搜索结果域名及品牌实体等指标。结果受平台、地区和语言参数影响。

> 注意:品牌实体数据支持 platform: chat_gpt

接口信息

  • 请求方法POST
  • 请求地址https://api.seermartech.cn/v3/ai_optimization/llm_mentions/top_mentioned_brand_categories/live
  • 请求格式application/json,使用 UTF-8 编码
  • 请求体格式:JSON 数组,且每次请求只能一个任务
  • 执行时间:最长约 120 秒 平台限流以认证说明中的 30/60/120 次/分钟规则为准- 参考价:约 ¥0.7272 / 次
  • 计费说明:扣费以响应头 X-SeerMarTech-Charge-CNY 为准

请求参数

顶层参数

参数类型说明
targetarray目标实体数组,最多 10 个实体。每个实体一个 domainkeyword
location_namestring搜索地区的完整名称。指定后无需再传 location_code
location_codeinteger搜索地区代码。默认值为 2840
language_namestring搜索语言的完整名称。指定后无需再传 language_code
language_codestring搜索语言代码。默认值为 en
platformstring目标平台,可选 chat_gptgoogle
filtersarray对聚合后的结果进行过滤,最多 8 个条件
initial_dataset_filtersarray在聚合前对原始提及数据进行过滤,最多 8 个条件
limitintegeritems 数组最多返回的结果数量,范围 1-1000,默认 100
internal_list_limitinteger限制数组的最大数量,范围 1-10,默认 5
order_byarray结果排序规则,最多设置 3 条
offsetinteger结果偏移量,默认 0,最大值为 1000000
include_brand_categoriesarray返回指定的品牌类别
exclude_brand_categoriesarray排除指定的品牌类别
tagstring自定义任务标识,最长 255 个字符。响应中的 data 对象会返回该值

target

target 最多可 10 个目标实体。每个实体可使用以下两种结构之一。

域名实体:domain_entity

参数类型说明
domainstring条件填目标域名,最多 63 个字符;不得 https://www.
search_filterstringincludeexclude,默认 include
search_scopearray搜索范围,可选 anysourcessearch_results,默认 any
include_subdomainsboolean是否目标域名的子域名,默认 false

示例:

json
{
  "domain": "en.wikipedia.org",
  "search_filter": "exclude",
  "search_scope": ["sources"],
  "include_subdomains": false
}

实体:keyword_entity

参数类型说明
keywordstring条件填目标,最多 250 个字符
search_filterstringincludeexclude,默认 include
search_scopearray搜索范围,可选 anyquestionanswerbrand_entitiesfan_out_queries,默认 any
match_typestring匹方式,可选 word_matchpartial_match,默认 word_match

match_type 说明:

  • word_match:进行匹,可匹种子前后或中间词的。
  • partial_match:匹中出现的或片段。

示例:

json
{
  "keyword": "bmw",
  "search_filter": "include",
  "search_scope": ["answer"],
  "match_type": "partial_match"
}

> 请求中的 target 至少需要一个 domain_entitykeyword_entity,且 search_filter须为 include

地区与语言参数

参数类型默认值说明
location_namestring-地区完整名称
location_codeinteger2840地区代码
language_namestring-语言完整名称
language_codestringen语言代码

chat_gpt 平台目前支持:

  • 地区:United States,代码 2840
  • 语言:English,代码 en

可通过以下接口获取可用的地区和语言:

/v3/ai_optimization/llm_mentions/locations_and_languages

filters

用于过滤聚合后的结果。最多支持 8 个过滤条件,多个条件之间需要使用逻辑运算符 andor

支持的运算符:

=<>innot_inlikenot_likeilikenot_ilikematchnot_match

使用 likenot_like 时,可以使用 % 匹任意长度的字符串。

示例:

json
[
  ["total.mentions", ">", 100],
  "and",
  ["brand_category", "like", "%business%"]
]

initial_dataset_filters

用于在聚合前过滤原始 LLM 提及数据,从而限制参与统计的记录。最多支持 8 个过滤条件,条件之间使用 andor 连接。

支持的运算符:

=<>innot_inlikenot_likeilikenot_ilikematchnot_match

示例:

json
[
  ["ai_search_volume", ">", 10]
]

分页、排序与类别过滤

limit

限制 items 数组返回的品牌类别数量:

  • 最小值:1
  • 最大值:1000
  • 默认值:100

internal_list_limit

限制以下数组的返回数量:

  • sources_domain
  • search_results_domain
  • brand_entities_title
  • brand_entities_category

取值范围为 1-10,默认值为 5

order_by

使用与 filters 相同的字段和表达式进行排序。排序类型为:

  • asc:升序
  • desc:降序

排序字段与排序方向使用逗号分隔,例如:

json
[
  "total.mentions,desc",
  "brand_category,asc"
]

单次请求最多设置 3 条排序规则,多条规则之间使用逗号分隔。

offset

跳过前 N 条结果。例如设置为 10 时,将跳过结果数组中的前 10 条记录。

最大值为 1000000,默认值为 0

include_brand_categories

返回指定品牌类别:

json
["company", "brand", "local_business"]

exclude_brand_categories

排除指定品牌类别:

json
["vehicle", "organization"]

请求示例

cURL

bash
curl --location --request POST \
  "https://api.seermartech.cn/v3/ai_optimization/llm_mentions/top_mentioned_brand_categories/live" \
  --header "Authorization: Bearer smt_live_YOUR_KEY" \
  --header "Content-Type: application/json" \
  --data-raw '[
    {
      "language_code": "en",
      "location_code": 2840,
      "platform": "chat_gpt",
      "target": [
        {
          "keyword": "bmw",
          "search_scope": ["answer"]
        },
        {
          "keyword": "auto",
          "search_scope": ["question"],
          "match_type": "partial_match"
        }
      ],
      "initial_dataset_filters": [
        ["ai_search_volume", ">", 10]
      ],
      "limit": 5,
      "internal_list_limit": 2
    }
  ]'

Python

python
import requests

url = "https://api.seermartech.cn/v3/ai_optimization/llm_mentions/top_mentioned_brand_categories/live"

headers = {
    "Authorization": "Bearer smt_live_YOUR_KEY",
    "Content-Type": "application/json",
}

post_data = [
    {
        "language_code": "en",
        "location_code": 2840,
        "platform": "chat_gpt",
        "target": [
            {
                "keyword": "bmw",
                "search_scope": ["answer"],
            },
            {
                "keyword": "auto",
                "search_scope": ["question"],
                "match_type": "partial_match",
            },
        ],
        "initial_dataset_filters": [
            ["ai_search_volume", ">", 10],
        ],
        "limit": 5,
        "internal_list_limit": 2,
    }
]

response = requests.post(url, headers=headers, json=post_data, timeout=120)
response.raise_for_status()

result = response.json()
if result.get("status_code") == 20000:
    print(result)
else:
    print(
        f"请求失败,错误码:{result.get('status_code')},"
        f"错误信息:{result.get('status_message')}"
    )

TypeScript

typescript
import axios from "axios";

const url =
  "https://api.seermartech.cn/v3/ai_optimization/llm_mentions/top_mentioned_brand_categories/live";

const requestBody = [
  {
    language_code: "en",
    location_code: 2840,
    platform: "chat_gpt",
    target: [
      {
        keyword: "bmw",
        search_scope: ["answer"],
      },
      {
        keyword: "auto",
        search_scope: ["question"],
        match_type: "partial_match",
      },
    ],
    initial_dataset_filters: [["ai_search_volume", ">", 10]],
    limit: 5,
    internal_list_limit: 2,
  },
];

axios
  .post(url, requestBody, {
    headers: {
      Authorization: "Bearer smt_live_YOUR_KEY",
      "Content-Type": "application/json",
    },
    timeout: 120000,
  })
  .then((response) => {
    // 处理接口响应
    console.log(response.data);
  })
  .catch((error) => {
    // 处理网络或接口错误
    console.error(error.response?.data || error.message);
  });

响应结构

接口返回 JSON 对象 tasks 数组。

顶层响应字段

字段类型说明
versionstring当前 API 版本
status_codeinteger请求级状态码。20000 表示成功
status_messagestring请求级状态信息
timestring执行耗时,单位为秒
costfloat平台原始 USD 成本兼容字段;人民币实扣以 X-SeerMarTech-Charge-CNY 为准。
tasks_countintegertasks 数组中的任务总数
tasks_errorinteger返回错误的任务数量
tasksarray任务结果数组

tasks 字段

字段类型说明
idstring任务唯一标识,UUID 格式
status_codeinteger任务状态码,通常位于 10000-60000 范围
status_messagestring任务状态信息
timestring任务执行耗时
costfloat平台原始 USD 成本兼容字段;人民币实扣以 X-SeerMarTech-Charge-CNY 为准。
result_countintegerresult 数组中的数量
patharray请求路径
dataobject本次任务使用的请求参数
resultarray任务结果数组

完整状态码和错误信息请参考错误码文档。

result 字段

字段类型说明
total_countinteger与请求条件匹的结果总数
offsetinteger已从 items 中跳过的结果数量
items_countintegeritems 数组返回的结果数量
aggregated_metricsobject所有品牌类别的聚合提及指标
itemsarray各品牌类别的详细结果

aggregated_metrics 字段

aggregated_metrics 汇总所有符合条件的品牌类别,并按地区、语言、平台、来源域名、搜索结果域名和品牌实体等维度进行分组。

分组字段

以下字段均为对象数组,每个:

字段类型说明
keystring / integer分组标识。地区通常为整数,维度通常为字符串
mentionsinteger与该分组的 LLM 提及次数
ai_search_volumeinteger该分组对应的聚合 AI 搜索量

支持的分组字段如下:

字段说明
location按地理位置分组
language按语言分组
platform按 AI 平台分组
sources_domainLLM 回答中作为引用来源的热门域名
search_results_domain与 LLM 查询、出现在搜索结果中的热门域名
brand_entities_title与目标的品牌实体标题
brand_entities_category与目标的品牌实体类别

internal_list_limit 会限制 sources_domainsearch_results_domainbrand_entities_titlebrand_entities_category 数组的数量。

aggregated_metrics.total

字段类型说明
mentionsinteger与目标的 LLM 提及总次数
ai_search_volumeinteger所有提及对应的 AI 搜索量总值

items 字段

items 数组中的每个代表一个品牌类别。

字段类型说明
brand_categorystringLLM 提及中识别出的品牌类别
locationarray按地理位置统计的该品牌类别指标
languagearray按语言统计的该品牌类别指标
platformarray按 AI 平台统计的该品牌类别指标
sources_domainarray与该品牌类别、被 LLM 回答引用的来源域名
search_results_domainarray与该品牌类别、出现在搜索结果中的域名
brand_entities_titlearray与该品牌类别的品牌实体标题
brand_entities_categoryarray与该品牌类别的品牌实体类别
totalobject该品牌类别的聚合指标摘要

brand_categorytotal 外,上述分组数组中的均:

字段类型说明
keystring / integer分组标识;域名维度中为域名,品牌实体维度中为实体名称或类别
mentionsinteger与该分组的 LLM 提及次数
ai_search_volumeinteger该分组对应的聚合 AI 搜索量

items[].total

字段类型说明
mentionsinteger与该品牌类别的 LLM 提及总次数
ai_search_volumeinteger与该品牌类别的 AI 搜索量总值

响应示例

json
{
  "version": "0.1.20251208",
  "status_code": 20000,
  "status_message": "Ok.",
  "time": "1.9150 sec.",
  "cost": 0.7272,
  "tasks_count": 1,
  "tasks_error": 0,
  "tasks": [
    {
      "id": "01234567-89ab-cdef-0123-456789abcdef",
      "status_code": 20000,
      "status_message": "Ok.",
      "time": "1.9000 sec.",
      "cost": 0.7272,
      "result_count": 1,
      "path": [
        "v3",
        "ai_optimization",
        "llm_mentions",
        "top_mentioned_brand_categories",
        "live"
      ],
      "data": {
        "api": "ai_optimization",
        "function": "top_mentioned_brand_categories",
        "language_code": "en",
        "location_code": 2840,
        "platform": "chat_gpt",
        "target": [
          {
            "keyword": "bmw",
            "search_scope": ["answer"]
          },
          {
            "keyword": "auto",
            "search_scope": ["question"],
            "match_type": "partial_match"
          }
        ],
        "initial_dataset_filters": [
          ["ai_search_volume", ">", 10]
        ],
        "limit": 5,
        "internal_list_limit": 2
      },
      "result": [
        {
          "total_count": 4,
          "offset": 0,
          "items_count": 4,
          "aggregated_metrics": {
            "location": [
              {
                "key": 2840,
                "mentions": 9999,
                "ai_search_volume": 99999
              }
            ],
            "language": [
              {
                "key": "en",
                "mentions": 9999,
                "ai_search_volume": 99999
              }
            ],
            "platform": [
              {
                "key": "chat_gpt",
                "mentions": 9999,
                "ai_search_volume": 99999
              }
            ],
            "sources_domain": [],
            "search_results_domain": [],
            "brand_entities_title": [],
            "brand_entities_category": [],
            "total": {
              "mentions": 9999,
              "ai_search_volume": 99999
            }
          },
          "items": [
            {
              "brand_category": "company",
              "location": [],
              "language": [],
              "platform": [],
              "sources_domain": [],
              "search_results_domain": [],
              "brand_entities_title": [],
              "brand_entities_category": [],
              "total": {
                "mentions": 600,
                "ai_search_volume": 6000
              }
            },
            {
              "brand_category": "local_business",
              "location": [],
              "language": [],
              "platform": [],
              "sources_domain": [],
              "search_results_domain": [],
              "brand_entities_title": [],
              "brand_entities_category": [],
              "total": {
                "mentions": 600,
                "ai_search_volume": 6000
              }
            },
            {
              "brand_category": "brand",
              "location": [],
              "language": [],
              "platform": [],
              "sources_domain": [],
              "search_results_domain": [],
              "brand_entities_title": [],
              "brand_entities_category": [],
              "total": {
                "mentions": 600,
                "ai_search_volume": 6000
              }
            },
            {
              "brand_category": "vehicle",
              "location": [],
              "language": [],
              "platform": [],
              "sources_domain": [],
              "search_results_domain": [],
              "brand_entities_title": [],
              "brand_entities_category": [],
              "total": {
                "mentions": 600,
                "ai_search_volume": 6000
              }
            }
          ]
        }
      ]
    }
  ]
}

实用场景

  • 识别目标在 LLM 回答中最常出现的品牌类别,定位用户认知中的竞争领域与品牌属性。
  • 比较不同品牌类别的提及次数和 AI 搜索量,评估品牌在生成式搜索结果中的强度。
  • 筛选特定来源域名、搜索结果域名或品牌实体类别,定位影响 LLM 推荐结果的来源。
  • 监测不同时间段或不同目标的品牌类别变化,为选题和品牌定位优化提供依据。
  • 拆分地区、语言和 AI 平台维度的聚合数据,发现不同市场中的品牌认知差异。

统一入口:官网 · LLM API · 控制台