Basketball V1
Standings
Get league standings and team rankings
GET
/
standings
League Standings
curl --request GET \
--url https://api.sportsapipro.com/v1/basketball/standings \
--header 'x-api-key: <api-key>'import requests
url = "https://api.sportsapipro.com/v1/basketball/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/basketball/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/basketball/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/basketball/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/basketball/standings")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.sportsapipro.com/v1/basketball/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,
"wins": 123,
"losses": 123,
"winPercentage": 123,
"gamesBack": 123,
"streak": "<string>",
"conference": "<string>",
"division": "<string>"
}
]
}V1 Legacy Endpoint — This is a V1 API endpoint. For new integrations, we recommend using the Basketball V2 API which provides richer data and more endpoints.
Overview
Returns current standings for a basketball competition, including wins, losses, win percentage, and conference/division standings where applicable.Query Parameters
integer
required
Competition ID (e.g., 132 for NBA)
string
Season identifier (defaults to current season)
Code Examples
curl -X GET "https://api.sportsapipro.com/v1/basketball/standings?competitions=132" \
-H "x-api-key: YOUR_API_KEY"
const response = await fetch(
'https://api.sportsapipro.com/v1/basketball/standings?competitions=132',
{ headers: { 'x-api-key': 'YOUR_API_KEY' } }
);
const { standings } = await response.json();
// Get playoff teams (top 8 per conference)
const eastPlayoffs = standings
.filter(s => s.conference === 'Eastern')
.slice(0, 8);
import requests
response = requests.get(
'https://api.sportsapipro.com/v1/basketball/standings',
params={'competitions': 132},
headers={'x-api-key': 'YOUR_API_KEY'}
)
standings = response.json()['standings']
Response Structure
array
Array of team standings
Show Standing Object
Show Standing Object
object
Team information (id, name, imageUrl)
integer
Current ranking position
integer
Total wins
integer
Total losses
number
Win percentage (0-1)
number
Games behind first place
string
Current streak (e.g., “W5”, “L2”)
string
Record in last 10 games (e.g., “8-2”)
string
Conference name (if applicable)
string
Division name (if applicable)
NBA Standings Example
{
"standings": [
{
"competitor": {
"id": 678,
"name": "Boston Celtics",
"imageUrl": "..."
},
"position": 1,
"wins": 45,
"losses": 12,
"winPercentage": 0.789,
"gamesBack": 0,
"streak": "W5",
"lastTen": "8-2",
"conference": "Eastern",
"division": "Atlantic"
}
]
}
Key Competition IDs
| Competition | ID |
|---|---|
| NBA | 132 |
| WNBA | 2004 |
| EuroLeague | 138 |
| Spanish ACB | 149 |
| NCAA Men’s | 2065 |
Authorizations
Your SportsAPI Pro API key
Query Parameters
Competition ID (e.g., 132 for NBA)
Example:
132
Season identifier (defaults to current)
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/basketball/standings \
--header 'x-api-key: <api-key>'import requests
url = "https://api.sportsapipro.com/v1/basketball/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/basketball/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/basketball/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/basketball/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/basketball/standings")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.sportsapipro.com/v1/basketball/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,
"wins": 123,
"losses": 123,
"winPercentage": 123,
"gamesBack": 123,
"streak": "<string>",
"conference": "<string>",
"division": "<string>"
}
]
}