Hockey V1
League Standings
Get standings for hockey leagues and conferences
GET
/
standings
League Standings
curl --request GET \
--url https://api.sportsapipro.com/v1/hockey/standings \
--header 'x-api-key: <api-key>'import requests
url = "https://api.sportsapipro.com/v1/hockey/standings"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.sportsapipro.com/v1/hockey/standings', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.sportsapipro.com/v1/hockey/standings",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.sportsapipro.com/v1/hockey/standings"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.sportsapipro.com/v1/hockey/standings")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.sportsapipro.com/v1/hockey/standings")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"standings": [
{
"competitor": {
"id": 123,
"name": "<string>",
"score": 123,
"imageUrl": "<string>"
},
"position": 123,
"points": 123,
"played": 123,
"wins": 123,
"losses": 123
}
]
}Overview
Returns current standings for a hockey league, including wins, losses, OT losses, points, and goals.Code Examples
# NHL Standings (Competition ID: 55)
curl -X GET "https://api.sportsapipro.com/v1/hockey/standings?competitions=55" \
-H "x-api-key: YOUR_API_KEY"
const response = await fetch(
'https://api.sportsapipro.com/v1/hockey/standings?competitions=55',
{ headers: { 'x-api-key': 'YOUR_API_KEY' } }
);
const { standings } = await response.json();
standings.forEach(entry => {
console.log(`${entry.position}. ${entry.competitor.name}: ${entry.points} pts`);
});
import requests
response = requests.get(
'https://api.sportsapipro.com/v1/hockey/standings',
params={'competitions': 55},
headers={'x-api-key': 'YOUR_API_KEY'}
)
Key Competition IDs
| League | Competition ID |
|---|---|
| NHL | 55 |
| AHL | 56 |
| KHL | 62 |
| SHL (Sweden) | 75 |
| DEL (Germany) | 80 |
| Liiga (Finland) | 81 |
| Czech Extraliga | 83 |
Use
seasonNum to retrieve historical standings from previous seasons.Authorizations
Your SportsAPI Pro API key
Query Parameters
Competition ID (e.g., 55 for NHL)
Example:
55
Season number for historical standings
Response
200 - application/json
Standings retrieved successfully
Show child attributes
Show child attributes
Last modified on June 29, 2026
Was this page helpful?
⌘I
League Standings
curl --request GET \
--url https://api.sportsapipro.com/v1/hockey/standings \
--header 'x-api-key: <api-key>'import requests
url = "https://api.sportsapipro.com/v1/hockey/standings"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.sportsapipro.com/v1/hockey/standings', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.sportsapipro.com/v1/hockey/standings",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.sportsapipro.com/v1/hockey/standings"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.sportsapipro.com/v1/hockey/standings")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.sportsapipro.com/v1/hockey/standings")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"standings": [
{
"competitor": {
"id": 123,
"name": "<string>",
"score": 123,
"imageUrl": "<string>"
},
"position": 123,
"points": 123,
"played": 123,
"wins": 123,
"losses": 123
}
]
}