Overview
Returns statistical leaders for a basketball competition, including top scorers, rebounders, assisters, and other key metrics.
Query Parameters
Competition ID (e.g., 132 for NBA)
Filter statistics by team ID
Include season information
Code Examples
curl -X GET "https://v1.basketball.sportsapipro.com/stats?competitions=132&withSeasons=true" \
-H "x-api-key: YOUR_API_KEY"
Response Structure
Statistical categories with leaders
Category name (Points, Rebounds, Assists, etc.)
Top players in this category
Player details (id, name, team, imageUrl)
Statistical value (e.g., PPG, RPG)
Current season information (when withSeasons=true)
Example Response
{
"categories": [
{
"id": 1,
"name": "Points",
"leaders": [
{
"athlete": {
"id": 12345,
"name": "Luka DonΔiΔ",
"team": {
"id": 2800,
"name": "Dallas Mavericks"
},
"imageUrl": "..."
},
"value": 33.5,
"rank": 1,
"gamesPlayed": 45
}
]
},
{
"id": 2,
"name": "Rebounds",
"leaders": [...]
},
{
"id": 3,
"name": "Assists",
"leaders": [...]
}
],
"season": {
"id": 2025,
"name": "2025-26 Season",
"isCurrent": true
}
}
Statistical Categories
Common basketball statistical categories:
| Category | Description |
|---|
| Points | Points per game (PPG) |
| Rebounds | Rebounds per game (RPG) |
| Assists | Assists per game (APG) |
| Steals | Steals per game (SPG) |
| Blocks | Blocks per game (BPG) |
| Field Goal % | Shooting percentage |
| 3-Point % | Three-point percentage |
| Free Throw % | Free throw percentage |
Your SportsAPI Pro API key
Competition ID (e.g., 132 for NBA)
Include season information
Statistics retrieved successfully