apple_app_store 模板用于获取 Apple App Store 网站信息。
输入参数
Apple App Store 模板可用的请求参数:| 参数 | 类型 | 必需 | 描述 |
|---|---|---|---|
target | string | ✅ | 目标类型必须设置为 apple_app_store。 |
url | string | ✅ | Apple App Store URL。 |
headless | string | html 值启用 JavaScript 渲染。了解更多。png 值启用截图响应。了解更多。 | |
geo | string | 设置提交查询时使用的国家/地区。 | |
device_type | string | 指定设备类型和浏览器。了解更多。 | |
xhr | boolean | 设置为 true 以获取 XHR 和 fetch 请求列表。了解更多。默认值为 false。 | |
markdown | boolean | 设置为 true 以接收 Markdown 响应。了解更多。默认值为 false。 |
请求示例
# 将 'TOKEN VALUE' 更新为您的 API 密钥
curl --request 'POST' \
--url 'https://data.decodo.com/v1/scrape' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer TOKEN VALUE' \
--header 'Content-Type: application/json' \
--data '
{
"target": "apple_app_store",
"url": "https://apps.apple.com/us/iphone/games",
"headless": "html"
}
'
const scrape = async() => {
const response = await fetch("https://data.decodo.com/v1/scrape", {
method: "POST",
body: JSON.stringify({
"target": "apple_app_store",
"url": "https://apps.apple.com/us/iphone/games",
"headless": "html"
}),
headers: {
"Content-Type": "application/json",
"Authorization": "Bearer TOKEN VALUE" // 更新为您的 API 密钥
},
}).catch(error => console.log(error));
console.log(await response.json())
}
scrape()
import requests
url = "https://data.decodo.com/v1/scrape"
payload = {
"target": "apple_app_store",
"url": "https://apps.apple.com/us/iphone/games",
"headless": "html"
}
headers = {
"accept": "application/json",
"content-type": "application/json",
"authorization": "Bearer TOKEN VALUE" # 更新为您的 API 密钥
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)
输出
响应示例
{
"results": [
{
"content": "<!DOCTYPE html><html dir=\"ltr\" lang=\"en-US\"><head>\n <meta charset=\"utf-8\">\n <meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\">\n <meta name=\"viewport\" content=\"width=device-width,initial-scale=1\">\n <meta name=\"applicable-device\" content=\"pc,mobile\">\n <meta name=\"referrer\" content=\"strict-origin\">\n\n <link rel=\"apple-touch-icon\" sizes=\"180x180\" href=\"/assets/favicon/favicon-180.png\">\n\n <link rel=\"icon\" type=...",
"headers": {
"alt-svc": "h3=\":443\"; ma=93600",
"cache-control": "public, max-age=900",
"content-encoding": "br",
"content-security-policy": "upgrade-insecure-requests; default-src 'none'; img-src 'self' https://*.apple.com https://*.mzstatic.com data:; font-src 'self' https://*.apple.com; style-src 'self' https://*.apple.com 'unsafe-inline'; script-src 'self' https://*.apple.com 'sha256-MS6/3FCg4WjP9gwgaBGwLpRCY6fZBgwmhVCdrPrNf3E=' 'sha256-tQjf8gvb2ROOMapIxFvFAYBeUJ0v1HCbOcSmDNXGtDo=' 'sha256-p7PoC97FO+Lu90RNjGWxhbm13yALSR4xzV8vaDhaQBo=' 'sha256-+5XkZFazzJo8n0iOP4ti/cLCMUudTf//Mzkb7xNPXIc='; connect-src 'self' https://*.apple.com https://*.mzstatic.com; media-src 'self' https://*.apple.com blob:; child-src 'self' https://*.apple.com; frame-src 'self' https://*.apple.com itms-appss: macappstore:; worker-src blob:; frame-ancestors 'none'; block-all-mixed-content; report-uri /api/csp-report",
"content-type": "text/html",
"date": "Mon, 18 May 2026 08:40:42 GMT",
"etag": "\"/z1yoPBIhxydPgoTMePFNLKy2eBE1P+UCgqrMgGzAWc=\"",
"link": "<https://is1-ssl.mzstatic.com>; rel=preconnect",
"server": "daiquiri/5",
"strict-transport-security": "max-age=31536000; includeSubDomains",
"vary": "accept-encoding",
"x-apple-jingle-correlation-key": "BOXGRK73MOYJJ42O255GOIV66A",
"x-cache": "TCP_REFRESH_MISS from a23-201-106-239.deploy.akamaitechnologies.com (AkamaiGHost/22.5.1.1-43e736c21d96cdd0e169f8df9ce9e259) (S)",
"x-cache-remote": "TCP_REFRESH_MISS from a23-221-23-68.deploy.akamaitechnologies.com (AkamaiGHost/22.5.0.1-8a6cb9ae5b7c562eeba48faa6e795939) (S)",
"x-content-type-options": "nosniff",
"x-daiquiri-debug-worker-pid": "275673, 1871039",
"x-daiquiri-instance": "daiquiri:10001:daiquiri-cluster-6c6d765569-4r5cv:7987:26RELEASE90:daiquiri-amp-kubernetes-shared-cluster-ak8s-prod-pv4-amp-web-app-store-prod, daiquiri:10001:daiquiri-all-shared-ext-68955b44cf-c6w9v:7987:26RELEASE90:daiquiri-amp-kubernetes-shared-ext-ak8s-prod-pv4-amp-daiquiri-ingress-prod",
"x-frame-options": "DENY",
"x-original-content-length": "3982002",
"x-responding-instance": "amp-web-app-store-server:amp-web-app-store-server-main-6bd8cd9c9c-7l2q2:4200:2618.5.0-external",
"x-xss-protection": "1; mode=block"
},
"cookies": [
{
"comment": "",
"domain": ".apple.com",
"expires": -1,
"httponly": "",
"key": "geo",
"max-age": "",
"path": "/",
"samesite": "",
"secure": false,
"value": "US",
"version": ""
}
],
"status_code": 200,
"task_id": "7462059533167256577",
"created_at": "2026-05-18 08:40:31",
"updated_at": "2026-05-18 08:40:50",
"type": "raw"
}
]
}
支持
需要帮助或只是想打个招呼?我们的支持团队全天候为您服务。
您也可以随时通过电子邮件 support@decodo.com 联系我们。
您也可以随时通过电子邮件 support@decodo.com 联系我们。
反馈
找不到您要找的内容?请求一篇文章!
有反馈意见?分享您对我们如何改进的想法。
有反馈意见?分享您对我们如何改进的想法。