Get NHL team season rankings
curl --request GET \
--url https://api.sportquanta.com/v1/nhl/team-stats \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.sportquanta.com/v1/nhl/team-stats"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.sportquanta.com/v1/nhl/team-stats', 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.sportquanta.com/v1/nhl/team-stats",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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.sportquanta.com/v1/nhl/team-stats"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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.sportquanta.com/v1/nhl/team-stats")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.sportquanta.com/v1/nhl/team-stats")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"data": {
"season": 123,
"teams": [
{
"team_id": "<string>",
"games_played": 123,
"stats": {
"games_played": 123,
"wins": 123,
"losses": 123,
"ot_losses": 123,
"points": 123,
"points_percentage": 123,
"goals_for": 123,
"goals_for_per_game": 123,
"shots_for": 123,
"shots_for_per_game": 123,
"x_goals_for": 123,
"x_goals_for_per_game": 123,
"shooting_percentage": 123,
"pp_opportunities": 123,
"pp_goals": 123,
"pp_percentage": 123,
"faceoff_win_percentage": 123,
"corsi_for_percentage": 123,
"fenwick_for_percentage": 123,
"o_zone_start_percentage": 123,
"goals_against": 123,
"goals_against_per_game": 123,
"shots_against": 123,
"shots_against_per_game": 123,
"x_goals_against": 123,
"x_goals_against_per_game": 123,
"save_percentage": 123,
"pk_opportunities": 123,
"pk_goals_allowed": 123,
"pk_percentage": 123,
"hits_per_game": 123,
"blocks_per_game": 123,
"takeaways_per_game": 123,
"giveaways_per_game": 123,
"pdo": 123
},
"offense_ranks": {},
"defense_ranks": {}
}
]
},
"_meta": {
"request_id": "<string>",
"served_from": "live",
"cache_ttl_seconds": 123,
"provenance": {},
"availability": {}
}
}Season Stats & Analytics
Team season statistics
NHL-only route. Returns the per-team season aggregate rows plus offense / defense dense ranks for the matchup-view stat axes.
Requires the stats entitlement (a paid plan). See Responses & Errors for the success envelope and availability rules.
GET
/
v1
/
nhl
/
team-stats
Get NHL team season rankings
curl --request GET \
--url https://api.sportquanta.com/v1/nhl/team-stats \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.sportquanta.com/v1/nhl/team-stats"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.sportquanta.com/v1/nhl/team-stats', 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.sportquanta.com/v1/nhl/team-stats",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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.sportquanta.com/v1/nhl/team-stats"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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.sportquanta.com/v1/nhl/team-stats")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.sportquanta.com/v1/nhl/team-stats")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"data": {
"season": 123,
"teams": [
{
"team_id": "<string>",
"games_played": 123,
"stats": {
"games_played": 123,
"wins": 123,
"losses": 123,
"ot_losses": 123,
"points": 123,
"points_percentage": 123,
"goals_for": 123,
"goals_for_per_game": 123,
"shots_for": 123,
"shots_for_per_game": 123,
"x_goals_for": 123,
"x_goals_for_per_game": 123,
"shooting_percentage": 123,
"pp_opportunities": 123,
"pp_goals": 123,
"pp_percentage": 123,
"faceoff_win_percentage": 123,
"corsi_for_percentage": 123,
"fenwick_for_percentage": 123,
"o_zone_start_percentage": 123,
"goals_against": 123,
"goals_against_per_game": 123,
"shots_against": 123,
"shots_against_per_game": 123,
"x_goals_against": 123,
"x_goals_against_per_game": 123,
"save_percentage": 123,
"pk_opportunities": 123,
"pk_goals_allowed": 123,
"pk_percentage": 123,
"hits_per_game": 123,
"blocks_per_game": 123,
"takeaways_per_game": 123,
"giveaways_per_game": 123,
"pdo": 123
},
"offense_ranks": {},
"defense_ranks": {}
}
]
},
"_meta": {
"request_id": "<string>",
"served_from": "live",
"cache_ttl_seconds": 123,
"provenance": {},
"availability": {}
}
}Reference context: NHL.
Overview · Response conventions
Authorizations
Send a workspace API token in the Authorization: Bearer <token> header.
Query Parameters
Required season year. Missing, invalid, or out-of-range values return invalid_query_parameter.
Required range:
1917 <= x <= 2100Response
Season-wide NHL team rankings payload.
Hide child attributes
Hide child attributes
Hide child attributes
Hide child attributes
Hide child attributes
Hide child attributes
Hide child attributes
Hide child attributes
Available options:
live, cache Response cache TTL; independent of source freshness. Omitted when zero.
Endpoint-specific availability context, including soccer roster coverage.