API 文档

App Store 应用套装 API

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

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

请求与输入参数

同步 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/app-bundles
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.artistName string artistName:实际公开业务字段,可为空或缺失
data.result.items[].attributes.artwork object artwork:实际公开业务字段,可为空或缺失
data.result.items[].attributes.artwork.bgColor string bgColor:实际公开业务字段,可为空或缺失
data.result.items[].attributes.artwork.height integer height:实际公开业务字段,可为空或缺失
data.result.items[].attributes.artwork.textColor1 string textColor1:实际公开业务字段,可为空或缺失
data.result.items[].attributes.artwork.textColor2 string textColor2:实际公开业务字段,可为空或缺失
data.result.items[].attributes.artwork.textColor3 string textColor3:实际公开业务字段,可为空或缺失
data.result.items[].attributes.artwork.textColor4 string textColor4:实际公开业务字段,可为空或缺失
data.result.items[].attributes.artwork.url string 公开资源链接
data.result.items[].attributes.artwork.width integer width:实际公开业务字段,可为空或缺失
data.result.items[].attributes.contentRatingsBySystem object contentRatingsBySystem:实际公开业务字段,可为空或缺失
data.result.items[].attributes.contentRatingsBySystem.appsApple object appsApple:实际公开业务字段,可为空或缺失
data.result.items[].attributes.contentRatingsBySystem.appsApple.advisories array advisories:实际公开业务字段,可为空或缺失
data.result.items[].attributes.contentRatingsBySystem.appsApple.name string 显示名称
data.result.items[].attributes.contentRatingsBySystem.appsApple.rank integer rank:实际公开业务字段,可为空或缺失
data.result.items[].attributes.contentRatingsBySystem.appsApple.value integer value:实际公开业务字段,可为空或缺失
data.result.items[].attributes.deviceFamilies array deviceFamilies:实际公开业务字段,可为空或缺失
data.result.items[].attributes.editorialArtwork object editorialArtwork:实际公开业务字段,可为空或缺失
data.result.items[].attributes.editorialArtwork.originalFlowcaseBrick object originalFlowcaseBrick:实际公开业务字段,可为空或缺失
data.result.items[].attributes.editorialArtwork.originalFlowcaseBrick.bgColor string bgColor:实际公开业务字段,可为空或缺失
data.result.items[].attributes.editorialArtwork.originalFlowcaseBrick.height integer height:实际公开业务字段,可为空或缺失
data.result.items[].attributes.editorialArtwork.originalFlowcaseBrick.textColor1 string textColor1:实际公开业务字段,可为空或缺失
data.result.items[].attributes.editorialArtwork.originalFlowcaseBrick.textColor2 string textColor2:实际公开业务字段,可为空或缺失
data.result.items[].attributes.editorialArtwork.originalFlowcaseBrick.textColor3 string textColor3:实际公开业务字段,可为空或缺失
data.result.items[].attributes.editorialArtwork.originalFlowcaseBrick.textColor4 string textColor4:实际公开业务字段,可为空或缺失
data.result.items[].attributes.editorialArtwork.originalFlowcaseBrick.url string 公开资源链接
data.result.items[].attributes.editorialArtwork.originalFlowcaseBrick.width integer width:实际公开业务字段,可为空或缺失
data.result.items[].attributes.genreDisplayName string genreDisplayName:实际公开业务字段,可为空或缺失
data.result.items[].attributes.name string 显示名称
data.result.items[].attributes.offers array offers:实际公开业务字段,可为空或缺失
data.result.items[].attributes.offers[].assets array assets:实际公开业务字段,可为空或缺失
data.result.items[].attributes.offers[].assets[].flavor string flavor:实际公开业务字段,可为空或缺失
data.result.items[].attributes.offers[].assets[].size integer size:实际公开业务字段,可为空或缺失
data.result.items[].attributes.offers[].buyParams string buyParams:实际公开业务字段,可为空或缺失
data.result.items[].attributes.offers[].currencyCode string currencyCode:实际公开业务字段,可为空或缺失
data.result.items[].attributes.offers[].price number 应用商店价格,不是 API 积分费用
data.result.items[].attributes.offers[].priceFormatted string priceFormatted:实际公开业务字段,可为空或缺失
data.result.items[].attributes.offers[].priceString string priceString:实际公开业务字段,可为空或缺失
data.result.items[].attributes.offers[].type string type:实际公开业务字段,可为空或缺失
data.result.items[].attributes.regularPriceFormatted string regularPriceFormatted:实际公开业务字段,可为空或缺失
data.result.items[].attributes.reviewsRestricted boolean reviewsRestricted:实际公开业务字段,可为空或缺失
data.result.items[].attributes.unionDeviceFamilies array unionDeviceFamilies:实际公开业务字段,可为空或缺失
data.result.items[].attributes.url string 公开资源链接
data.result.items[].attributes.userRating object userRating:实际公开业务字段,可为空或缺失
data.result.items[].attributes.userRating.ariaLabelForRatings string ariaLabelForRatings:实际公开业务字段,可为空或缺失
data.result.items[].attributes.userRating.ratingCount integer ratingCount:实际公开业务字段,可为空或缺失
data.result.items[].attributes.userRating.ratingCountList array ratingCountList:实际公开业务字段,可为空或缺失
data.result.items[].attributes.userRating.value number value:实际公开业务字段,可为空或缺失
data.result.items[].relationships object relationships:实际公开业务字段,可为空或缺失
data.result.items[].relationships.developer object developer:实际公开业务字段,可为空或缺失
data.result.items[].relationships.developer.href string href:实际公开业务字段,可为空或缺失
data.result.items[].relationships.developer.data array data:实际公开业务字段,可为空或缺失
data.result.items[].relationships.developer.data[].id string 记录标识
data.result.items[].relationships.developer.data[].type string type:实际公开业务字段,可为空或缺失
data.result.items[].relationships.developer.data[].href string href:实际公开业务字段,可为空或缺失
data.result.items[].relationships.genres object genres:实际公开业务字段,可为空或缺失
data.result.items[].relationships.genres.href string href:实际公开业务字段,可为空或缺失
data.result.items[].relationships.genres.data array data:实际公开业务字段,可为空或缺失
data.result.items[].relationships.genres.data[].id string 记录标识
data.result.items[].relationships.genres.data[].type string type:实际公开业务字段,可为空或缺失
data.result.items[].relationships.genres.data[].href string href:实际公开业务字段,可为空或缺失
data.result.items[].relationships.genres.data[].attributes object attributes:实际公开业务字段,可为空或缺失
data.result.items[].relationships.genres.data[].attributes.name string 显示名称
data.result.items[].relationships.genres.data[].attributes.parentId string parentId:实际公开业务字段,可为空或缺失
data.result.items[].relationships.genres.data[].attributes.parentName string parentName:实际公开业务字段,可为空或缺失
data.result.items[].relationships.genres.data[].attributes.url string 公开资源链接
data.result.count integer 当前响应记录数,不是全部记录总数
data.result.next_cursor string 下一页不透明游标,原样传回
data.result.has_more boolean 是否报告还有后续结果,还需可用游标

真实响应示例

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

{
  "code": "ok",
  "message": "ok",
  "data": {
    "result": {
      "id": "763692274",
      "country": "us",
      "items": [
        {
          "id": "939434515",
          "type": "app-bundles",
          "href": "/v1/catalog/us/app-bundles/939434515",
          "attributes": {
            "artistName": "Rockstar Games",
            "artwork": {
              "bgColor": "000000",
              "height": 1024,
              "textColor1": "ffffff",
              "textColor2": "d7d7d7",
              "textColor3": "cbcbcb",
              "textColor4": "acacac",
              "url": "https://is1-ssl.mzstatic.com/image/thumb/Purple211/v4/fb/c4/24/fbc4245d-5562-3532-81e5-f0de3b8af0f4/mzabit.13718342149587726074.png/{w}x{h}{c}.{f}",
              "width": 1024
            },
            "contentRatingsBySystem": {
              "appsApple": {
                "advisories": [
                  "Frequent/Intense Alcohol, Tobacco, or Drug Use or References",
                  "Frequent/Intense Cartoon or Fantasy Violence",
                  "Frequent/Intense Mature/Suggestive Themes",
                  "Frequent/Intense Profanity or Crude Humor",
                  "Frequent/Intense Realistic Violence",
                  "Frequent/Intense Sexual Content or Nudity",
                  "Frequent/Intense Simulated Gambling"
                ],
                "name": "17+",
                "rank": 4,
                "value": 600
              }
            },
            "deviceFamilies": [
              "iphone",
              "ipad",
              "ipod"
            ],
            "editorialArtwork": {
              "originalFlowcaseBrick": {
                "bgColor": "000000",
                "height": 600,
                "textColor1": "e6e6e6",
                "textColor2": "c2c2c2",
                "textColor3": "b8b8b8",
                "textColor4": "9b9b9b",
                "url": "https://is1-ssl.mzstatic.com/image/thumb/Features1/v4/8e/18/f3/8e18f37c-9fff-9e0e-e11e-37878d1ebcfe/mza_3135067008003410006.png/{w}x{h}{c}.{f}",
                "width": 3200
              }
            },
            "genreDisplayName": "Action",
            "name": "Grand Theft Auto: The Trilogy",
            "offers": [
              {
                "assets": [
                  {
                    "flavor": "iosSoftware",
                    "size": 3355410912
                  }
                ],
                "buyParams": "productType=ASB&price=11990&salableAdamId=939434515&pricingParameters=STDQ&pg=default&playlistId=939434515",
                "currencyCode": "USD",
                "price": 11.99,
                "priceFormatted": "$11.99",
                "priceString": "11.99",
                "type": "buy"
              }
            ],
            "regularPriceFormatted": "$16.97",
            "reviewsRestricted": false,
            "unionDeviceFamilies": [
              "iphone",
              "ipad",
              "ipod"
            ],
            "url": "https://apps.apple.com/us/app-bundle/grand-theft-auto-the-trilogy/id939434515",
            "userRating": {
              "ariaLabelForRatings": "4.4 stars",
              "ratingCount": 1329,
              "ratingCountList": [
                121,
                38,
                37,
                64,
                1069
              ],
              "value": 4.4
            }
          },
          "relationships": {
            "developer": {
              "href": "/v1/catalog/us/app-bundles/939434515/developer",
              "data": [
                {
                  "id": "330049731",
                  "type": "developers",
                  "href": "/v1/catalog/us/developers/330049731"
                }
              ]
            },
            "genres": {
              "href": "/v1/catalog/us/app-bundles/939434515/genres",
              "data": [
                {
                  "id": "6014",
                  "type": "genres",
                  "href": "/v1/catalog/us/genres/6014",
                  "attributes": {
                    "name": "Games",
                    "parentId": "36",
                    "parentName": "App Store",
                    "url": "https://itunes.apple.com/us/genre/id6014"
                  }
                },
                {
                  "id": "7002",
                  "type": "genres",
                  "href": "/v1/catalog/us/genres/7002",
                  "attributes": {
                    "name": "Adventure",
                    "parentId": "6014",
                    "parentName": "Games",
                    "url": "https://itunes.apple.com/us/genre/id7002"
                  }
                },
                {
                  "id": "7001",
                  "type": "genres",
                  "href": "/v1/catalog/us/genres/7001",
                  "attributes": {
                    "name": "Action",
                    "parentId": "6014",
                    "parentName": "Games",
                    "url": "https://itunes.apple.com/us/genre/id7001"
                  }
                },
                {
                  "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"
                  }
                }
              ]
            }
          }
        }
      ],
      "count": 1,
      "next_cursor": null,
      "has_more": false
    }
  }
}

分页与计费

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

…

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

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

状态码

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