主题
AI 数据:热门问题实时查询
本接口使用 POST 方法,路径为:
/v3/ai_optimization/ai_keyword_data/popular_questions/live
用于查询与指定的热门问题。返回结果每个问题当前月份的 AI 搜索量,以及过去 12 个月的月度 AI 搜索量趋势。数据基于搜索结果页中“用户还问了”类问题的统计信息。
本接口按请求计费,扣费以响应头 X-SeerMarTech-Charge-CNY 为准。所有 POST 请求体使用 UTF-8 编码的 JSON 数组格式。平台限流以认证说明中的 30/60/120 次/分钟规则为准,同时进行的请求数最多为 30 个。
请求参数
请求体中的每个对象代表一个查询任务,格式为:
json
[
{
"keyword": "iphone",
"location_code": 2840,
"language_code": "en",
"limit": 10
}
]任务参数
| 参数 | 类型 | 填 | 说明 |
|---|---|---|---|
keyword | string | 是 | 要查询的,最多 700 个字符。字段中的 URL 编码会被解码,字符 + 会被解码为空格。若中需要使用 %,请写为 %25;若需要使用 +,请写为 %2B。 |
location_name | string | 条件填 | 地区的完整名称。未指定 location_code 时填。location_name 与 location_code 至少指定一个。示例:United Kingdom。 |
location_code | integer | 条件填 | 地区唯一标识。未指定 location_name 时填。location_name 与 location_code 至少指定一个。示例:2840。 |
language_name | string | 条件填 | 语言的完整名称。未指定 language_code 时填。指定此字段后无需再指定 language_code。示例:English。 |
language_code | string | 条件填 | 语言代码。未指定 language_name 时填。指定此字段后无需再指定 language_name。示例:en。 |
limit | integer | 否 | 返回的热门问题数量上限。 |
offset | integer | 否 | 返回结果的偏移量,默认值为 0。例如设置为 10 时,将跳过前 10 条结果。建议在获取不 10000 条结果时使用。 |
filters | array | 否 | 结果过滤条件,最多同时设置 8 个过滤条件。多个条件之间使用 and 或 or 逻辑运算符。不能按 relevance 过滤。 |
order_by | array | 否 | 结果排序规则。当前可按 ai_search_volume 排序。排序方向支持 asc 和 desc,格式为 字段,方向。 |
tag | string | 否 | 用户自定义任务标识,最多 255 个字符。可用于在响应中匹任务,指定的值会返回在响应的 data 对象中。 |
可用的地区及语言列表可通过以下接口获取:
/v3/ai_optimization/ai_keyword_data/locations_and_languages
可用的过滤字段可通过以下接口获取:
/v3/ai_optimization/ai_keyword_data/available_filters
过滤器
支持以下运算符:
regexnot_regex<<=>>==<>innot_inmatchnot_matchlikenot_like
使用 like 或 not_like 时,可以使用 % 匹零个或多个字符。
示例:
json
[
{
"keyword": "iphone",
"location_code": 2840,
"language_code": "en",
"filters": [
[
"ai_search_volume",
">",
3
]
],
"order_by": [
"ai_search_volume,desc"
],
"offset": 0,
"limit": 10
}
]响应字段
接口返回 JSON 数据 tasks 数组。
顶层字段
| 字段 | 类型 | 说明 |
|---|---|---|
version | string | 当前 API 版本。 |
status_code | integer | 通用状态码。 |
status_message | string | 通用状态信息。 |
time | string | 请求执行耗时,单位为秒。 |
cost | float | 平台原始 USD 成本兼容字段;人民币实扣以 X-SeerMarTech-Charge-CNY 为准。 |
tasks_count | integer | tasks 数组中的任务总数。 |
tasks_error | integer | tasks 数组中返回错误的任务数量。 |
tasks | array | 任务结果数组。 |
tasks 字段
| 字段 | 类型 | 说明 |
|---|---|---|
id | string | 任务唯一标识,采用 UUID 格式。 |
status_code | integer | 当前任务的状态码。 |
status_message | string | 当前任务的状态信息。 |
time | string | 当前任务执行耗时,单位为秒。 |
cost | float | 平台原始 USD 成本兼容字段;人民币实扣以 X-SeerMarTech-Charge-CNY 为准。 |
result_count | integer | result 数组中的数量。 |
path | array | 请求路径。 |
data | object | 创建任务时提交的参数。 |
result | array | 查询结果数组。 |
result 字段
| 字段 | 类型 | 说明 |
|---|---|---|
location_code | integer | 请求中使用的地区代码。 |
language_code | string | 请求中使用的语言代码。 |
total_count | integer | 与请求条件匹的结果总数。 |
offset | integer | 当前结果偏移量。 |
items_count | integer | items 数组中的结果数量。 |
items | array | 热门问题及 AI 搜索量数据。 |
items 字段
| 字段 | 类型 | 说明 |
|---|---|---|
question | string | 与指定的热门问题。 |
ai_search_volume | integer | 当前月份该问题的 AI 搜索量。 |
ai_monthly_searches | array | 按月统计的 AI 搜索量数据,通常过去 12 个月的数据。 |
ai_monthly_searches 字段
| 字段 | 类型 | 说明 |
|---|---|---|
year | integer | 年份。 |
month | integer | 月份,取值范围为 1 至 12。 |
ai_search_volume | integer | 对应月份的 AI 搜索量。 |
cURL 请求示例
bash
curl --location --request POST \
"https://api.seermartech.cn/v3/ai_optimization/ai_keyword_data/popular_questions/live" \
--header "Authorization: Bearer smt_live_YOUR_KEY" \
--header "Content-Type: application/json" \
--data-raw '[
{
"language_name": "English",
"location_code": 2840,
"keyword": "iphone",
"order_by": [
"ai_search_volume,desc"
],
"filters": [
[
"ai_search_volume",
">",
3
]
],
"offset": 0,
"limit": 10
}
]'Python 请求示例
python
import requests
url = (
"https://api.seermartech.cn"
"/v3/ai_optimization/ai_keyword_data/popular_questions/live"
)
headers = {
"Authorization": "Bearer smt_live_YOUR_KEY",
"Content-Type": "application/json",
}
post_data = [
{
"language_name": "English",
"location_code": 2840,
"keyword": "iphone",
"order_by": [
"ai_search_volume,desc"
],
"filters": [
[
"ai_search_volume",
">",
3
]
],
"offset": 0,
"limit": 10,
}
]
response = requests.post(
url,
headers=headers,
json=post_data,
timeout=60,
)
result = response.json()
if result.get("status_code") == 20000:
print(result)
else:
print(
"请求失败,状态码:{},信息:{}".format(
result.get("status_code"),
result.get("status_message"),
)
)TypeScript 请求示例
typescript
import axios from "axios";
const postData = [
{
language_name: "English",
location_code: 2840,
keyword: "iphone",
order_by: ["ai_search_volume,desc"],
filters: [
["ai_search_volume", ">", 3],
],
offset: 0,
limit: 10,
},
];
axios
.post(
"https://api.seermartech.cn/v3/ai_optimization/ai_keyword_data/popular_questions/live",
postData,
{
headers: {
Authorization: "Bearer smt_live_YOUR_KEY",
"Content-Type": "application/json",
},
},
)
.then((response) => {
const result = response.data;
if (result.status_code === 20000) {
console.log(result);
} else {
console.error(
`请求失败,状态码:${result.status_code},信息:${result.status_message}`,
);
}
})
.catch((error) => {
console.error("请求异常:", error.message);
});响应示例
json
{
"version": "0.1.20250526",
"status_code": 20000,
"status_message": "Ok.",
"time": "20.9611 sec.",
"cost": 0,
"tasks_count": 1,
"tasks_error": 0,
"tasks": [
{
"id": "01234567-89ab-cdef-0123-456789abcdef",
"status_code": 20000,
"status_message": "Ok.",
"time": "20.9500 sec.",
"cost": 0,
"result_count": 1,
"path": [
"v3",
"ai_optimization",
"ai_keyword_data",
"popular_questions",
"live"
],
"data": {
"api": "ai_optimization",
"function": "popular_questions",
"language_name": "English",
"location_code": 2840,
"keyword": "iphone",
"order_by": [
"ai_search_volume,desc"
],
"filters": [
[
"ai_search_volume",
">",
3
]
],
"offset": 0,
"limit": 10
},
"result": [
{
"location_code": 2840,
"language_code": "en",
"total_count": 1,
"offset": 0,
"items_count": 1,
"items": [
{
"question": "does o'reilly auto parts have an app for iphone?",
"ai_search_volume": 910,
"ai_monthly_searches": [
{
"year": 2025,
"month": 5,
"ai_search_volume": 910
}
]
}
]
}
]
}
]
}当 status_code 不等于 20000 时,应根据 status_code 和 status_message 处理异常,并直接将错误响应视为有效结果。
实用场景
- 挖掘与核心的热门问题,扩展 FAQ 和选题,提升页面对用户真实搜索意图的覆盖率。
- 筛选 AI 搜索量较高的问题,优制作专题页或问答,将有限的资源高潜力主题。
- 排序不同问题的月度 AI 搜索量,识别需求增长或下降趋势,制定季度 SEO计划。
- 对比不同地区和语言下的热门问题,发现本地化搜索意图,为 SEO 和多语言站点规划。
- 监控重点对应的问题变化,及时更新已有文章和 FAQ,降低过时导致的自然流量损失。