Skip to content

LLM 提及品牌排行(实时)

POST /v3/ai_optimization/llm_mentions/top_mentioned_brands/live

本接口通过大语言模型(LLM)提及数据,按指定目标的品牌提及频次聚合并返回品牌排行。结果受平台、地区和语言参数影响。

请求方式与路径:

POST /v3/ai_optimization/llm_mentions/top_mentioned_brands/live

品牌实体数据目前支持 chat_gpt 平台。

接口说明

  • 请求体使用 UTF-8 编码的 JSON 数组。
  • 每次请求只能提交 1 个任务。
  • target 最多 10 个目标实体。 平台限流以认证说明中的 30/60/120 次/分钟规则为准。
  • 实时任务执行时间最长约为 120 秒。
  • 任务提交成功后,接口会直接返回任务结果。
  • 实扣费以响应头 X-SeerMarTech-Charge-CNY 为准。

请求参数

顶层参数

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

地区与语言限制

platformchat_gpt 时:

  • location_name 支持 United States
  • location_code 支持 2840
  • language_name 支持 English
  • language_code 支持 en

可通过以下容路径获取可用地区和语言:

/v3/ai_optimization/llm_mentions/locations_and_languages

target 参数

target 是由目标实体对象组成的数组。每个对象只能指定一个 domain 或一个 keyword

至少需要一个 search_filterincludedomain 实体或 keyword 实体。

域名实体

参数类型说明
domainstring条件填目标域名。未指定 keyword 时填,最长 63 个字符。不要 https://www.
search_filterstring域名过滤方式:includeexclude。默认值为 include
search_scopearray域名搜索范围:anysourcessearch_results。默认值为 any
include_subdomainsboolean是否目标域名的子域名。默认值为 false

示例:

json
{
  "domain": "example.com",
  "search_filter": "include",
  "search_scope": ["any"],
  "include_subdomains": true
}

实体

参数类型说明
keywordstring条件填目标。未指定 domain 时填,最长 250 个字符。
search_filterstring过滤方式:includeexclude。默认值为 include
search_scopearray搜索范围:anyquestionanswerbrand_entitiesfan_out_queries。默认值为 any
match_typestring匹方式:word_matchpartial_match。默认值为 word_match

match_type 说明:

  • word_match:执行匹,可匹目标词前后或词组词的。
  • partial_match:匹中出现的或片段。

示例:

json
{
  "keyword": "electric vehicles",
  "search_filter": "include",
  "search_scope": ["question", "answer"],
  "match_type": "partial_match"
}

过滤器

filters 用于对聚合后的结果进行过滤;initial_dataset_filters 用于聚合前过滤原始提及数据。

两均支持以下运算符:

=<>innot_inlikenot_likeilikenot_ilikematchnot_match

使用 likenot_like 时,可以使用 % 匹任意长度的字符串。多个条件之间需要通过逻辑运算符 andor 连接。

示例:

json
[
  ["ai_search_volume", ">", 10],
  "and",
  ["mentions", ">=", 5]
]

排序

order_by 使用与过滤器相同的字段和排序表达式,排序方向为:

  • asc:升序
  • desc:降序

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

示例:

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

请求示例

curl

bash
curl --location --request POST \
  "https://api.seermartech.cn/v3/ai_optimization/llm_mentions/top_mentioned_brands/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_brands/live"

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

payload = [
    {
        "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=payload, timeout=130)
response.raise_for_status()

result = response.json()
print(result)

TypeScript

typescript
import axios from "axios";

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

const payload = [
  {
    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,
  },
];

const response = await axios.post(url, payload, {
  headers: {
    Authorization: "Bearer smt_live_YOUR_KEY",
    "Content-Type": "application/json",
  },
  timeout: 130000,
});

console.log(response.data);

响应结构

接口返回 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_countinteger当前 items 数组返回的结果数量。
aggregated_metricsobject所有匹品牌的聚合提及指标。
itemsarray按品牌拆分的详细结果。

aggregated_metrics

该对象跨品牌、地区、语言、平台及来源维度的聚合数据。

字段类型说明
locationarray按地区聚合的指标。
languagearray按语言聚合的指标。
platformarray按 AI 平台聚合的指标。
sources_domainarray与目标、被 LLM 回答引用的主要来源域名。
search_results_domainarray与 LLM 查询、出现在搜索结果中的主要域名。
brand_entities_titlearray品牌实体标题。
brand_entities_categoryarray品牌实体类别。
totalobject所有维度的总体聚合指标。

location.key 为整数外,上述分组数组中的每个通常:

字段类型说明
keystring / integer分组标识。对于域名维度,该值为域名;对于语言、平台或品牌维度,该值为对应名称或标识。
mentionsinteger目标或域名在该分组中的 LLM 提及次数。
ai_search_volumeinteger该分组提及数据对应的聚合 AI 搜索量。

total 对象字段:

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

items

items 数组中的每个代表一个被提及的品牌。

字段类型说明
brandstring品牌名称。
locationarray该品牌按地区拆分的提及指标。
languagearray该品牌按语言拆分的提及指标。
platformarray该品牌按 AI 平台拆分的提及指标。
sources_domainarray与该品牌、被 LLM 回答引用的来源域名。
search_results_domainarray与该品牌、出现在 LLM 查询搜索结果中的域名。
brand_entities_titlearray与该品牌的品牌实体标题。
brand_entities_categoryarray与该品牌的品牌实体类别。
totalobject该品牌的提及指标汇总。

items 中各分组数组的结构与 aggregated_metrics 中对应数组一致:

json
{
  "key": "example.com",
  "mentions": 120,
  "ai_search_volume": 2400
}

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.101,
  "tasks_count": 1,
  "tasks_error": 0,
  "tasks": [
    {
      "id": "00000000-0000-0000-0000-000000000000",
      "status_code": 20000,
      "status_message": "Ok.",
      "time": "1.8000 sec.",
      "cost": 0.101,
      "result_count": 1,
      "path": [
        "v3",
        "ai_optimization",
        "llm_mentions",
        "top_mentioned_brands",
        "live"
      ],
      "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
      },
      "result": [
        {
          "total_count": 5,
          "offset": 0,
          "items_count": 5,
          "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": "Toyota",
              "location": [],
              "language": [],
              "platform": [],
              "sources_domain": [],
              "search_results_domain": [],
              "brand_entities_title": [],
              "brand_entities_category": [],
              "total": {
                "mentions": 600,
                "ai_search_volume": 6000
              }
            }
          ]
        }
      ]
    }
  ]
}

实用场景

  • 对比目标下的品牌提及排名,识别竞争品牌在 LLM 回答中的可见度差异,优化品牌与 SEO 投放策略。
  • 筛选 sources_domainsearch_results_domain,定位影响 LLM 引用和搜索结果的高价值网站,制定外链和合作计划。
  • 按地区、语言和平台拆分品牌提及数据,发现不同市场中的 AI 搜索差异,支持化 SEO 和本地调整。
  • 使用 initial_dataset_filters 聚合高 AI 搜索量提及数据,优分析高需求查询,提升品牌监测和资源分效率。
  • 通过 include_brandsexclude_brands 聚焦指定品牌集合,构建竞品追踪报表并持续监控品牌声量变化。

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