Skip to content

批量点击流搜索量(实时)

POST /v3/keywords_data/clickstream_data/bulk_search_volume/live

接口概述

/v3/keywords_data/clickstream_data/bulk_search_volume/live 用于通过一次实时请求,批量获取最多 1000 个的点击流口径搜索量数据。

除当前平均月搜索量外,本接口还可返回最近最多 12 个月的历史搜索量数据;可返回的月份范围会受、地域和语言等条件影响。

  • 请求方式:POST
  • 接口地址:https://api.seermartech.cn/v3/keywords_data/clickstream_data/bulk_search_volume/live

计费与调用限制

本接口按请求计费。

由于原文未提供固定单价,无法直接换算参考人民币价格。扣费以响应头 X-SeerMarTech-Charge-CNY 为准

调用限制:

  • 每分钟最多可发送 2000 次 API 调用
  • 同时并发请求数最多 30

请求格式

所有 POST 数据需使用 JSON(UTF-8 编码)提交。

请求体为 JSON 数组,格式如下:

json
[
 {
 "location_name": "United States",
 "keywords": [
 "you tube",
 "youtube",
 "youtub"
 ]
 }
]

请求参数

任务对象字段

字段名类型说明
keywordsarray目标列表。。最多可传 1000 个;每个长度至少为 3 个字符;会自动转换为小写。注意: 某些符号和字符(如部分 UTF 特殊字符、emoji)不支持。
location_namestring地域完整名称。未传 location_code 时填。location_namelocation_code 二选一传。示例:United Kingdom
location_codeinteger地域编码。未传 location_name 时填。location_namelocation_code 二选一传。示例:2840
tagstring自定义任务标识。可选,最长 255 个字符。可用于将请求与响应结果对应,返回时会出现在响应的 data 对象中。

地域与语言列表获取

可通过以下接口获取可用地域及语言信息:

/v3/keywords_data/clickstream_data/locations_and_languages

响应结构

接口返回 JSON 编码数据,顶层 tasks 数组。

顶层字段

字段名类型说明
versionstring当前 API 版本
status_codeinteger通用状态码。完整列表参考 /v3/appendix/errors
status_messagestring通用状态信息
timestring执行耗时,单位:秒
costfloat本次所有任务总费用,单位:USD
tasks_countintegertasks 数组中的任务数量
tasks_errorinteger返回错误的任务数量
tasksarray任务结果数组

tasks 数组字段

字段名类型说明
idstring任务唯一标识,UUID 格式
status_codeinteger任务状态码,范围通常为 1000060000,完整列表参考 /v3/appendix/errors
status_messagestring任务状态信息
timestring任务执行耗时,单位:秒
costfloat当前任务费用,单位:USD
result_countintegerresult 数组中的数量
patharrayURL 路径
dataobject含与请求体中一致的参数
resultarray结果数组

result 数组字段

字段名类型说明
location_codeinteger请求中使用的地域编码
items_countintegeritems 数组中的结果数量
itemsarray及对应数据

items 数组字段

字段名类型说明
keywordstring。返回时会对 %## 进行解码,+ 会被解码为空格。
search_volumeinteger基于点击流数据估算的平均月搜索量
monthly_searchesarray按月搜索量数据,通常可返回过去 12 个月的历史值
yearinteger年份
monthinteger月份
search_volumeinteger当月搜索量

请求示例

cURL

bash
curl --location "https://api.seermartech.cn/v3/keywords_data/clickstream_data/bulk_search_volume/live" \
--header "Authorization: Bearer smt_live_YOUR_KEY" \
--header "Content-Type: application/json" \
--data-raw '[
 {
 "location_code": 2840,
 "tag": "test-tag",
 "keywords": [
 "you tube",
 "youtube",
 "youtub"
 ]
 }
]'

Python

python
import requests

url = "https://api.seermartech.cn/v3/keywords_data/clickstream_data/bulk_search_volume/live"
headers = {
 "Authorization": "Bearer smt_live_YOUR_KEY",
 "Content-Type": "application/json"
}
data = [
 {
 "location_name": "United States",
 "keywords": [
 "you tube",
 "youtube",
 "youtub"
 ]
 }
]

response = requests.post(url, headers=headers, json=data)
print(response.json)

TypeScript

typescript
import axios from "axios";

const postArray = [
 {
 location_code: 2840,
 tag: "test-tag",
 keywords: ["you tube", "youtube", "youtub"]
 }
];

axios({
 method: "post",
 url: "https://api.seermartech.cn/v3/keywords_data/clickstream_data/bulk_search_volume/live",
 headers: {
 Authorization: "Bearer smt_live_YOUR_KEY",
 "Content-Type": "application/json"
 },
 data: postArray
})
 .then((response) => {
 // 输出接口返回结果
 console.log(response.data);
 })
 .catch((error) => {
 console.error(error);
 });

响应示例

json
{
 "version": "0.1.20240801",
 "status_code": 20000,
 "status_message": "Ok.",
 "time": "0.3889 sec.",
 "cost": 0.0103,
 "tasks_count": 1,
 "tasks_error": 0,
 "tasks": [
 {
 "data": {
 "api": "keywords_data",
 "function": "bulk_search_volume",
 "se": "clickstream_data",
 "location_code": 2840,
 "tag": "test-tag",
 "keywords": [
 "you tube",
 "youtube",
 "youtub"
 ]
 },
 "result": [
 {
 "location_code": 2840,
 "items_count": 2,
 "items": [
 {
 "keyword": "you tube",
 "search_volume": 3986664,
 "monthly_searches": []
 },
 {
 "keyword": "youtube",
 "search_volume": 157924192,
 "monthly_searches": []
 }
 ]
 }
 ]
 }
 ]
}

响应说明

  • search_volume 表示基于点击流数据估算的平均月搜索量,并非广告平台口径的精确值。
  • monthly_searches 用于查看近 12 个月的月度变化趋势;某些可能因数据覆盖范围限制而返回空数组或不完整月份。
  • 如果传多个,返回结果中的 items 会按可用数据逐项返回,不保证所有一定都有结果。

错误处理

请根据 status_codestatus_message 判断请求是否成功,并为异常设计健壮的处理逻辑。

常见判断方式:

  • 顶层 status_code = 20000:请求成功
  • tasks_error > 0:部分任务处理失败
  • 任务级 status_code 非成功值:表示该任务执行异常

完整错误码列表参考:

  • /v3/appendix/errors

使用建议

  • 批量请求时,建议按业务主题或国家维度组织,便于后续分析。
  • 当需要统一地域维度比较搜索量时,优固定 location_code
  • 若要进行月度趋势分析,建议保留 monthly_searches 原始数据,以支持后续同比、环比和季节性计算。
  • 对做预处理时,应不支持的特殊字符或 emoji,以减少任务失败概率。

实用场景

  • 批量评估词库热度:一次获取最多 1000 个的点击流搜索量,快速筛选高潜力词,提升选题与投放效率。
  • 对比相近需求差异:比较同义词、错拼词、品牌词变体的搜索量,帮助确定页面主与布局重点。
  • 分析月度趋势变化:利用 monthly_searches 观察近 12 个月搜索波动,识别季节性需求,为发布时间和活动节奏提供依据。
  • 验证地域市场需求:按不同 location_code 查询同一批,判断各国家或地区的搜索规模,支持出海 SEO 与本地化规划。
  • 监控核心词需求变化:定期轮询品牌词、品类词和竞品词的搜索量变化,及时发现市场度上升或下降信号。

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