使用 API 请求检索 Steam 游戏数据

Retrieve Steam game data using API request

我想知道如何创建对 Steam 网络 API 的 API 调用,以便检索指定游戏的所有相关数据。我找到了一个几乎可以满足我需要的示例调用,除了此调用要求您知道 Steam 应用程序 ID,如下所示:

http://store.steampowered.com/api/appdetails/?appids=730

如您所见,如果您单击 link,我需要的所有信息都会通过 API 调用返回。但是我想知道是否可以修改此 API 调用,以便它 returns 使用游戏 name 而不是 Steam ID 号来获取所需信息?

不幸的是,我认为这是不可能的(尽管缺少 API 的官方文档意味着我可能是错的)。

首先,从设计的角度来看,它可能行不通 - 游戏可能具有相同的名称,因此名称不是唯一的足够参考来识别项目(这是正确设计的 REST 的基本概念 API).

其次,所有示例(such as this here) I have come across on the web of people self-documenting the API use appID to identify a game/software and have found no cases of being able to use name. The other documented Steam DEV APIs也使用AppId