Stats
haloapi · Media
API that provides statistical data about Players and Matches.
Authentication
Sample Requests
Retrieves XP and Rank information for one or more players. Changelog February 21, 2017: Added Endpoint.
Hover any highlighted part to learn what it does
curl -X GET "https://api.apis.guru/v2/specs/haloapi.com/stats/1.0/hw2/xp?players=example"
import requests
params = {
"players": "example"
}
response = requests.get(
"https://api.apis.guru/v2/specs/haloapi.com/stats/1.0/hw2/xp",
params=params,
)
print(response.json())const url = new URL('https://api.apis.guru/v2/specs/haloapi.com/stats/1.0/hw2/xp');
url.searchParams.set('players', 'example');
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.apis.guru/v2/specs/haloapi.com/stats/1.0/hw2/xp")
q := baseURL.Query()
q.Set("players", "example")
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.apis.guru/v2/specs/haloapi.com/stats/1.0/hw2/xp")
uri.query = URI.encode_www_form({
"players" => "example"
})
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.apis.guru/v2/specs/haloapi.com/stats/1.0/hw2/xp?" . http_build_query([
"players" => "example"
]);
$opts = ["http" => [
"method" => "GET",
]];
$ctx = stream_context_create($opts);
$res = file_get_contents($url, false, $ctx);
print_r(json_decode($res, true));Retrieves Service Records for the Arena Game Mode for one or more players. A Service Record contains a player's lifetime statistics in the Game Mode. Changelog June 29, 2018: Added support for Social (Un
Hover any highlighted part to learn what it does
curl -X GET "https://api.apis.guru/v2/specs/haloapi.com/stats/1.0/h5/servicerecords/arena?players=example&seasonId=example"
import requests
params = {
"players": "example",
"seasonId": "example"
}
response = requests.get(
"https://api.apis.guru/v2/specs/haloapi.com/stats/1.0/h5/servicerecords/arena",
params=params,
)
print(response.json())const url = new URL('https://api.apis.guru/v2/specs/haloapi.com/stats/1.0/h5/servicerecords/arena');
url.searchParams.set('players', 'example');
url.searchParams.set('seasonId', 'example');
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.apis.guru/v2/specs/haloapi.com/stats/1.0/h5/servicerecords/arena")
q := baseURL.Query()
q.Set("players", "example")
q.Set("seasonId", "example")
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.apis.guru/v2/specs/haloapi.com/stats/1.0/h5/servicerecords/arena")
uri.query = URI.encode_www_form({
"players" => "example",
"seasonId" => "example"
})
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.apis.guru/v2/specs/haloapi.com/stats/1.0/h5/servicerecords/arena?" . http_build_query([
"players" => "example",
"seasonId" => "example"
]);
$opts = ["http" => [
"method" => "GET",
]];
$ctx = stream_context_create($opts);
$res = file_get_contents($url, false, $ctx);
print_r(json_decode($res, true));Retrieves Service Records for the Campaign Game Mode for one or more players. A Service Record contains a player's lifetime statistics in the Game Mode. Changelog December 22, 2017: Added Game Mode clari
Hover any highlighted part to learn what it does
curl -X GET "https://api.apis.guru/v2/specs/haloapi.com/stats/1.0/h5/servicerecords/campaign?players=example"
import requests
params = {
"players": "example"
}
response = requests.get(
"https://api.apis.guru/v2/specs/haloapi.com/stats/1.0/h5/servicerecords/campaign",
params=params,
)
print(response.json())const url = new URL('https://api.apis.guru/v2/specs/haloapi.com/stats/1.0/h5/servicerecords/campaign');
url.searchParams.set('players', 'example');
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.apis.guru/v2/specs/haloapi.com/stats/1.0/h5/servicerecords/campaign")
q := baseURL.Query()
q.Set("players", "example")
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.apis.guru/v2/specs/haloapi.com/stats/1.0/h5/servicerecords/campaign")
uri.query = URI.encode_www_form({
"players" => "example"
})
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.apis.guru/v2/specs/haloapi.com/stats/1.0/h5/servicerecords/campaign?" . http_build_query([
"players" => "example"
]);
$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
- See official documentation for authentication and setup.
What can you build with Stats?
Stats 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
No authentication required. This API is open — no signup or key needed. Ideal for quick prototypes and public-facing features. Stats is free to use, making it a low-risk choice to experiment with.
New to APIs? Read our beginner's guide