API 文档

App Store 应用内活动 API

App Store 应用内活动 API:输入参数、完整枚举、输出字段和真实响应示例。

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

请求与输入参数

同步 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 可选或条件必填 15 本接口返回条数限制;实际返回可能更少; minimum=1; maximum=15
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/app-events
Authorization: Bearer YOUR_API_KEY
Content-Type: application/json

{
  "url": "https://apps.apple.com/us/app/id431946152",
  "id": "431946152"
}

输出字段

字段路径 类型 含义
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.badgeKind string badgeKind:实际公开业务字段,可为空或缺失
data.result.items[].attributes.deepLink string deepLink:实际公开业务字段,可为空或缺失
data.result.items[].attributes.description object description:实际公开业务字段,可为空或缺失
data.result.items[].attributes.description.standard string standard:实际公开业务字段,可为空或缺失
data.result.items[].attributes.endDate string endDate:实际公开业务字段,可为空或缺失
data.result.items[].attributes.eventKind string eventKind:实际公开业务字段,可为空或缺失
data.result.items[].attributes.gamesUrl string gamesUrl:实际公开业务字段,可为空或缺失
data.result.items[].attributes.kind string kind:实际公开业务字段,可为空或缺失
data.result.items[].attributes.lockupArtwork object lockupArtwork:实际公开业务字段,可为空或缺失
data.result.items[].attributes.lockupArtwork.bgColor string bgColor:实际公开业务字段,可为空或缺失
data.result.items[].attributes.lockupArtwork.height integer height:实际公开业务字段,可为空或缺失
data.result.items[].attributes.lockupArtwork.textColor1 string textColor1:实际公开业务字段,可为空或缺失
data.result.items[].attributes.lockupArtwork.textColor2 string textColor2:实际公开业务字段,可为空或缺失
data.result.items[].attributes.lockupArtwork.textColor3 string textColor3:实际公开业务字段,可为空或缺失
data.result.items[].attributes.lockupArtwork.textColor4 string textColor4:实际公开业务字段,可为空或缺失
data.result.items[].attributes.lockupArtwork.url string 公开资源链接
data.result.items[].attributes.lockupArtwork.width integer width:实际公开业务字段,可为空或缺失
data.result.items[].attributes.name string 显示名称
data.result.items[].attributes.productArtwork object productArtwork:实际公开业务字段,可为空或缺失
data.result.items[].attributes.productArtwork.bgColor string bgColor:实际公开业务字段,可为空或缺失
data.result.items[].attributes.productArtwork.height integer height:实际公开业务字段,可为空或缺失
data.result.items[].attributes.productArtwork.textColor1 string textColor1:实际公开业务字段,可为空或缺失
data.result.items[].attributes.productArtwork.textColor2 string textColor2:实际公开业务字段,可为空或缺失
data.result.items[].attributes.productArtwork.textColor3 string textColor3:实际公开业务字段,可为空或缺失
data.result.items[].attributes.productArtwork.textColor4 string textColor4:实际公开业务字段,可为空或缺失
data.result.items[].attributes.productArtwork.url string 公开资源链接
data.result.items[].attributes.productArtwork.width integer width:实际公开业务字段,可为空或缺失
data.result.items[].attributes.promotionStartDate string promotionStartDate:实际公开业务字段,可为空或缺失
data.result.items[].attributes.startDate string startDate:实际公开业务字段,可为空或缺失
data.result.items[].attributes.subtitle string subtitle:实际公开业务字段,可为空或缺失
data.result.items[].attributes.url string 公开资源链接
data.result.count integer 当前响应记录数,不是全部记录总数
data.result.next_cursor string 下一页不透明游标,原样传回
data.result.has_more boolean 是否报告还有后续结果,还需可用游标

真实响应示例

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

{
  "code": "ok",
  "message": "ok",
  "data": {
    "result": {
      "id": "431946152",
      "country": "us",
      "items": [
        {
          "id": "6831368967",
          "type": "app-events",
          "href": "/v1/catalog/us/app-events/6831368967",
          "attributes": {
            "badgeKind": "happening",
            "deepLink": "https://www.roblox.com/games/2338325648/NFL-Universe-Football",
            "description": {
              "standard": "The Animeverse season is here! Experience electric anime-style matches, epic abilities, and more."
            },
            "endDate": "2026-11-30T04:00:00Z",
            "eventKind": "specialEvent",
            "gamesUrl": "https://games.apple.com/us/game/431946152?eventid=6831368967",
            "kind": "SPECIAL EVENT",
            "lockupArtwork": {
              "bgColor": "f77c25",
              "height": 1440,
              "textColor1": "0a0410",
              "textColor2": "12240d",
              "textColor3": "391c14",
              "textColor4": "403512",
              "url": "https://is1-ssl.mzstatic.com/image/thumb/jIk562RhuoVC-RczxQnRSw/{w}x{h}{c}.{f}",
              "width": 2560
            },
            "name": "NFL Universe Football",
            "productArtwork": {
              "bgColor": "20619e",
              "height": 1920,
              "textColor1": "fef0dd",
              "textColor2": "e7cfd5",
              "textColor3": "d1d3d1",
              "textColor4": "bfb9ca",
              "url": "https://is1-ssl.mzstatic.com/image/thumb/S6P_S4nBMaKVsK1xuJYWEw/{w}x{h}{c}.{f}",
              "width": 1080
            },
            "promotionStartDate": "2026-11-10T08:00:00Z",
            "startDate": "2026-11-10T08:00:00Z",
            "subtitle": "Join the Animeverse and new Hyperblitz mode!",
            "url": "https://apps.apple.com/us/app/roblox/id431946152?eventid=6831368967"
          }
        },
        {
          "id": "6833727633",
          "type": "app-events",
          "href": "/v1/catalog/us/app-events/6833727633",
          "attributes": {
            "badgeKind": "available",
            "deepLink": "https://www.roblox.com/games/16116270224/Dandys-World",
            "description": {
              "standard": "v1.0 is here featuring the Labs, new characters, a new Card system, and major lore drops."
            },
            "endDate": "2026-12-20T08:00:00Z",
            "eventKind": "majorUpdate",
            "gamesUrl": "https://games.apple.com/us/game/431946152?eventid=6833727633",
            "kind": "MAJOR UPDATE",
            "lockupArtwork": {
              "bgColor": "241c2b",
              "height": 2160,
              "textColor1": "eba857",
              "textColor2": "e1a35f",
              "textColor3": "c38c4e",
              "textColor4": "bb8854",
              "url": "https://is1-ssl.mzstatic.com/image/thumb/P-YxcFCyhYZ0w_29TGv-BA/{w}x{h}{c}.{f}",
              "width": 3840
            },
            "name": "Dandy’s World: 1.0 Release",
            "productArtwork": {
              "bgColor": "2a1e27",
              "height": 3840,
              "textColor1": "eea755",
              "textColor2": "e29e57",
              "textColor3": "c78c4b",
              "textColor4": "bd844d",
              "url": "https://is1-ssl.mzstatic.com/image/thumb/XNE4IsGJ6L32g78wBY7ddA/{w}x{h}{c}.{f}",
              "width": 2160
            },
            "promotionStartDate": "2026-11-20T20:00:00Z",
            "startDate": "2026-11-20T20:00:00Z",
            "subtitle": "Experience the biggest update yet!",
            "url": "https://apps.apple.com/us/app/roblox/id431946152?eventid=6833727633"
          }
        }
      ],
      "count": 2,
      "next_cursor": null,
      "has_more": false
    }
  }
}

分页与计费

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

…

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

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

状态码

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