Steam Web API
api.steampowered.com · Media
Valve's Steam platform data — player summaries, game stats, achievements, owned games, friends lists, and app details. Free API key from steamcommunity.com.
Authentication
Sample Requests
Get details for Dota 2 (App ID 570). No key needed for store data.
Hover any highlighted part to learn what it does
curl -X GET "https://api.steampowered.comhttps://store.steampowered.com/api/appdetails?appids=570"
import requests
params = {
"appids": "570"
}
response = requests.get(
"https://api.steampowered.comhttps://store.steampowered.com/api/appdetails",
params=params,
)
print(response.json())const url = new URL('https://api.steampowered.comhttps://store.steampowered.com/api/appdetails');
url.searchParams.set('appids', '570');
const response = await fetch(url);
const data = await response.json();
console.log(data);package main
import (
"fmt"
"io"
"net/http"
"net/url"
)
func main() {
baseURL, _ := url.Parse("https://api.steampowered.comhttps://store.steampowered.com/api/appdetails")
q := baseURL.Query()
q.Set("appids", "570")
baseURL.RawQuery = q.Encode()
targetURL := baseURL.String()
req, _ := http.NewRequest("GET", targetURL, nil)
client := &http.Client{}
resp, _ := client.Do(req)
defer resp.Body.Close()
body, _ := io.ReadAll(resp.Body)
fmt.Println(string(body))
}require "net/http"
require "json"
uri = URI("https://api.steampowered.comhttps://store.steampowered.com/api/appdetails")
uri.query = URI.encode_www_form({
"appids" => "570"
})
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = uri.scheme == "https"
req = Net::HTTP::Get.new(uri)
res = http.request(req)
puts JSON.parse(res.body)<?php
$url = "https://api.steampowered.comhttps://store.steampowered.com/api/appdetails?" . http_build_query([
"appids" => "570"
]);
$opts = ["http" => [
"method" => "GET",
]];
$ctx = stream_context_create($opts);
$res = file_get_contents($url, false, $ctx);
print_r(json_decode($res, true));Get a player's CS2 stats.
Hover any highlighted part to learn what it does
curl -X GET "https://api.steampowered.com/ISteamUserStats/GetUserStatsForGame/v2/?key=YOUR_KEY&appid=730&steamid=STEAM64_ID"
import requests
params = {
"key": "YOUR_KEY",
"appid": "730",
"steamid": "STEAM64_ID"
}
response = requests.get(
"https://api.steampowered.com/ISteamUserStats/GetUserStatsForGame/v2/",
params=params,
)
print(response.json())const url = new URL('https://api.steampowered.com/ISteamUserStats/GetUserStatsForGame/v2/');
url.searchParams.set('key', 'YOUR_KEY');
url.searchParams.set('appid', '730');
url.searchParams.set('steamid', 'STEAM64_ID');
const response = await fetch(url);
const data = await response.json();
console.log(data);package main
import (
"fmt"
"io"
"net/http"
"net/url"
)
func main() {
baseURL, _ := url.Parse("https://api.steampowered.com/ISteamUserStats/GetUserStatsForGame/v2/")
q := baseURL.Query()
q.Set("key", "YOUR_KEY")
q.Set("appid", "730")
q.Set("steamid", "STEAM64_ID")
baseURL.RawQuery = q.Encode()
targetURL := baseURL.String()
req, _ := http.NewRequest("GET", targetURL, nil)
client := &http.Client{}
resp, _ := client.Do(req)
defer resp.Body.Close()
body, _ := io.ReadAll(resp.Body)
fmt.Println(string(body))
}require "net/http"
require "json"
uri = URI("https://api.steampowered.com/ISteamUserStats/GetUserStatsForGame/v2/")
uri.query = URI.encode_www_form({
"key" => "YOUR_KEY",
"appid" => "730",
"steamid" => "STEAM64_ID"
})
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = uri.scheme == "https"
req = Net::HTTP::Get.new(uri)
res = http.request(req)
puts JSON.parse(res.body)<?php
$url = "https://api.steampowered.com/ISteamUserStats/GetUserStatsForGame/v2/?" . http_build_query([
"key" => "YOUR_KEY",
"appid" => "730",
"steamid" => "STEAM64_ID"
]);
$opts = ["http" => [
"method" => "GET",
]];
$ctx = stream_context_create($opts);
$res = file_get_contents($url, false, $ctx);
print_r(json_decode($res, true));Postman Setup Guide
- Get a free API key at steamcommunity.com/dev/apikey
- Store data needs no key: GET https://store.steampowered.com/api/appdetails?appids=730
- Player summaries: GET /ISteamUser/GetPlayerSummaries/v2/?key=YOUR_KEY&steamids=STEAM64_ID
- Owned games: GET /IPlayerService/GetOwnedGames/v1/?key=YOUR_KEY&steamid=STEAM64_ID&include_appinfo=true
What can you build with Steam Web API?
Steam Web API is a Media API. Developers commonly use media APIs for:
- storing and delivering images, video, and audio
- building digital asset management and media libraries
- transcoding and optimising media for the web
- adding video streaming and playback to your app
- automating content tagging and metadata extraction
API Key authentication. You'll receive a key after signing up. Send it with every request — in a header or query parameter. Keep it out of client-side code and never commit it to version control. Steam Web API is free to use up to a usage limit, making it a low-risk choice to experiment with.
New to APIs? Read our beginner's guide