# steamDataAPI **Repository Path**: wangdawei0418/steamDataAPI ## Basic Information - **Project Name**: steamDataAPI - **Description**: STEAM数据接口 - **Primary Language**: JavaScript - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 3 - **Forks**: 1 - **Created**: 2018-10-25 - **Last Updated**: 2022-11-24 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # steamDataAPI STEAM数据接口 ## 首页轮播图接口 #### 接口地址:公网:http://101.200.154.196:8080/recommendGame #### 返回格式:json #### 请求方式:get http #### 请求示例:http://101.200.154.196:8080/recommendGame?callback=fn ### 请求参数说明:无 #### 返回参数说明:
名称 类型 说明
name String 游戏名
url String 游戏详情页的URL
gameId int 游戏ID,唯一
isSale Boolean 当前是否在打折
discount Float 折扣率;如0.2则为折扣百分之二十
originPrice Int 游戏原价
price Int 在售价;`在售价 = 游戏原价 * (1 - 折扣率)`; 如isSale为false则在售价等于原价
imgUrl Array 游戏截图URL列表
platform Array 可兼容平台
date Date 发售日期
evaluate Int 口碑;1为“好评如潮”;2为"特别好评";3为"多半好评";4为"褒贬不一";5为"多半差评";6为"差评如潮";7为"无评论
evaluatingCount Int 评测数
label Array 游戏特征标签
## 历史记录接口 #### 接口地址:公网:http://101.200.154.196:8080/history #### 返回格式:json #### 请求方式:get http #### 请求示例:http://101.200.154.196:8080?callback=fn&gameId=123456,234567 ### 请求参数说明: #### gameId:查询游戏的ID #### 返回参数说明:
名称 类型 说明
name String 游戏名
href String 游戏详情页url
### 返回参数示例: ``` [ { "name": "Human: Fall Flat", /* 游戏名 */ "url": "http://store.steampowered.com/app/123456/", /* 游戏详情页链接地址 */ }, { "name": "Arma3", /* 游戏名 */ "url": "http://store.steampowered.com/app/234567/", /* 游戏详情页链接地址 */ } ] ``` ## 新品与热门商品 #### 接口地址:内网:http://192.168.1.180:81 公网:http://49.235.82.222:81/hot1 #### 返回格式:json #### 请求方式:get http #### 请求示例:http://49.235.82.222:81/hot1?callback=xxxxxx #### 请求参数说明:无 #### 返回参数说明:
名称 类型 说明
name String 游戏名
url String 游戏详情页的URL
gameId int 游戏ID,唯一
isSale Boolean 当前是否在打折
discount Float 折扣率;如0.2则为折扣百分之二十
originPrice Int 游戏原价
price Int 在售价;`在售价 = 游戏原价 * (1 - 折扣率)`; 如isSale为false则在售价等于原价
imgUrl Array 游戏截图URL列表
platform Array 可兼容平台
date Date 发售日期(EN);直接将英文展现到页面即可
evaluate Int 口碑(EN);直接将英文展现到页面即可
evaluatingCount Int 评测数
label Array 游戏特征标签
### 返回参数示例: ``` [ { "name": "Euro Truck Simulator 2 - Going East!", /* 游戏名 */ "url": "https://store.steampowered.com/app/227310", /* 游戏详情页链接地址 */ "gameId": 227310, /* 游戏ID */ "isSale": true, /* 当前是否在打折 */ "discount": 0.71, /* 折扣率 */ "originPrice": "48",/* 原价 */ "price": "14", /* 促销价 */ "imgUrl": [ "https://cdn.steamstatic.com.8686c.com/steam/apps/227310/capsule_616x353.jpg?t=1508922015", "https://cdn.steamstatic.com.8686c.com/steam/apps/227310/ss_8687fbe09735cdca182cf75323fbbeeaf786d134.600x338.jpg?t=1508922015", "https://cdn.steamstatic.com.8686c.com/steam/apps/227310/ss_00fcd4d26c836646153402aa31a69a9642bf29c0.600x338.jpg?t=1508922015", "https://cdn.steamstatic.com.8686c.com/steam/apps/227310/ss_78e5db1b8e1cff57b998eea15957e2258ab98d03.600x338.jpg?t=1508922015" ],/* 四张图片url*/ "platform": [ "Windows", "Mac OS", "Steam" ],/* 该游戏可运行的平台 */ "date": "19 Sep, 2013",/* 游戏发行日期(此处为英文) */ "evaluate": "Very Positive",/* 口碑(此处为英文) */ "evaluatingCount": "21",/* 评测数 */ "label": [ "Simulation", "Driving", "Open World", "Multiplayer", "Realistic", "Indie", "Singleplayer", "Free to Play ```