I am making a node.js bot and I want to check my friends' completed badges. What is the best way to do it? What module? (Module Steam-User only has this option for your steam account.)
Asked
Active
Viewed 265 times
1 Answers
0
Use the official Steam Web API with the GetBadges method.
Example using the request module:
// npm install request
const request = require('request')
const URL = 'https://api.steampowered.com/IPlayerService/GetBadges/v1/'
const KEY = ''
const SID = ''
request(`${URL}?key=${KEY}&format=json&steamid=${SID}`, (err, res, body) => {
err && console.log(err)
console.log(body)
})

fsoc
- 71
- 10