主题
app_data/apple/categories:获取 Apple 应用分类列表
GET /v3/app_data/apple/categories
本接口使用 GET 方法,请求路径为:
GET /v3/app_data/apple/categories
用于获取 App Store 支持的完整应用分类列表。接口无需请求参数,也无需提交请求体。
计费说明
当前调用本接口不收取费用,响应中的 cost 通常为 0。扣费以响应头 X-SeerMarTech-Charge-CNY 为准。
平台会持续维护支持的应用分类列表。如需离线使用,可通过平台提供的分类数据文件下载完整列表。
请求方式
请求头
| Header | 类型 | 填 | 说明 |
|---|---|---|---|
Authorization | string | 是 | Bearer 认证,格式为 Bearer smt_live_YOUR_KEY |
Content-Type | string | 否 | 建议设置为 application/json |
请求参数
本接口无请求参数。
响应字段
接口返回 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 | 任务状态码,通常为 10000 至 60000 |
status_message | string | 任务状态说明 |
time | string | 任务执行耗时,单位为秒 |
cost | float | 平台原始 USD 成本兼容字段;人民币实扣以 X-SeerMarTech-Charge-CNY 为准。 |
result_count | integer | result 数组中的数量 |
path | array | 请求 URL 路径 |
data | object | 请求路径中使用的参数信息 |
result | array | 任务结果数组 |
data 字段
| 字段 | 类型 | 说明 |
|---|---|---|
api | string | API 模块名称,固定为 app_data |
function | string | 接口功能名称,固定为 categories |
se | string | 数据来源,固定为 apple |
result 字段
| 字段 | 类型 | 说明 |
|---|---|---|
categories | array | App Store 支持的完整应用分类列表 |
请求示例
cURL
bash
curl --location --request GET \
"https://api.seermartech.cn/v3/app_data/apple/categories" \
--header "Authorization: Bearer smt_live_YOUR_KEY" \
--header "Content-Type: application/json"Python
python
import requests
url = "https://api.seermartech.cn/v3/app_data/apple/categories"
headers = {
"Authorization": "Bearer smt_live_YOUR_KEY",
"Content-Type": "application/json",
}
response = requests.get(url, headers=headers)
result = response.json()
if result.get("status_code") == 20000:
print(result)
else:
print(
"请求失败,状态码:%s,消息:%s"
% (result.get("status_code"), result.get("status_message"))
)TypeScript
typescript
import axios from "axios";
axios
.get("https://api.seermartech.cn/v3/app_data/apple/categories", {
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.20220422",
"status_code": 20000,
"status_message": "Ok.",
"time": "0.0782 sec.",
"cost": 0,
"tasks_count": 1,
"tasks_error": 0,
"tasks": [
{
"id": "00000000-0000-0000-0000-000000000000",
"status_code": 20000,
"status_message": "Ok.",
"time": "0.0782 sec.",
"cost": 0,
"result_count": 1,
"path": [
"v3",
"app_data",
"apple",
"categories"
],
"data": {
"api": "app_data",
"function": "categories",
"se": "apple"
},
"result": [
{
"categories": [
"Games",
"Business",
"Education"
]
}
]
}
]
}> 示例中的 categories 用于展示数据结构,返回以接口当前支持的 App Store 分类为准。
状态码
- 顶层
status_code用于表示本次 API 请求的整体处理结果。 tasks中的status_code用于表示任务的处理结果。- 当状态码为
20000时,表示请求成功。 - 状态码表示请求或任务处理失败,错误信息请结合
status_message查看。
实用场景
- 构建应用分类下拉选项:在应用监控、竞品分析或研究系统中动态加载 App Store 分类,手工维护分类字。
- 标准化应用数据维度:使用统一的 Apple 应用分类对应用样本进行归类,提升跨项目统计和报表分析的一致性。
- 筛选竞品分析范围:根据应用分类限定竞品集合,减少无应用干扰,提高市场研究结果的准确性。
- 搭建分类级 SEO 分析报表:将应用排名、评论量或下载表现按分类聚合,识别不同细分市场的增长机会。
- 同步分类:定期获取最新分类列表并更新数据库,降低 App Store 分类调整对业务系统的影响。