Find an API

Search public APIs with auth details & Postman guides

← All APIs

Steam Web API

api.steampowered.com · Media

Media API Key Free Tier Gaming Steam Entertainment

Valve's Steam platform data — player summaries, game stats, achievements, owned games, friends lists, and app details. Free API key from steamcommunity.com.

Authentication

API Key Free API key at steamcommunity.com/dev/apikey. Pass as ?key= query parameter.

Sample Requests

GET Get app details

Get details for Dota 2 (App ID 570). No key needed for store data.

https://api.steampowered.com/https:/store.steampowered.com/api/appdetails?appids=570

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 Get player stats

Get a player's CS2 stats.

https://api.steampowered.com/ISteamUserStats/GetUserStatsForGame/v2?key=YOUR_KEY&appid=730&steamid=STEAM64_ID

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 Postman ↗
  1. Get a free API key at steamcommunity.com/dev/apikey
  2. Store data needs no key: GET https://store.steampowered.com/api/appdetails?appids=730
  3. Player summaries: GET /ISteamUser/GetPlayerSummaries/v2/?key=YOUR_KEY&steamids=STEAM64_ID
  4. Owned games: GET /IPlayerService/GetOwnedGames/v1/?key=YOUR_KEY&steamid=STEAM64_ID&include_appinfo=true

Open documentation ↗