API 文档

App Store 分类标签 API

App Store 分类标签 API:输入参数、完整枚举、输出字段和真实响应示例。

测试 API
打开产品页并测试
POST https://api.goanyapi.com/api/v1/appstore/categorizations

请求与输入参数

同步 POST JSON 查询;没有 Path 或 Query 参数,不生成异步任务。

参数 位置 类型 必填 默认值 范围与说明
Authorization Header string 是 — Bearer YOUR_API_KEY
Content-Type Header string 是 application/json application/json
url JSON body string 可选或条件必填 — 完整 HTTPS 资源链接;优先于资源 ID; maxLength=4096
country JSON body string 可选或条件必填 — 商店国家代码;未显式覆盖时按链接国家处理; pattern=^[A-Za-z]{2}$
id JSON body string 可选或条件必填 — App Store 数字应用 ID; pattern=^[0-9]{1,20}$
bundleId JSON body string 可选或条件必填 — 应用 Bundle ID; maxLength=255; pattern=^[A-Za-z0-9_-]+(.[A-Za-z0-9_-]+)+$
limit JSON body integer 可选或条件必填 10 本接口返回条数限制;实际返回可能更少; minimum=1; maximum=10
cursor JSON body string 可选或条件必填 — 原样传回 next_cursor;不是页码; maxLength=20000; pattern=^(?![0-9]+$)[\s\S]+$

条件必填规则(required 表示必须提供的字段,anyOf 至少满足一组,oneOf 仅满足一组,allOf 全部满足):

{
  "required": [],
  "anyOf": [
    {
      "required": [
        "url"
      ]
    },
    {
      "required": [
        "id"
      ]
    },
    {
      "required": [
        "bundleId"
      ]
    },
    {
      "required": [
        "cursor"
      ]
    }
  ]
}

请求示例

POST /api/v1/appstore/categorizations
Authorization: Bearer YOUR_API_KEY
Content-Type: application/json

{
  "url": "https://apps.apple.com/us/app/id763692274",
  "id": "763692274"
}

输出字段

字段路径 类型 含义
code string 成功为 ok,失败为公开错误码
message string 请求状态说明
data.result object / null 业务结果;保留实际空值和字段缺失
data.creditsUsed integer 本次实际扣费;空结果与失败不扣费
data.remainingCredits number 结算后的账户积分余额
data.result.id string 记录标识
data.result.country string 本次结果实际使用的商店国家
data.result.items array items:实际公开业务字段,可为空或缺失
data.result.items[].id string 记录标识
data.result.items[].type string type:实际公开业务字段,可为空或缺失
data.result.items[].href string href:实际公开业务字段,可为空或缺失
data.result.items[].attributes object attributes:实际公开业务字段,可为空或缺失
data.result.items[].attributes.name string 显示名称
data.result.items[].attributes.parentId string parentId:实际公开业务字段,可为空或缺失
data.result.items[].attributes.parentName string parentName:实际公开业务字段,可为空或缺失
data.result.items[].attributes.url string 公开资源链接
data.result.count integer 当前响应记录数,不是全部记录总数
data.result.next_cursor string 下一页不透明游标,原样传回
data.result.has_more boolean 是否报告还有后续结果,还需可用游标

真实响应示例

采集时间:2026-11-25T10:24:40Z。以下为真实公开响应的结构节选,仅省略 data.creditsUsed 和 data.remainingCredits,价格与余额以实际请求为准。

{
  "code": "ok",
  "message": "ok",
  "data": {
    "result": {
      "id": "763692274",
      "country": "us",
      "items": [
        {
          "id": "6016",
          "type": "genres",
          "href": "/v1/catalog/us/genres/6016",
          "attributes": {
            "name": "Entertainment",
            "parentId": "36",
            "parentName": "App Store",
            "url": "https://itunes.apple.com/us/genre/id6016"
          }
        },
        {
          "id": "tg.3183",
          "type": "tags",
          "href": "/v1/catalog/us/tags/tg.3183",
          "attributes": {
            "name": "Open World"
          }
        },
        {
          "id": "tg.3456",
          "type": "tags",
          "href": "/v1/catalog/us/tags/tg.3456",
          "attributes": {
            "name": "Open World Driving"
          }
        },
        {
          "id": "tg.3583",
          "type": "tags",
          "href": "/v1/catalog/us/tags/tg.3583",
          "attributes": {
            "name": "Voice Acting"
          }
        },
        {
          "id": "tg.3214",
          "type": "tags",
          "href": "/v1/catalog/us/tags/tg.3214",
          "attributes": {
            "name": "Third-Person"
          }
        },
        {
          "id": "tg.3415",
          "type": "tags",
          "href": "/v1/catalog/us/tags/tg.3415",
          "attributes": {
            "name": "Achievements"
          }
        }
      ],
      "count": 6,
      "next_cursor": null,
      "has_more": false
    }
  }
}

分页与计费

每次仅请求一页。保留资源参数,将 next_cursor 原样传入 cursor。has_more=false 或没有有效新游标时停止。

…

未指定国家且链接未携带国家时默认 us。支持关系游标的接口可仅传 cursor,国家和资源信息从游标恢复。

仅有有效业务数据的成功请求按数据库当前配置扣费。空结果与失败不扣费,每页独立结算。可选字段为空不代表整条结果为空;缺失、null、空字符串、空数组按实际返回。示例中的媒体链接和游标可能过期,正式使用时重新查询。

状态码

HTTP 含义
200 成功,结果可能为空
400 参数或 JSON 不合法
401 鉴权缺失或无效
402 积分不足
429 请求过于频繁
502 请求未能完成
503 接口或计费尚未配置