主题
Bing 分类列表
GET /v3/keywords_data/bing/categories
接口说明
该接口用于获取 Bing Ads 体系下可用的分类列表。
通过调用本接口,你可以返回平台 API 支持的分类单。响应为 JSON 格式,核心数据位于 tasks 数组中分类编码、分类名称以及父级分类。
- 请求方式:
GET - 请求地址:
https://api.seermartech.cn/v3/keywords_data/bing/categories - 计费说明:该接口不收费,参考价约
¥0.0000 / 次;扣费以响应头X-SeerMarTech-Charge-CNY为准
响应结构
| 字段名 | 类型 | 说明 |
|---|---|---|
version | string | API 当前版本 |
status_code | integer | 接口总体状态码,完整列表参考 /v3/appendix/errors |
status_message | string | 接口总体状态信息,完整列表参考 /v3/appendix/errors |
time | string | 执行耗时,单位为秒 |
cost | float | 本次请求总费用,单位为 |
tasks_count | integer | tasks 数组中的任务数量 |
tasks_error | integer | tasks 数组中返回错误的任务数量 |
tasks | array | 任务数组 |
tasks 数组字段
| 字段名 | 类型 | 说明 |
|---|---|---|
id | string | 任务唯一标识,UUID 格式 |
status_code | integer | 任务状态码,通常范围为 10000-60000,完整列表参考 /v3/appendix/errors |
status_message | string | 任务状态信息,完整列表参考 /v3/appendix/errors |
time | string | 任务执行耗时,单位为秒 |
cost | float | 当前任务费用,单位为 |
result_count | integer | result 数组中的数量 |
path | array | URL 路径 |
data | object | GET 请求 URL 中传的参数 |
result | array | 返回结果数组 |
result 数组字段
| 字段名 | 类型 | 说明 |
|---|---|---|
category_code | integer | 分类编码 |
category_name | string | 分类完整名称 |
category_code_parent | integer | 上级分类编码 |
分类层级示例
json
{
"category_code": 10178,
"category_name": "Apparel Accessories",
"category_code_parent": 10021
},category_code_parent = 10021 对应的父级分类可能为:
json
{
"category_code": 10021,
"category_name": "Apparel"
}请求示例
cURL
bash
curl --location --request GET "https://api.seermartech.cn/v3/keywords_data/bing/categories" \
--header "Authorization: Bearer smt_live_YOUR_KEY" \
--header "Content-Type: application/json"Python
python
import requests
url = "https://api.seermartech.cn/v3/keywords_data/bing/categories"
headers = {
"Authorization": "Bearer smt_live_YOUR_KEY",
"Content-Type": "application/json"
}
response = requests.get(url, headers=headers)
result = response.json
# 成功时可进一步处理返回的分类数据
print(result)TypeScript
typescript
import axios from "axios";
axios({
method: "get",
url: "https://api.seermartech.cn/v3/keywords_data/bing/categories",
headers: {
Authorization: "Bearer smt_live_YOUR_KEY",
"Content-Type": "application/json",
},
})
.then((response) => {
// 返回分类列表结果
console.log(response.data);
})
.catch((error) => {
console.error(error);
});响应示例
json
{
"version": "3.20191128",
"status_code": 20000,
"status_message": "Ok.",
"time": "0.4305 sec.",
"cost": 0,
"tasks_count": 1,
"tasks_error": 0,
"tasks": [
{
"data": {
"api": "keywords_data",
"function": "categories",
"se": "bing"
},
"result": []
}
]
}状态码说明
20000:请求成功- 状态码:表示请求失败或任务异常,完整列表参考
/v3/appendix/errors
使用说明
该接口适合在发起研究、规划、广告分组或分类映射前,同步 Bing Ads 的标准分类体系。
你可以基于返回的:
category_code构建分类字category_name展示分类名称category_code_parent还原分类树结构,建立父子级映射
如果你的系统同时支持多个搜索引擎,路径中的 bing 可替换为已支持的搜索引擎标识,但以对应接口文档为准。
实用场景
- 同步分类字:定期拉取 Bing 分类单,维护本地标准类目库,便于广告与 SEO 数据统一归档
- 构建类目树:利用父级分类编码还原层级,搭建前端筛选器或后台运营管理树形结构
- 映射主题:将研究结果归类到标准广告分类中,提升账户结构化管理效率
- 校验类目:在创建投放策略或分组前,校验分类编码是否合法,减少无效
- 分析行业覆盖度:结合类目体系统计已覆盖与未覆盖的业务主题,发现新增机会