This API provides endpoints to query NBA player statistics, including both "Totals" data and "Advanced" statistical data. Each endpoint supports filtering, sorting, and pagination options to help you retrieve the data you need.
All endpoints are served from the base URL:
http://b8c40s8.143.198.70.30.sslip.io/api/
No authentication is currently required for these endpoints.
-
Player Data Totals (
/playerdatatotals
)Provides season-based totals such as points, assists, games played, and more.
-
Player Data Advanced (
/playerdataadvanced
)Provides advanced player metrics such as Player Efficiency Rating (PER), True Shooting Percentage (TS%), Usage Percentage, Win Shares, and other advanced stats.
Both endpoints offer similar querying patterns and filtering options.
For both Totals and Advanced endpoints, the following query parameters are available for the /query
routes:
- playerName (string, optional): Filter results to players whose name matches or partially matches the provided string.
- season (int, optional): Filter by a specific season (e.g.,
2025
). - team (string, optional): Filter by a team abbreviation (partial matches allowed).
- playerId (string, optional): Filter by a player's unique ID (partial matches allowed).
Sorting Options:
- sortBy (string, optional): Field name to sort results by. Varies by endpoint.
- ascending (bool, optional): Set to
true
(default) for ascending order orfalse
for descending order.
Pagination:
- pageNumber (int, optional): Page number to retrieve (default is 1).
- pageSize (int, optional): Number of records per page (default is 10).
If no data matches your query, the response will be 404 Not Found
.
Base Route: /playerdatatotals
GET /playerdatatotals/query
Description:
Retrieves a filtered and/or sorted list of player totals data.
Query Parameters:
playerName
(string)season
(int)team
(string)playerId
(string)sortBy
(string): Can bePlayerName
,Season
,Team
,Points
,Assists
,Games
,TotalRb
,Blocks
,Steals
.ascending
(bool): Defaulttrue
.pageNumber
(int): Default1
.pageSize
(int): Default10
.
Response:
200 OK
with a JSON array of PlayerDataTotals
objects, or 404 Not Found
if no records match.
Example Request:
curl -X GET \
'http://b8c40s8.143.198.70.30.sslip.io/api/PlayerDataTotals/query?season=2025&team=BOS&sortBy=PlayerName&ascending=true&pageNumber=1&pageSize=10' \
-H 'accept: text/plain'
Example Response:
[
{
"id": 18905,
"playerName": "Al Horford",
"position": "C",
"age": 38,
"games": 19,
"gamesStarted": 18,
"minutesPg": 532,
"fieldGoals": 64,
"fieldAttempts": 137,
"fieldPercent": 0.467,
"threeFg": 41,
"threeAttempts": 101,
"threePercent": 0.406,
"twoFg": 23,
"twoAttempts": 36,
"twoPercent": 0.639,
"effectFgPercent": 0.617,
"ft": 6,
"ftAttempts": 6,
"ftPercent": 1,
"offensiveRb": 16,
"defensiveRb": 85,
"totalRb": 101,
"assists": 44,
"steals": 14,
"blocks": 17,
"turnovers": 19,
"personalFouls": 31,
"points": 175,
"team": "BOS",
"season": 2025,
"playerId": "horfoal01"
},
...
]
(Response truncated for brevity.)
GET /playerdatatotals/name/{playerName}
Description:
Retrieve all totals data for players whose names match or partially match the given playerName
.
Response:
200 OK
with a JSON array of PlayerDataTotals
objects or 404 Not Found
.
GET /playerdatatotals/season/{season}
Description:
Retrieve all player totals for a given season.
GET /playerdatatotals/playerid/{playerId}
Description:
Retrieve all totals data for a player by their unique or partial playerId
.
GET /playerdatatotals/team/{team}
Description:
Retrieve totals for all players who played on a given team.
GET /playerdatatotals/count
Description:
Retrieve an integer count of all available player totals records.
Base Route: /playerdataadvanced
GET /playerdataadvanced/query
Description:
Retrieve a filtered and/or sorted list of advanced player stats.
Query Parameters:
playerName
(string)season
(int)team
(string)playerId
(string)sortBy
(string): Possible fields includePlayerName
,Season
,Team
,Games
,PER
,TSPercent
,TotalRBPercent
,AssistPercent
,StealPercent
,BlockPercent
,TurnoverPercent
,UsagePercent
,WinShares
,Box
,VORP
.ascending
(bool): Defaulttrue
.pageNumber
(int): Default1
.pageSize
(int): Default10
.
Response:
200 OK
with a JSON array of PlayerDataAdvanced
objects, or 404 Not Found
if no records match.
Example Request:
curl -X GET \
'http://b8c40s8.143.198.70.30.sslip.io/api/PlayerDataAdvanced/query?playerName=James%20Harden&team=HOU&sortBy=WinShares&ascending=false&pageNumber=1&pageSize=10' \
-H 'accept: text/plain'
Example Response:
[
{
"id": 5645,
"playerName": "James Harden",
"position": "SG",
"age": 25,
"games": 81,
"minutesPlayed": 2981,
"per": 26.7,
"tsPercent": 0.605,
"threePAR": 0.378,
"ftr": 0.561,
"offensiveRBPercent": 2.8,
"defensiveRBPercent": 14.2,
"totalRBPercent": 8.5,
"assistPercent": 34.6,
"stealPercent": 2.6,
"blockPercent": 1.6,
"turnoverPercent": 14.9,
"usagePercent": 31.3,
"offensiveWS": 12.2,
"defensiveWS": 4.2,
"winShares": 16.4,
"winSharesPer": 0.265,
"offensiveBox": 7,
"defensiveBox": 1.8,
"box": 8.8,
"vorp": 8.1,
"team": "HOU",
"season": 2015,
"playerId": "hardeja01"
},
...
]
(Response truncated for brevity.)
GET /playerdataadvanced/name/{playerName}
Description:
Retrieve all advanced data for players whose names match or partially match playerName
.
GET /playerdataadvanced/season/{season}
Description:
Retrieve all advanced data for players in a given season.
GET /playerdataadvanced/playerid/{playerId}
Description:
Retrieve advanced data by a player's unique or partial playerId
.
GET /playerdataadvanced/team/{team}
Description:
Retrieve advanced data for all players on a given team.
GET /playerdataadvanced/count
Description:
Retrieve the total count of all available advanced player records.
- 200 OK: Request successful; returns requested data.
- 404 Not Found: No matching records found.
- 500 Internal Server Error: Server encountered an error.
Query Player Totals (Season 2025, Team BOS):
curl -X GET \
'http://b8c40s8.143.198.70.30.sslip.io/api/PlayerDataTotals/query?season=2025&team=BOS&sortBy=PlayerName&ascending=true&pageNumber=1&pageSize=10' \
-H 'accept: text/plain'
Query Player Advanced (James Harden, Team HOU, Sorted by WinShares Desc):
curl -X GET \
'http://b8c40s8.143.198.70.30.sslip.io/api/PlayerDataAdvanced/query?playerName=James%20Harden&team=HOU&sortBy=WinShares&ascending=false&pageNumber=1&pageSize=10' \
-H 'accept: text/plain'
If you encounter any issues or have questions, please open an issue in this repository or contact me. πβΉοΈππ
You can view the full API documentation at http://b8c40s8.143.198.70.30.sslip.io/index.html