NBA League Leaders API
Get NBA League Leaders data via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by Apish, pass parameters such as limit, output, raw, and retrieve structured data including unique NBA player identifier, player display name, player team abbreviation, games played, and next page to render live stat leaderboards, track rookie leader races, and build all-time nba record views.
- Selected price
- $0.002 / billing creditPublished pricing
- Sellers / APIs
- 1 / 1
- Requests · 30d
- 0Selected implementation · last 30 days
- Success rate · 30d
- —No requests in this period
NBA League Leaders API
Prepare your request, then continue with your agent.
Pricing
$0.002 / billing credit
Calculated from input parameters and actual returned quantities. Estimate the maximum cost before calling.
- Provider
- API
- Pricing
On this page
Overview
NBA League Leaders API
Query NBA statistical leaderboards using optional stat (PTS default, plus REB, AST, STL, BLK, FG_PCT, FG3M, EFF and more), season (such as 2025-26 or all-time), season_type, per_mode (per_game, totals or per_48), scope (s, rs or rookies), page and limit (1-500, default 50).
Quick Facts
| Fact | Value |
|---|---|
| Access | OpenAny REST |
| Authentication | OpenAny API key in the Authorization header |
| Core inputs | Optional query: stat (PTS default), season (e.g. 2025-26 or all-time), season_type, per_mode (per_game/totals/per_48), scope (s/rs/rookies), page, limit (1-500, default 50). |
| Selected implementation | apish · NBA league leaders API |
| Billing | See the pricing area for the selected implementation and request options |
What You Can Build
- Render live stat leaderboards: Query PTS, REB, AST, STL and BLK with scope=rs to display official qualified league leaders.
- Track rookie leader races: Set scope=rookies to compare first-year player rankings across scoring, rebounds and assists.
- Build all-time NBA record views: Pass season=all-time and per_mode=totals to retrieve career statistical leaders.
Returned Data
| Field | Meaning |
|---|---|
stat |
Stat category used to rank leaders |
season |
Season or all-time scope queried |
per_mode |
Aggregation mode applied to stats |
leaders[].rank |
Player rank in the requested leaderboard |
leaders[].player_id |
Unique NBA player identifier |
leaders[].player |
Player display name |
leaders[].team |
Player team abbreviation |
leaders[].gp |
Games played |
leaders[].pts |
Points value for the selected mode |
next_page |
Next page number, or null on the final page |
Quick Start
- Set OPENANY_API_KEY to your OpenAny API key.
- Review the selected implementation and pricing, then adapt the request below to your target.
- Check the HTTP response and business result before reading optional fields.
curl --request GET --get \
https://api.openany.si/v1/agent-apis/apish/nba/v1/leaders \
-H "Authorization: Bearer ${OPENANY_API_KEY}" \
--data-urlencode limit=1 \
--data-urlencode output=json \
--data-urlencode raw=0 \
--data-urlencode stat=PTS
Request and Response Examples
The response example is a documentation reference and may be abbreviated. The documented request is a calling template; use the published contract and returned response for the selected implementation.
Published NBA League Leaders API implementation contract.
Pricing and Billing
The pricing area reflects the selected API implementation. Review its billing unit and any request-dependent rules before calling; a source service's public availability does not determine OpenAny billing.
Frequently Asked Questions
Related APIs
Playground
Run sends a real API request. Charges follow the published API contract.
Sellers
| Seller | Pricing | Requests · 30d | Performance | Access |
|---|---|---|---|---|
apishCurrent NBA league leaders API · GET · View API reference | $0.002 / billing credit | 0 | —successP50— |
- Pricing
- $0.002
Calculated from input parameters and actual returned quantities. Estimate the maximum cost before calling.
Statistics use persisted gateway logs from the last 30 days up to now, including today.
Success rate = successful requests / all requests;
P50 = median latency of successful requests.
Prices reflect the published API contract. Contract revision: 3. Price update time: not supplied.
API
- Method
- GET
- Endpoint
https://api.openany.si/v1/agent-apis/apish/nba/v1/leaders- Content type
- application/json
- Authentication
Authorization: Bearer $OPENANY_API_KEY
Input parameters
Fields in this listing; additional options and input encoding can vary by provider.
| Parameter | Location | Type | Required | Description |
|---|---|---|---|---|
stat | URL query parametersquery | string | No | `PTS` (default), `REB`, `AST`, `STL`, `BLK`, `TOV`, `EFF`, `MIN`, `FGM`, `FGA`, `FG_PCT`, `FG3M`, `FG3A`, `FG3_PCT`, `FTM`, `FTA`, `FT_PCT`, `OREB`, `DREB`, `AST_TOV`, `STL_TOV`, `PF`. |
season | URL query parametersquery | string | No | Season as `2025-26` or `all-time`; the current season by default. |
season_type | URL query parametersquery | string | No | `regular` (default), `playoffs`, `preseason`, `play-in`, `cup` (NBA Cup) or `all-star`. enum: "regular", "playoffs", "preseason", "play-in", "cup", "all-star" |
per_mode | URL query parametersquery | string | No | `per_game` (default), `totals` or `per_48`. Percentage and ratio stats (`FG_PCT`, `FG3_PCT`, `FT_PCT`, `AST_TOV`, `STL_TOV`) and `PF` always use season totals. enum: "per_game", "totals", "per_48" |
scope | URL query parametersquery | string | No | `s` all players (default), `rs` qualified players, `rookies`. enum: "s", "rs", "rookies" |
page | URL query parametersquery | integer | No | Page number, from 1. |
limit | URL query parametersquery | integer | No | Players per page (1-500, default 50). |
raw | URL query parametersquery | string | No | 0 leaves out the bulky `raw` source blocks (often 10-30x smaller). enum: "0", "1" |
fields | URL query parametersquery | string | No | Comma-separated fields to return, e.g. `posts.id,posts.title`. Call metadata is always included. |
fresh | URL query parametersquery | string | No | 1 skips the 24-hour cache and fetches live. enum: "1" |
output | URL query parametersquery | string | No | JSON only for this OpenAny product. Omit output or use json; CSV and NDJSON are not supported. enum: "json" |
records | URL query parametersquery | string | No | With output=csv|ndjson: the top-level list to turn into rows (e.g. `reviews`), or `.` for the whole object as one row. |
Required markers inside a nested object or variant apply when that object or variant is used.
Response structure
cachedbooleancountintegercredits_usedintegerfetched_atstringleadersobject[]astnumberblknumberdrebnumbereffnumberfg3_anumberfg3_mnumberfg3_pctnumberfg_pctnumberfganumberfgmnumberft_pctnumberftanumberftmnumbergpintegerminnumberorebnumberplayerstringplayer_idintegerptsnumberrankintegerrebintegerstlnumberteamstringteam_idintegertovnumber
next_pageintegerpageintegerper_modestringscopestringseasonstringseason_typestringstatstringtotalinteger
Composite rule pricing
Calculated from input parameters and actual returned quantities. Estimate the maximum cost before calling.
Base fee: $0.000000. One matching variant replaces the base fee. Matching add-ons and quantity charges are added.
| Fee item | Price | Metering source | When | Quantity limit |
|---|---|---|---|---|
| Actual API.SH credits consumed | $0.002000 / billing credit | Response · /credits_used · Numeric value | Always | 1 billing credit · Decimal places: 0 |
Each quantity charge is rounded before summing: ceil. Requests exceeding this cost limit are rejected; it is not a price cap: $0.002000.
Response quantities settle after the response. Before execution, the maximum quantity determines the reservation; unused reservation is released. Missing or invalid quantities are not treated as zero.
Pricing parameters and defaults
[]
Agent integration
Copy the resource contract without sharing an API key.
Error handling
| Status | Next step |
|---|---|
400 | Check the offering and request fields. |
401 / 403 | Verify your credentials and access permissions. |
402 | Inspect the selected access mode and returned payment requirements. |
429 | Respect the returned rate limit and retry guidance. |
5xx | Inspect the error and usage record before retrying a paid operation. |
Examples
Official example · Live API.SH response · Minimal request
Example from the provider's documentation. Field values in your results will differ.
Prepare your environment
Use a terminal with cURL installed.
Use an OpenAny API key with shared-balance access. Confirm availability and price before running; a call may charge your balance.
Set the key in your terminal using the hidden prompt below. Keep its value out of source files and logs.
Terminal · macOS / Linuxprintf 'OpenAny API key: ' read -r -s OPENANY_API_KEY export OPENANY_API_KEY printf '\n'Run the request
Paste the complete command below into your terminal.
Values to replace before running 12
Review these request fields before running. Keep the published provider and request method unchanged.
stat- `PTS` (default), `REB`, `AST`, `STL`, `BLK`, `TOV`, `EFF`, `MIN`, `FGM`, `FGA`, `FG_PCT`, `FG3M`, `FG3A`, `FG3_PCT`, `FTM`, `FTA`, `FT_PCT`, `OREB`, `DREB`, `AST_TOV`, `STL_TOV`, `PF`.
season- Season as `2025-26` or `all-time`; the current season by default.
season_type- `regular` (default), `playoffs`, `preseason`, `play-in`, `cup` (NBA Cup) or `all-star`.
per_mode- `per_game` (default), `totals` or `per_48`. Percentage and ratio stats (`FG_PCT`, `FG3_PCT`, `FT_PCT`, `AST_TOV`, `STL_TOV`) and `PF` always use season totals.
scope- `s` all players (default), `rs` qualified players, `rookies`.
page- Page number, from 1.
limit- Players per page (1-500, default 50).
raw- 0 leaves out the bulky `raw` source blocks (often 10-30x smaller).
fields- Comma-separated fields to return, e.g. `posts.id,posts.title`. Call metadata is always included.
fresh- 1 skips the 24-hour cache and fetches live.
output- JSON only for this OpenAny product. Omit output or use json; CSV and NDJSON are not supported.
records- With output=csv|ndjson: the top-level list to turn into rows (e.g. `reviews`), or `.` for the whole object as one row.
Terminal · cURLcurl \ 'https://api.openany.si/v1/agent-apis/apish/nba/v1/leaders?limit=1&output=json&raw=0&stat=PTS' \ -X GET \ -H "Authorization: Bearer $OPENANY_API_KEY" \ -H 'Content-Type: application/json'Check the response
Sample response · Documented HTTP 200
Sample response{ "cached": false, "count": 1, "credits_used": 1, "fetched_at": "2026-11-19T12:22:22.508Z", "leaders": [ { "ast": 7.6, "blk": 0.6, "dreb": 6.6, "eff": 35.1, "fg3_a": 13.4, "fg3_m": 5.1, "fg3_pct": 0.383, "fg_pct": 0.466, "fga": 25.6, "fgm": 11.9, "ft_pct": 0.864, "fta": 10.5, "ftm": 9.1, "gp": 14, "min": 36.4, "oreb": 0.4, "player": "Luka Dončić", "player_id": 1629029, "pts": 38.1, "rank": 1, "reb": 7, "stl": 1.9, "team": "LAL", "team_id": 1610612747, "tov": 5.1 } ], "next_page": 2, "page": 1, "per_mode": "PerGame", "scope": "s", "season": "2026-27", "season_type": "Regular Season", "stat": "PTS", "total": 284 }