Aquova
Aquova

Reputation: 147

How can I get the Steam ID of a game from its name using the Steam API?

I've been looking through the Steam API documentation, and there are a number of services that provide information on a game in the Steam web store, however they all seem to require the Steam ID of the game as a parameter. This can be done with user IDs, where the API will provide the User ID if given a username, but I can't find how to do the same feature with the game library. Is there anyway to provide the name of a game and get its Steam ID?

Upvotes: 6

Views: 9845

Answers (1)

EliteRaceElephant
EliteRaceElephant

Reputation: 8162

Use this: http://api.steampowered.com/ISteamApps/GetAppList/v0002/

You can traverse the JSON object and look for your ID using the game name.

Upvotes: 7

Related Questions