{
"count": 2,
"errors": [],
"results": [
{
"appId": "1145360",
"categories": [
"Single-player",
"Steam Achievements",
"Full controller support"
],
"comingSoon": false,
"country": "us",
"currency": "USD",
"developers": [
"Supergiant Games"
],
"discountPercent": 75,
"finalPrice": 6.24,
"genres": [
"Action",
"Indie",
"RPG"
],
"headerImage": "https://shared.akamai.steamstatic.com/store_item_assets/steam/apps/1145360/header.jpg?t=1758127023",
"initialPrice": 24.99,
"isFree": false,
"metacritic": 93,
"name": "Hades",
"platforms": [
"windows",
"mac"
],
"positiveReviews": null,
"publishers": [
"Supergiant Games"
],
"recommendations": 288282,
"releaseDate": "Sep 17, 2020",
"reviewScore": null,
"shortDescription": "Defy the god of the dead as you hack and slash out of the Underworld in this rogue-like dungeon crawler from the creators of Bastion, Transistor, and Pyre.",
"totalReviews": null,
"url": "https://store.steampowered.com/app/1145360/"
},
{
"appId": "1145360",
"categories": [
"Single-player",
"Steam Achievements",
"Full controller support"
],
"comingSoon": false,
"country": "au",
"currency": "AUD",
"developers": [
"Supergiant Games"
],
"discountPercent": 75,
"finalPrice": 9.12,
"genres": [
"Action",
"Indie",
"RPG"
],
"headerImage": "https://shared.akamai.steamstatic.com/store_item_assets/steam/apps/1145360/header.jpg?t=1758127023",
"initialPrice": 36.5,
"isFree": false,
"metacritic": 93,
"name": "Hades",
"platforms": [
"windows",
"mac"
],
"positiveReviews": null,
"publishers": [
"Supergiant Games"
],
"recommendations": 288285,
"releaseDate": "17 Sep, 2020",
"reviewScore": null,
"shortDescription": "Defy the god of the dead as you hack and slash out of the Underworld in this rogue-like dungeon crawler from the creators of Bastion, Transistor, and Pyre.",
"totalReviews": null,
"url": "https://store.steampowered.com/app/1145360/"
}
]
}
curl --location --request GET 'https://zylalabs.com/api/15637/steam+game+price+and+details+api/42257/steam+game+details+prices?games=1145360,570&countries=us,au&maxItems=10' --header 'Authorization: Bearer YOUR_API_KEY'
注册后,每个开发者都会被分配一个个人 API 访问密钥,这是一个唯一的字母和数字组合,用于访问我们的 API 端点。要使用 Steam游戏价格和详情 API 进行身份验证,只需在 Authorization 标头中包含您的 bearer token。
| 标头 | 描述 |
|---|---|
授权
|
必需
应为 Bearer access_key. 订阅后,请查看上方的"您的 API 访问密钥"。
|
根据任意应用 ID 获取 Steam 游戏的各国价格、折扣、发布日期、开发商、类型、平台、Metacritic 评分和评测摘要
它返回所请求游戏的 Steam 商店详情,包括应用 ID、名称、国家和货币、价格和折扣、发售状态、开发商、发行商、类型、平台、Metacritic 评分和评价总数
响应是一个 JSON 对象,包含一个 `count`、一个 `errors` 数组和一个 `results` 数组。每个结果代表一款游戏的商店详情,例如示例中展示的 Hades 条目】【。
`initialPrice` 是折扣前的标价,`finalPrice` 是当前价格,`discountPercent` 是折扣百分比。`currency` 标识货币,`country` 标识商店所在地区。
`comingSoon` 表示游戏是否标记为即将推出,`isFree` 表示游戏是否免费。存在 `releaseDate` 时,结合这些字段区分即将推出的游戏和已发布的游戏
`genres` 列出游戏类型 `categories` 列出单人游戏或手柄支持等功能 `platforms` 标明支持的系统 例如 `windows` 或 `mac`
`metacritic` 包含游戏的 Metacritic 评分(如有)。评论总数(例如 `positiveReviews`)汇总 Steam 评论数据;`null` 值表示结果中的该字段没有值。 .
处理 `results` 之前,请检查顶层的 `errors` 数组和 `count`。单个字段可能为 `null` 或缺失,因此应将可选分数、评论总数及其他详情视为不可用,而不要假定它们有值。
使用结果比较游戏在不同国家/地区条目中的商店信息,按类型或平台构建可搜索目录,或显示某个应用 ID 的发行、功能和评价摘要