This topic has been locked
How can I get users Info by id through Steam Web Api?
Hi! Working around steam web api, and trying to fetch all neccessary data by user id.

Using GET request:
https://api.steampowered.com/ISteamUser/GetPlayerSummaries/v2/?key=[APIKEY]&format=json&steamids=76561198036370701

but it's gives an error : "No 'Access-Control-Allow-Origin' header is present on the requested resource."

But if I open this ling in browser it's works fine:
https://api.steampowered.com/ISteamUser/GetPlayerSummaries/v2/?key=[APIKEY]&format=json&steamids=76561198036370701

Anybody knows what's wrong?
< >
Showing 1-4 of 4 comments
Nice! Resolved it, I should make a requests from server, you can't make them from client side!
red Jul 15, 2024 @ 6:15pm 
This is really old, but it's a bad sign that you are storing your Steam Web API key on the client. You can do a lot of things with it, and it is dangerous.
76561198407601200 Jul 15, 2024 @ 8:04pm 
Originally posted by ~ red ~:
This is really old, but it's a bad sign that you are storing your Steam Web API key on the client. You can do a lot of things with it, and it is dangerous.
Their last post was almost 2 years ago and this one wasn't far behind that....
Wren Jul 15, 2024 @ 8:14pm 
This thread was quite old before the recent post, so we're locking it to prevent confusion.
< >
Showing 1-4 of 4 comments
Per page: 1530 50

Date Posted: Feb 1, 2018 @ 7:07am
Posts: 4