# Steam游戏

**请求方式:** GET

**接口地址:** https://api.hk0.cc/api/steamgame

**接口描述:** Steam 游戏综合接口:action=search 关键词搜游戏 / action=app 按 appid 查游戏详情 / action=rank 游戏榜单(热销/即将发售/特惠折扣,type=topselling|coming|specials|all)。不传 action 时按参数自动判断

## 请求参数

| 参数名 | 可传值说明 | 传入位置 | 是否必填 | 示例值 | 默认值 | 参数说明 |
|--------|----------|----------|----------|--------|--------|----------|
| action | string | query | 可选 | — | — | 功能:search 游戏搜索(q) / app 游戏详情(appid) / rank 游戏榜单(type);不传时按参数自动判断 |
| q | string | query | 可选 | — | — | search 模式搜索关键词,必填 |
| appid | string | query | 可选 | — | — | app 模式 Steam 游戏 appid,纯数字,必填 |
| type | string | query | 可选 | — | — | rank 模式榜单类型:topselling 热销榜 / coming 即将发售 / specials 特惠折扣(默认 topselling);all 合并三种 |
| limit | num | query | 可选 | — | — | rank 模式返回条数 1-30,默认 10 |

## 返回示例

```json
GET /api/steamgame?action=rank&type=topselling
```