Steam限时免费游戏
当前Steam限时免费促销游戏(原价→0元)
GET
https://api.tinyaii.cn/v1/steam/free
请求参数
该接口无需请求参数,直接调用即可返回数据。
返回字段
| 字段 | 类型 | 说明 |
|---|---|---|
| code | int | 状态码 |
| message | string | 提示信息 |
| data.total_count | int | Steam搜索结果总数 |
| data.count | int | 本页返回数量 |
| data.games | array | 游戏列表 |
| data.games[].appid | string | 游戏AppID |
| data.games[].name | string | 游戏名称 |
| data.games[].type | string | 类型(限时免费) |
| data.games[].discount_percent | string | 折扣百分比 |
| data.games[].original_price | string | 原价 |
| data.games[].final_price | string | 现价 |
| data.games[].header_image | string | 头图URL |
| data.games[].description | string | 简短描述 |
| data.games[].developers | array | 开发商 |
| data.games[].genres | array | 游戏类型 |
| data.games[].expires_at | string | 促销截止时间(UTC) |
| data.games[].store_url | string | 商店链接 |
返回示例
{
"code": 200,
"data": {
"count": 0,
"games": []
},
"message": "success"
}
调用示例
curl "https://api.tinyaii.cn/v1/steam/free" \
-H "Authorization: Bearer YOUR_API_KEY"const res = await fetch("https://api.tinyaii.cn/v1/steam/free", {
headers: { "Authorization": "Bearer YOUR_API_KEY" },
});
console.log(await res.json());import requests
resp = requests.get(
"https://api.tinyaii.cn/v1/steam/free",
params=None,
headers={"Authorization": "Bearer YOUR_API_KEY"},
timeout=10,
)
print(resp.json())把 YOUR_API_KEY 换成你的密钥即可直接运行。密钥只保存在你自己的设备上。