App Store 推广内购 API
App Store 推广内购 API:输入参数、完整枚举、输出字段和真实响应示例。
打开产品页并测试
POST https://api.goanyapi.com/api/v1/appstore/merchandised-in-apps请求与输入参数
同步 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 | 可选或条件必填 | 20 | 本接口返回条数限制;实际返回可能更少; minimum=1; maximum=20 |
| 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/merchandised-in-apps
Authorization: Bearer YOUR_API_KEY
Content-Type: application/json
{
"url": "https://apps.apple.com/us/app/id525818839",
"id": "525818839"
}输出字段
| 字段路径 | 类型 | 含义 |
|---|---|---|
| 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.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.description | object | description:实际公开业务字段,可为空或缺失 |
| data.result.items[].attributes.description.standard | string | standard:实际公开业务字段,可为空或缺失 |
| data.result.items[].attributes.editorialArtwork | object | editorialArtwork:实际公开业务字段,可为空或缺失 |
| data.result.items[].attributes.icuLocale | string | icuLocale:实际公开业务字段,可为空或缺失 |
| data.result.items[].attributes.isFamilyShareable | boolean | isFamilyShareable:实际公开业务字段,可为空或缺失 |
| data.result.items[].attributes.isMerchandisedEnabled | boolean | isMerchandisedEnabled:实际公开业务字段,可为空或缺失 |
| data.result.items[].attributes.isMerchandisedVisibleByDefault | boolean | isMerchandisedVisibleByDefault:实际公开业务字段,可为空或缺失 |
| data.result.items[].attributes.isSubscription | boolean | isSubscription:实际公开业务字段,可为空或缺失 |
| data.result.items[].attributes.multiseatPricingDisabled | boolean | multiseatPricingDisabled:实际公开业务字段,可为空或缺失 |
| data.result.items[].attributes.name | string | 显示名称 |
| data.result.items[].attributes.offerName | string | offerName:实际公开业务字段,可为空或缺失 |
| data.result.items[].attributes.offers | array | offers:实际公开业务字段,可为空或缺失 |
| data.result.items[].attributes.offers[].assets | array | assets:实际公开业务字段,可为空或缺失 |
| 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.releaseDate | string | releaseDate:实际公开业务字段,可为空或缺失 |
| data.result.items[].attributes.url | string | 公开资源链接 |
| data.result.items[].name | string | 显示名称 |
| data.result.items[].artwork | object | artwork:实际公开业务字段,可为空或缺失 |
| data.result.items[].artwork.bgColor | string | bgColor:实际公开业务字段,可为空或缺失 |
| data.result.items[].artwork.height | integer | height:实际公开业务字段,可为空或缺失 |
| data.result.items[].artwork.textColor1 | string | textColor1:实际公开业务字段,可为空或缺失 |
| data.result.items[].artwork.textColor2 | string | textColor2:实际公开业务字段,可为空或缺失 |
| data.result.items[].artwork.textColor3 | string | textColor3:实际公开业务字段,可为空或缺失 |
| data.result.items[].artwork.textColor4 | string | textColor4:实际公开业务字段,可为空或缺失 |
| data.result.items[].artwork.url | string | 公开资源链接 |
| data.result.items[].artwork.width | integer | width:实际公开业务字段,可为空或缺失 |
| data.result.count | integer | 当前响应记录数,不是全部记录总数 |
| data.result.next_cursor | string | 下一页不透明游标,原样传回 |
| data.result.has_more | boolean | 是否报告还有后续结果,还需可用游标 |
真实响应示例
采集时间:2026-11-25T10:24:38Z。以下为真实公开响应的结构节选,仅省略 data.creditsUsed 和 data.remainingCredits,价格与余额以实际请求为准。
{
"code": "ok",
"message": "ok",
"data": {
"result": {
"id": "525818839",
"country": "us",
"items": [
{
"id": "6762608220",
"type": "in-apps",
"href": "/v1/catalog/us/in-apps/6762608220",
"attributes": {
"artwork": {
"bgColor": "005d00",
"height": 1024,
"textColor1": "a8f167",
"textColor2": "beeb83",
"textColor3": "86d453",
"textColor4": "98ce69",
"url": "https://is1-ssl.mzstatic.com/image/thumb/PurpleSource221/v4/73/ca/c3/73cac31b-de60-6066-4cc8-05f972c1f16d/IAP_AppleStore_Xenolith.png/{w}x{h}{c}.{f}",
"width": 1024
},
"description": {
"standard": "Ancient and utterly alien crystal."
},
"editorialArtwork": {},
"icuLocale": "en_US@currency=USD",
"isFamilyShareable": false,
"isMerchandisedEnabled": true,
"isMerchandisedVisibleByDefault": true,
"isSubscription": false,
"multiseatPricingDisabled": false,
"name": "Xenolith Expansion Pack",
"offerName": "xenolith_type",
"offers": [
{
"assets": [],
"buyParams": "productType=A&price=3990&salableAdamId=6762608220&pricingParameters=STDQ&pg=default&offerName=xenolith_type&appAdamId=525818839",
"currencyCode": "USD",
"price": 3.99,
"priceFormatted": "$3.99",
"priceString": "3.99",
"type": "buy"
}
],
"releaseDate": "2009-06-17",
"url": "https://apps.apple.com/us/app/xenolith-expansion-pack/id525818839?offerName=xenolith_type"
},
"name": "Xenolith Expansion Pack",
"artwork": {
"bgColor": "005d00",
"height": 1024,
"textColor1": "a8f167",
"textColor2": "beeb83",
"textColor3": "86d453",
"textColor4": "98ce69",
"url": "https://is1-ssl.mzstatic.com/image/thumb/PurpleSource221/v4/73/ca/c3/73cac31b-de60-6066-4cc8-05f972c1f16d/IAP_AppleStore_Xenolith.png/{w}x{h}{c}.{f}",
"width": 1024
}
},
{
"id": "1538280564",
"type": "in-apps",
"href": "/v1/catalog/us/in-apps/1538280564",
"attributes": {
"artwork": {
"bgColor": "1f4983",
"height": 1024,
"textColor1": "dce9f2",
"textColor2": "a8c8e8",
"textColor3": "b6c9dc",
"textColor4": "8caed3",
"url": "https://is1-ssl.mzstatic.com/image/thumb/Purple114/v4/64/f0/2b/64f02b1c-6abb-defd-dd3d-b07742add485/pr_source.png/{w}x{h}{c}.{f}",
"width": 1024
},
"description": {
"standard": "Can you save the world?"
},
"editorialArtwork": {},
"icuLocale": "en_US@currency=USD",
"isFamilyShareable": true,
"isMerchandisedEnabled": true,
"isMerchandisedVisibleByDefault": true,
"isSubscription": false,
"multiseatPricingDisabled": false,
"name": "Cure Expansion",
"offerName": "cure_expansion",
"offers": [
{
"assets": [],
"buyParams": "productType=A&price=3990&salableAdamId=1538280564&pricingParameters=STDQ&pg=default&offerName=cure_expansion&appAdamId=525818839",
"currencyCode": "USD",
"price": 3.99,
"priceFormatted": "$3.99",
"priceString": "3.99",
"type": "buy"
}
],
"releaseDate": "2009-06-17",
"url": "https://apps.apple.com/us/app/cure-expansion/id525818839?offerName=cure_expansion"
},
"name": "Cure Expansion",
"artwork": {
"bgColor": "1f4983",
"height": 1024,
"textColor1": "dce9f2",
"textColor2": "a8c8e8",
"textColor3": "b6c9dc",
"textColor4": "8caed3",
"url": "https://is1-ssl.mzstatic.com/image/thumb/Purple114/v4/64/f0/2b/64f02b1c-6abb-defd-dd3d-b07742add485/pr_source.png/{w}x{h}{c}.{f}",
"width": 1024
}
},
{
"id": "1156460952",
"type": "in-apps",
"href": "/v1/catalog/us/in-apps/1156460952",
"attributes": {
"artwork": {
"bgColor": "040002",
"height": 1024,
"textColor1": "dcd5ea",
"textColor2": "c3afd5",
"textColor3": "b0aabc",
"textColor4": "9d8cab",
"url": "https://is1-ssl.mzstatic.com/image/thumb/Purple118/v4/b4/45/ef/b445ef3c-4154-f157-e2a3-fd536db41286/pr_source.png/{w}x{h}{c}.{f}",
"width": 1024
},
"description": {
"standard": "Enslave humanity with a fatal vampiric strain"
},
"editorialArtwork": {},
"icuLocale": "en_US@currency=USD",
"isFamilyShareable": true,
"isMerchandisedEnabled": true,
"isMerchandisedVisibleByDefault": true,
"isSubscription": false,
"multiseatPricingDisabled": false,
"name": "Shadow Plague Expansion Pack",
"offerName": "vampire",
"offers": [
{
"assets": [],
"buyParams": "productType=A&price=1990&salableAdamId=1156460952&pricingParameters=STDQ&pg=default&offerName=vampire&appAdamId=525818839",
"currencyCode": "USD",
"price": 1.99,
"priceFormatted": "$1.99",
"priceString": "1.99",
"type": "buy"
}
],
"releaseDate": "2009-06-17",
"url": "https://apps.apple.com/us/app/shadow-plague-expansion-pack/id525818839?offerName=vampire"
},
"name": "Shadow Plague Expansion Pack",
"artwork": {
"bgColor": "040002",
"height": 1024,
"textColor1": "dcd5ea",
"textColor2": "c3afd5",
"textColor3": "b0aabc",
"textColor4": "9d8cab",
"url": "https://is1-ssl.mzstatic.com/image/thumb/Purple118/v4/b4/45/ef/b445ef3c-4154-f157-e2a3-fd536db41286/pr_source.png/{w}x{h}{c}.{f}",
"width": 1024
}
},
{
"id": "594564496",
"type": "in-apps",
"href": "/v1/catalog/us/in-apps/594564496",
"attributes": {
"artwork": {
"bgColor": "0a0000",
"height": 1024,
"textColor1": "f0e3e3",
"textColor2": "d2b2b9",
"textColor3": "c2b5b5",
"textColor4": "aa8f94",
"url": "https://is1-ssl.mzstatic.com/image/thumb/Purple128/v4/2c/28/8f/2c288fbb-0b53-0a17-d36f-875766efc502/pr_source.png/{w}x{h}{c}.{f}",
"width": 1024
},
"description": {
"standard": "Ravage the world with a zombie outbreak"
},
"editorialArtwork": {},
"icuLocale": "en_US@currency=USD",
"isFamilyShareable": true,
"isMerchandisedEnabled": true,
"isMerchandisedVisibleByDefault": true,
"isSubscription": false,
"multiseatPricingDisabled": false,
"name": "Necroa Virus Expansion Pack",
"offerName": "zombie",
"offers": [
{
"assets": [],
"buyParams": "productType=A&price=1990&salableAdamId=594564496&pricingParameters=STDQ&pg=default&offerName=zombie&appAdamId=525818839",
"currencyCode": "USD",
"price": 1.99,
"priceFormatted": "$1.99",
"priceString": "1.99",
"type": "buy"
}
],
"releaseDate": "2009-06-17",
"url": "https://apps.apple.com/us/app/necroa-virus-expansion-pack/id525818839?offerName=zombie"
},
"name": "Necroa Virus Expansion Pack",
"artwork": {
"bgColor": "0a0000",
"height": 1024,
"textColor1": "f0e3e3",
"textColor2": "d2b2b9",
"textColor3": "c2b5b5",
"textColor4": "aa8f94",
"url": "https://is1-ssl.mzstatic.com/image/thumb/Purple128/v4/2c/28/8f/2c288fbb-0b53-0a17-d36f-875766efc502/pr_source.png/{w}x{h}{c}.{f}",
"width": 1024
}
},
{
"id": "896742045",
"type": "in-apps",
"href": "/v1/catalog/us/in-apps/896742045",
"attributes": {
"artwork": {
"bgColor": "040300",
"height": 1024,
"textColor1": "f1f1f0",
"textColor2": "ced1d7",
"textColor3": "c2c2c0",
"textColor4": "a6a8ac",
"url": "https://is1-ssl.mzstatic.com/image/thumb/Purple128/v4/fd/4d/7d/fd4d7dcf-369d-899f-e658-a579b29ca707/pr_source.png/{w}x{h}{c}.{f}",
"width": 1024
},
"description": {
"standard": "Escape the lab. Build the planet of the apes"
},
"editorialArtwork": {},
"icuLocale": "en_US@currency=USD",
"isFamilyShareable": true,
"isMerchandisedEnabled": true,
"isMerchandisedVisibleByDefault": true,
"isSubscription": false,
"multiseatPricingDisabled": false,
"name": "Simian Flu Expansion Pack",
"offerName": "simian_flu",
"offers": [
{
"assets": [],
"buyParams": "productType=A&price=1990&salableAdamId=896742045&pricingParameters=STDQ&pg=default&offerName=simian_flu&appAdamId=525818839",
"currencyCode": "USD",
"price": 1.99,
"priceFormatted": "$1.99",
"priceString": "1.99",
"type": "buy"
}
],
"releaseDate": "2009-06-17",
"url": "https://apps.apple.com/us/app/simian-flu-expansion-pack/id525818839?offerName=simian_flu"
},
"name": "Simian Flu Expansion Pack",
"artwork": {
"bgColor": "040300",
"height": 1024,
"textColor1": "f1f1f0",
"textColor2": "ced1d7",
"textColor3": "c2c2c0",
"textColor4": "a6a8ac",
"url": "https://is1-ssl.mzstatic.com/image/thumb/Purple128/v4/fd/4d/7d/fd4d7dcf-369d-899f-e658-a579b29ca707/pr_source.png/{w}x{h}{c}.{f}",
"width": 1024
}
},
{
"id": "551017034",
"type": "in-apps",
"href": "/v1/catalog/us/in-apps/551017034",
"attributes": {
"artwork": {
"bgColor": "030100",
"height": 1024,
"textColor1": "febc2e",
"textColor2": "f6a772",
"textColor3": "cb9724",
"textColor4": "c5865b",
"url": "https://is1-ssl.mzstatic.com/image/thumb/Purple118/v4/81/13/58/8113585c-38f8-5be3-5b57-24f9d32ef599/pr_source.png/{w}x{h}{c}.{f}",
"width": 1024
},
"description": {
"standard": "Unleash a mind controlling brain parasite"
},
"editorialArtwork": {},
"icuLocale": "en_US@currency=USD",
"isFamilyShareable": true,
"isMerchandisedEnabled": true,
"isMerchandisedVisibleByDefault": true,
"isSubscription": false,
"multiseatPricingDisabled": false,
"name": "Neurax Worm Expansion Pack",
"offerName": "neurax",
"offers": [
{
"assets": [],
"buyParams": "productType=A&price=1990&salableAdamId=551017034&pricingParameters=STDQ&pg=default&offerName=neurax&appAdamId=525818839",
"currencyCode": "USD",
"price": 1.99,
"priceFormatted": "$1.99",
"priceString": "1.99",
"type": "buy"
}
],
"releaseDate": "2009-06-17",
"url": "https://apps.apple.com/us/app/neurax-worm-expansion-pack/id525818839?offerName=neurax"
},
"name": "Neurax Worm Expansion Pack",
"artwork": {
"bgColor": "030100",
"height": 1024,
"textColor1": "febc2e",
"textColor2": "f6a772",
"textColor3": "cb9724",
"textColor4": "c5865b",
"url": "https://is1-ssl.mzstatic.com/image/thumb/Purple118/v4/81/13/58/8113585c-38f8-5be3-5b57-24f9d32ef599/pr_source.png/{w}x{h}{c}.{f}",
"width": 1024
}
}
],
"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 | 接口或计费尚未配置 |