我也在谷歌上搜索过StackOverflow (只找到了这个:Steam API all games)
我试图实现的是列出所有可在蒸汽商店的游戏,这将满足以下标准:-包括标签: TPP -将是一个类型:游戏(不是一个附加/配乐等)。
那该怎么做呢?毫无线索。在github上搜索,但只有一些类应该检索特定的用户数据库。
当前代码:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title></title>
</head>
<body>
<?php
$url = 'http://api.steampowered.com/ISteamApps/GetAppList/v0002/?key=XXXXXX?tags=1697&os=win&category1=998%2C996&format=json'; // path to your JSON file
$data = file_get_contents($url); // put the contents of the file into a variable
$characters = json_decode($data); // decode the JSON feed
echo $characters[0]->name;
var_dump($data);
var_dump($characters);
?>
<table>
<tbody>
<tr>
<th>Name</th>
</tr>
<?php foreach ($characters as $character) : ?>
<tr>
<td> <?php echo $character->name; ?> </td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</body>
</html>发布于 2019-09-08 07:41:01
本接口http://api.steampowered.com/ISteamApps/GetAppList/v0002/不包含流标签。
您必须通过您链接的答案中提到的应用程序详细信息呼叫检查每个应用程序。在此调用中,您还可以对应用程序类型进行排序。你正在寻找应用程序类型‘游戏’。
一旦您有了所有应用程序及其应用程序详细信息的完整数据库,您就可以按您指定的方式对其进行排序。
据我所知,除了这两个电话或直接从steam商店页面获取标签之外,没有其他方法。
https://stackoverflow.com/questions/57239346
复制相似问题