Unrivaled API
Welcome to the BALLDONTLIE Unrivaled API. Access teams, players, schedules, results, rosters, lineups and game box scores. Coverage includes the 2025 and 2026 regular seasons and playoffs and the published 2027 schedule.
Create a free account for an API key, then see authentication. Browse our other APIs and join us on X or Discord.
AI-Powered Integration
Using the OpenAPI Specification with AI
- Copy the URL for the Unrivaled OpenAPI specification.
- Give the URL to your preferred AI assistant.
- Describe what you want to build and ask for code that sends your API key in the Authorization header.
Example prompts
- “Use the Unrivaled API to show the 2027 schedule for one team.”
- “Write a Python script to compare Unrivaled team points by period for a game.”
Account Tiers
Annual billing saves 20%. Choose monthly or annual billing when subscribing. Annual prices are charged once per year.
| Plan | Monthly (USD) | Annual (USD) |
|---|---|---|
| ALL-STAR | $9.99/month | $95.90/year |
| GOAT | $39.99/month | $383.90/year |
| ALL-ACCESS | $299.99/month | $2,879.90/year |
ALL-STAR and GOAT subscriptions cover one league. ALL-ACCESS includes every Unrivaled endpoint. Manage subscriptions in the account dashboard.
| Endpoint | Free | ALL-STAR | GOAT |
|---|---|---|---|
| Teams | Yes | Yes | Yes |
| Team by ID | Yes | Yes | Yes |
| Players | Yes | Yes | Yes |
| Player by ID | Yes | Yes | Yes |
| Games | Yes | Yes | Yes |
| Game by ID | Yes | Yes | Yes |
| Rosters | No | Yes | Yes |
| Lineups | No | Yes | Yes |
| Player Stats | No | No | Yes |
| Team Stats | No | No | Yes |
| Tier | Requests per minute | Monthly (USD) |
|---|---|---|
| Free | 5 | $0 |
| ALL-STAR | 60 | $9.99 |
| GOAT | 600 | $39.99 |
Eligible accounts can start a seven-day GOAT trial at 5 requests per minute.
Authentication
Send your API key in the Authorization header. The base URL is https://api.balldontlie.io/unrivaled/v1.
Data Availability
Seasons use calendar years and game times use UTC. The API can report scores and stats during games as they become available. Scheduled and canceled games appear in Games. Box score collections include games with matching stats. A null value means the field is unavailable. For example, the Feb. 22, 2025 Laces player box is marked incomplete.
Pagination
Collections return data and meta. Pass meta.next_cursor as cursor until it is absent. A full final page can be followed by an empty page. Array filters use repeated bracketed parameters like team_ids[]=1&team_ids[]=2.
Errors
| Status | Meaning |
|---|---|
| 400 | Invalid parameters |
| 401 | Missing or invalid API key or insufficient subscription tier |
| 404 | Record not found |
| 429 | Rate limit exceeded |
Teams
List teams. The season filter selects teams in that season’s schedule.
Requires Free or higher.
GET /unrivaled/v1/teams
curl --globoff "https://api.balldontlie.io/unrivaled/v1/teams?per_page=1&season=2025" -H "Authorization: YOUR_API_KEY"
const response = await fetch("https://api.balldontlie.io/unrivaled/v1/teams?per_page=1&season=2025", {
headers: { Authorization: "YOUR_API_KEY" }
});
const data = await response.json();
import requests
response = requests.get(
"https://api.balldontlie.io/unrivaled/v1/teams?per_page=1&season=2025",
headers={"Authorization": "YOUR_API_KEY"},
)
response.raise_for_status()
data = response.json()
Example response
{
"data": [
{
"id": 1,
"name": "Mist"
}
],
"meta": {
"next_cursor": 1,
"per_page": 1
}
}
Parameters
| Parameter | Location | Required | Description |
|---|---|---|---|
season |
query | No | Calendar year of the season. |
per_page |
query | No | Number of records per page. Default 25. Maximum 100. |
cursor |
query | No | Use next_cursor from the previous response. |
Team by ID
Get one team.
Requires Free or higher.
GET /unrivaled/v1/teams/{id}
curl --globoff "https://api.balldontlie.io/unrivaled/v1/teams/1" -H "Authorization: YOUR_API_KEY"
const response = await fetch("https://api.balldontlie.io/unrivaled/v1/teams/1", {
headers: { Authorization: "YOUR_API_KEY" }
});
const data = await response.json();
import requests
response = requests.get(
"https://api.balldontlie.io/unrivaled/v1/teams/1",
headers={"Authorization": "YOUR_API_KEY"},
)
response.raise_for_status()
data = response.json()
Example response
{
"data": {
"id": 1,
"name": "Mist"
}
}
Parameters
| Parameter | Location | Required | Description |
|---|---|---|---|
id |
path | Yes | Record ID. |
Players
List players or search by name.
Requires Free or higher.
GET /unrivaled/v1/players
curl --globoff "https://api.balldontlie.io/unrivaled/v1/players?per_page=1&search=Collier" -H "Authorization: YOUR_API_KEY"
const response = await fetch("https://api.balldontlie.io/unrivaled/v1/players?per_page=1&search=Collier", {
headers: { Authorization: "YOUR_API_KEY" }
});
const data = await response.json();
import requests
response = requests.get(
"https://api.balldontlie.io/unrivaled/v1/players?per_page=1&search=Collier",
headers={"Authorization": "YOUR_API_KEY"},
)
response.raise_for_status()
data = response.json()
Example response
{
"data": [
{
"id": 5,
"last_name": "Collier",
"first_name": "Napheesa"
}
],
"meta": {
"next_cursor": 5,
"per_page": 1
}
}
Parameters
| Parameter | Location | Required | Description |
|---|---|---|---|
search |
query | No | Case-insensitive name search. |
per_page |
query | No | Number of records per page. Default 25. Maximum 100. |
cursor |
query | No | Use next_cursor from the previous response. |
Player by ID
Get one player.
Requires Free or higher.
GET /unrivaled/v1/players/{id}
curl --globoff "https://api.balldontlie.io/unrivaled/v1/players/5" -H "Authorization: YOUR_API_KEY"
const response = await fetch("https://api.balldontlie.io/unrivaled/v1/players/5", {
headers: { Authorization: "YOUR_API_KEY" }
});
const data = await response.json();
import requests
response = requests.get(
"https://api.balldontlie.io/unrivaled/v1/players/5",
headers={"Authorization": "YOUR_API_KEY"},
)
response.raise_for_status()
data = response.json()
Example response
{
"data": {
"id": 5,
"last_name": "Collier",
"first_name": "Napheesa"
}
}
Parameters
| Parameter | Location | Required | Description |
|---|---|---|---|
id |
path | Yes | Record ID. |
Games
List scheduled games, live games and results. Tip time and scores can be null. Date filters omit games without a tip time.
Requires Free or higher.
GET /unrivaled/v1/games
curl --globoff "https://api.balldontlie.io/unrivaled/v1/games?per_page=1&seasons[]=2027" -H "Authorization: YOUR_API_KEY"
const response = await fetch("https://api.balldontlie.io/unrivaled/v1/games?per_page=1&seasons[]=2027", {
headers: { Authorization: "YOUR_API_KEY" }
});
const data = await response.json();
import requests
response = requests.get(
"https://api.balldontlie.io/unrivaled/v1/games?per_page=1&seasons[]=2027",
headers={"Authorization": "YOUR_API_KEY"},
)
response.raise_for_status()
data = response.json()
Example response
{
"data": [
{
"id": 107,
"phase": "regular",
"season": 2027,
"status": "scheduled",
"datetime": "2027-01-09T00:00:00.000Z",
"home_team": {
"id": 1,
"name": "Mist"
},
"visitor_team": {
"id": 5,
"name": "Phantom"
},
"home_team_score": null,
"visitor_team_score": null
}
],
"meta": {
"next_cursor": 107,
"per_page": 1
}
}
Parameters
| Parameter | Location | Required | Description |
|---|---|---|---|
seasons[] |
query | No | Filter by season year. |
team_ids[] |
query | No | Filter by team ID. |
status |
query | No | Filter by game status. |
start_date |
query | No | Earliest UTC game date, inclusive. Use YYYY-MM-DD. |
end_date |
query | No | Latest UTC game date, inclusive. Use YYYY-MM-DD. |
per_page |
query | No | Number of records per page. Default 25. Maximum 100. |
cursor |
query | No | Use next_cursor from the previous response. |
Game by ID
Get one game and its score when available.
Requires Free or higher.
GET /unrivaled/v1/games/{id}
curl --globoff "https://api.balldontlie.io/unrivaled/v1/games/26" -H "Authorization: YOUR_API_KEY"
const response = await fetch("https://api.balldontlie.io/unrivaled/v1/games/26", {
headers: { Authorization: "YOUR_API_KEY" }
});
const data = await response.json();
import requests
response = requests.get(
"https://api.balldontlie.io/unrivaled/v1/games/26",
headers={"Authorization": "YOUR_API_KEY"},
)
response.raise_for_status()
data = response.json()
Example response
{
"data": {
"id": 26,
"phase": "regular",
"season": 2025,
"status": "final",
"datetime": "2025-02-22T23:00:00.000Z",
"home_team": {
"id": 2,
"name": "Lunar Owls"
},
"visitor_team": {
"id": 6,
"name": "Laces"
},
"home_team_score": 88,
"visitor_team_score": 60
}
}
Parameters
| Parameter | Location | Required | Description |
|---|---|---|---|
id |
path | Yes | Record ID. |
Rosters
List published season rosters, grouped and paginated by team. A player may appear for more than one team during the season.
Requires ALL-STAR or higher.
GET /unrivaled/v1/rosters
curl --globoff "https://api.balldontlie.io/unrivaled/v1/rosters?season=2025&team_ids[]=6&per_page=1" -H "Authorization: YOUR_API_KEY"
const response = await fetch("https://api.balldontlie.io/unrivaled/v1/rosters?season=2025&team_ids[]=6&per_page=1", {
headers: { Authorization: "YOUR_API_KEY" }
});
const data = await response.json();
import requests
response = requests.get(
"https://api.balldontlie.io/unrivaled/v1/rosters?season=2025&team_ids[]=6&per_page=1",
headers={"Authorization": "YOUR_API_KEY"},
)
response.raise_for_status()
data = response.json()
Example response
{
"data": [
{
"team": {
"id": 6,
"name": "Laces"
},
"season": 2025,
"players": [
{
"id": 25,
"last_name": "Thomas",
"first_name": "Alyssa"
},
{
"id": 27,
"last_name": "Dolson",
"first_name": "Stefanie"
},
{
"id": 28,
"last_name": "McBride",
"first_name": "Kayla"
},
{
"id": 29,
"last_name": "Young",
"first_name": "Jackie"
},
{
"id": 32,
"last_name": "Martin",
"first_name": "Kate"
},
{
"id": 34,
"last_name": "Hayes",
"first_name": "Tiffany"
},
{
"id": 56,
"last_name": "Hiedeman",
"first_name": "Natisha"
},
{
"id": 280,
"last_name": "Jefferson",
"first_name": "Kiki"
},
{
"id": 290,
"last_name": "Laney-Hamilton",
"first_name": "Betnijah"
},
{
"id": 331,
"last_name": "Atkins",
"first_name": "Ariel"
}
]
}
],
"meta": {
"next_cursor": 6,
"per_page": 1
}
}
Parameters
| Parameter | Location | Required | Description |
|---|---|---|---|
season |
query | Yes | Calendar year of the season. |
team_ids[] |
query | No | Filter by team ID. |
per_page |
query | No | Number of records per page. Default 25. Maximum 100. |
cursor |
query | No | Use next_cursor from the previous response. |
Lineups
Get one game’s published roster by team. Starter status and jersey numbers can be null. The teams array is empty when no game roster is available.
Requires ALL-STAR or higher.
GET /unrivaled/v1/lineups
curl --globoff "https://api.balldontlie.io/unrivaled/v1/lineups?game_id=159" -H "Authorization: YOUR_API_KEY"
const response = await fetch("https://api.balldontlie.io/unrivaled/v1/lineups?game_id=159", {
headers: { Authorization: "YOUR_API_KEY" }
});
const data = await response.json();
import requests
response = requests.get(
"https://api.balldontlie.io/unrivaled/v1/lineups?game_id=159",
headers={"Authorization": "YOUR_API_KEY"},
)
response.raise_for_status()
data = response.json()
Example response
{
"data": {
"teams": [
{
"team": {
"id": 4,
"name": "Vinyl"
},
"players": [
{
"player": {
"id": 2,
"last_name": "Gray",
"first_name": "Allisha"
},
"starter": null,
"jersey_number": null
},
{
"player": {
"id": 15,
"last_name": "Howard",
"first_name": "Rhyne"
},
"starter": null,
"jersey_number": null
},
{
"player": {
"id": 16,
"last_name": "Hamby",
"first_name": "Dearica"
},
"starter": null,
"jersey_number": null
},
{
"player": {
"id": 23,
"last_name": "Canada",
"first_name": "Jordin"
},
"starter": null,
"jersey_number": null
},
{
"player": {
"id": 1372,
"last_name": "Johnson",
"first_name": "Flau'jae"
},
"starter": null,
"jersey_number": null
},
{
"player": {
"id": 1378,
"last_name": "Morrow",
"first_name": "Aneesah"
},
"starter": null,
"jersey_number": null
}
]
},
{
"team": {
"id": 98,
"name": "Breeze"
},
"players": [
{
"player": {
"id": 8,
"last_name": "Carrington",
"first_name": "DiJonai"
},
"starter": null,
"jersey_number": null
},
{
"player": {
"id": 13,
"last_name": "Copper",
"first_name": "Kahleah"
},
"starter": null,
"jersey_number": null
},
{
"player": {
"id": 578,
"last_name": "Billings",
"first_name": "Monique"
},
"starter": null,
"jersey_number": null
},
{
"player": {
"id": 615,
"last_name": "Malonga",
"first_name": "Dominique"
},
"starter": null,
"jersey_number": null
},
{
"player": {
"id": 620,
"last_name": "Bueckers",
"first_name": "Paige"
},
"starter": null,
"jersey_number": null
},
{
"player": {
"id": 1371,
"last_name": "Chen",
"first_name": "Kaitlyn"
},
"starter": null,
"jersey_number": null
}
]
}
],
"game_id": 159
}
}
Parameters
| Parameter | Location | Required | Description |
|---|---|---|---|
game_id |
query | Yes | Game ID. |
Player Stats
List player box scores, paginated by game and grouped by team. Playing time is in seconds and can be null. The players_complete field reflects the full team box score even when a player filter is used.
Requires GOAT or higher.
GET /unrivaled/v1/player_stats
curl --globoff "https://api.balldontlie.io/unrivaled/v1/player_stats?game_ids[]=26&team_ids[]=6&player_ids[]=27&per_page=1" -H "Authorization: YOUR_API_KEY"
const response = await fetch("https://api.balldontlie.io/unrivaled/v1/player_stats?game_ids[]=26&team_ids[]=6&player_ids[]=27&per_page=1", {
headers: { Authorization: "YOUR_API_KEY" }
});
const data = await response.json();
import requests
response = requests.get(
"https://api.balldontlie.io/unrivaled/v1/player_stats?game_ids[]=26&team_ids[]=6&player_ids[]=27&per_page=1",
headers={"Authorization": "YOUR_API_KEY"},
)
response.raise_for_status()
data = response.json()
Example response
{
"data": [
{
"teams": [
{
"team": {
"id": 6,
"name": "Laces"
},
"players": [
{
"pf": 0,
"ast": 1,
"blk": 0,
"fta": 0,
"ftm": 0,
"pts": 7,
"reb": 5,
"stl": 1,
"dreb": 4,
"fg2a": 6,
"fg2m": 2,
"fg3a": 2,
"fg3m": 1,
"oreb": 1,
"player": {
"id": 27,
"last_name": "Dolson",
"first_name": "Stefanie"
},
"turnover": 2,
"plus_minus": -2,
"seconds_played": 866,
"free_throw_points": 0
}
],
"players_complete": false
}
],
"game_id": 26
}
],
"meta": {
"next_cursor": 26,
"per_page": 1
}
}
Parameters
| Parameter | Location | Required | Description |
|---|---|---|---|
seasons[] |
query | No | Filter by season year. |
game_ids[] |
query | No | Filter by game ID. |
team_ids[] |
query | No | Filter by team ID. |
player_ids[] |
query | No | Filter by player ID. |
per_page |
query | No | Number of records per page. Default 25. Maximum 100. |
cursor |
query | No | Use next_cursor from the previous response. |
Team Stats
List team box scores, paginated by game. Period points appear in playing order. Free-throw points are recorded separately from made free throws.
Requires GOAT or higher.
GET /unrivaled/v1/team_stats
curl --globoff "https://api.balldontlie.io/unrivaled/v1/team_stats?game_ids[]=26&team_ids[]=6&per_page=1" -H "Authorization: YOUR_API_KEY"
const response = await fetch("https://api.balldontlie.io/unrivaled/v1/team_stats?game_ids[]=26&team_ids[]=6&per_page=1", {
headers: { Authorization: "YOUR_API_KEY" }
});
const data = await response.json();
import requests
response = requests.get(
"https://api.balldontlie.io/unrivaled/v1/team_stats?game_ids[]=26&team_ids[]=6&per_page=1",
headers={"Authorization": "YOUR_API_KEY"},
)
response.raise_for_status()
data = response.json()
Example response
{
"data": [
{
"teams": [
{
"pf": 11,
"ast": 8,
"blk": 1,
"fta": 9,
"ftm": 9,
"pts": 60,
"reb": 24,
"stl": 1,
"dreb": 20,
"fg2a": 32,
"fg2m": 16,
"fg3a": 16,
"fg3m": 4,
"oreb": 4,
"team": {
"id": 6,
"name": "Laces"
},
"turnover": 12,
"period_points": [
27,
15,
11,
7
],
"free_throw_points": 16
}
],
"game_id": 26
}
],
"meta": {
"next_cursor": 26,
"per_page": 1
}
}
Parameters
| Parameter | Location | Required | Description |
|---|---|---|---|
seasons[] |
query | No | Filter by season year. |
game_ids[] |
query | No | Filter by game ID. |
team_ids[] |
query | No | Filter by team ID. |
per_page |
query | No | Number of records per page. Default 25. Maximum 100. |
cursor |
query | No | Use next_cursor from the previous response. |