Steam热销榜
获取Steam当前热销游戏排行榜
GET
https://api.tinyaii.cn/v1/steam/top-sellers
请求参数
| 参数名 | 类型 | 必填 | 说明 | 示例 |
|---|---|---|---|---|
| limit | int | 可选 | 返回数量,1-50,默认10 | — |
返回字段
| 字段 | 类型 | 说明 |
|---|---|---|
| code | int | 状态码 |
| data.count | int | 返回数量 |
| data.games | array | 游戏列表 |
| data.games[].appid | int | 游戏AppID |
| data.games[].name | string | 游戏名称 |
| data.games[].final_price | float | 现价 |
| data.games[].original_price | float | 原价 |
| data.games[].discount_percent | int | 折扣百分比 |
| data.games[].header_image | string | 头图URL |
返回示例
{
"code": 200,
"message": "success",
"data": {
"count": 10,
"games": [
{
"appid": 730,
"name": "Counter-Strike 2",
"final_price": 0.0,
"original_price": 0.0,
"discount_percent": 0,
"header_image": "https://..."
}
]
}
}
调用示例
curl "https://api.tinyaii.cn/v1/steam/top-sellers?limit=1" \
-H "Authorization: Bearer YOUR_API_KEY"const res = await fetch("https://api.tinyaii.cn/v1/steam/top-sellers?limit=1", {
headers: { "Authorization": "Bearer YOUR_API_KEY" },
});
console.log(await res.json());import requests
resp = requests.get(
"https://api.tinyaii.cn/v1/steam/top-sellers",
params={"limit": "1"},
headers={"Authorization": "Bearer YOUR_API_KEY"},
timeout=10,
)
print(resp.json())把 YOUR_API_KEY 换成你的密钥即可直接运行。密钥只保存在你自己的设备上。