35

I've been reading forums and trying Steam APIs, I'm searching for an API which provides all Steam Games.

I found the API providing all SteamApps, and the Steam Store API which provides information for Apps (I'm looking for the type: 'game'), but for this, I need to call the store API once for each SteamApp... And the Store API is limited to 200 calls every 5 minutes! Is it the only solution?

EDIT:

All Apps API : http://api.steampowered.com/ISteamApps/GetAppList/v0002/?key=STEAMKEY&format=json

App details API : http://store.steampowered.com/api/appdetails?appids={APP_ID}

Jason Aller
  • 3,541
  • 28
  • 38
  • 38
Ankomm
  • 553
  • 2
  • 7
  • 15

2 Answers2

12

There is no "Steam API all games and all their details in one go".

You use GetAppList to get all the steam apps. Then you have to query each app with appdetails which will take a long time.

{
  "applist": {
    "apps": [
      {"appid": 10, "name": "Counter-Strike"},
      {"appid": 20, "name": "Team Fortress Classic"},
      {"appid": 30, "name": "Day of Defeat"},
      {"appid": 40, "name": "Deathmatch Classic"}
    ]
  }
}
{
  "10": {
    "success": true, 
    "data": {
      "type": "game",
      "name": "Counter-Strike",
      "steam_appid": 10,
      "required_age": 0,
      "is_free": false,
      "detailed_description": "...",
      "about_the_game": "...",
      "short_description": "...",
      "developers": ["Valve"],
      "publishers": ["Valve"],
      "EVEN_MORE_DATA": {}
    }
  }
}

There is a general API rate limit for each unique IP adress of 200 requests in five minutes which is one request every 1.5 seconds.

Another solution would be to use a third-party service such as SteamApis which offers more options but they are inevitably bound to what Steam offers in their API.

EliteRaceElephant
  • 7,744
  • 4
  • 47
  • 62
  • SteamApis third party is not providing data covering all games of Steam, but only the games that have a marketplace of items. Also they don't provide all data you could get from official Steam API, like, as a example, tags. – Alexis Pautrot Apr 14 '23 at 08:23
6

A common method here is to cache the results.

So for example, if your using something like PHP to query the results, you would do something like json_encode and json_decode with an array / object to hold the last results.

You can get fancy depending on what you want, but basically you'll need to cache and then perform an update of the oldest.

Angry 84
  • 2,935
  • 1
  • 25
  • 24
  • I actually did this recently to gather a collection of linux compatible games, Took around 4 days from memory. Tho i saved each initial ID into a SQL database ready for populate so i was able to use the update timestamps easily to determine the oldest. – Angry 84 Jul 18 '22 at 03:06