Skip to content

A simple program to query the Steam API to practice querying.

Notifications You must be signed in to change notification settings

02NRA/Practice_API_Querying_Steam

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Practice_API_Querying_Steam

A Repo started to learn how to query third-party APIs. Unfortunately, I could not find a way to get API keys for any other gaming platforms.

Prerequisites

Extensions

In order to use the fetch call, this app needs to be running ona live server. To accomplish this in a free, local context, I use the VS Code extension Live Server by Ritwick Dey (ritwickdey.LiveServer)

In order for your browser to allow the Steam Web API to respond with usable data, certain security rules need to be changed. I have seen methods of using a third-party service to do this properly, but as this app is only for my personal use, I simply use this Chrome extension: https://chromewebstore.google.com/detail/allow-cors-access-control/lhobafahddgcelffkeicbaginigeejlf?pli=1

Credentials

Not included in this app are the necessary credentials for querying. You will need

  • The Steam ID of the profile that you wish to query (which can be found under "Account Details" in the upper righthand dropdown of the Steam app)
  • A Steam API key, which can be obtained at the link under Other Resources

These two pieces of info need to be placed in a credentials.json and formatted as follows:

{"apiKey": "YOUR API KEY HERE",
"steamId": "YOUR STEAM ID HERE"}

Other Resources

https://steamcommunity.com/dev

About

A simple program to query the Steam API to practice querying.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published