OpenAny
Get API keyAPI Key
APIData

nba logo
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
USE THIS API

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
Connect your agent
On this page

Overview

Overview
NBA League Leaders API

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

  1. Set OPENANY_API_KEY to your OpenAny API key.
  2. Review the selected implementation and pricing, then adapt the request below to your target.
  3. Check the HTTP response and business result before reading optional fields.
bash
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

View FAQ

Related APIs

Playground

Run sends a real API request. Charges follow the published API contract.

Request parameters
Optional parameters (12)
`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 as `2025-26` or `all-time`; the current season by default.
`regular` (default), `playoffs`, `preseason`, `play-in`, `cup` (NBA Cup) or `all-star`.
`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.
`s` all players (default), `rs` qualified players, `rookies`.
Page number, from 1.
Players per page (1-500, default 50).
0 leaves out the bulky `raw` source blocks (often 10-30x smaller).
Comma-separated fields to return, e.g. `posts.id,posts.title`. Call metadata is always included.
1 skips the 24-hour cache and fetches live.
JSON only for this OpenAny product. Omit output or use json; CSV and NDJSON are not supported.
With output=csv|ndjson: the top-level list to turn into rows (e.g. `reviews`), or `.` for the whole object as one row.

Sample response

Run a request to see the actual response. Published samples are in Examples.

Response result

Sellers

SellerPricingRequests · 30dPerformanceAccess
apishCurrent
NBA league leaders API · GET · View API reference
$0.002 / billing credit0
—successP50—
Selected implementation traffic · 11/3/2026 – 12/3/2026 (UTC)
Selected pricing · apishUSD / billing credit
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
View request and response examples

Input parameters

Fields in this listing; additional options and input encoding can vary by provider.

ParameterLocationTypeRequiredDescription
statURL query parametersquerystringNo

`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`.

seasonURL query parametersquerystringNo

Season as `2025-26` or `all-time`; the current season by default.

season_typeURL query parametersquerystringNo

`regular` (default), `playoffs`, `preseason`, `play-in`, `cup` (NBA Cup) or `all-star`.

enum: "regular", "playoffs", "preseason", "play-in", "cup", "all-star"

per_modeURL query parametersquerystringNo

`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"

scopeURL query parametersquerystringNo

`s` all players (default), `rs` qualified players, `rookies`.

enum: "s", "rs", "rookies"

pageURL query parametersqueryintegerNo

Page number, from 1.

limitURL query parametersqueryintegerNo

Players per page (1-500, default 50).

rawURL query parametersquerystringNo

0 leaves out the bulky `raw` source blocks (often 10-30x smaller).

enum: "0", "1"

fieldsURL query parametersquerystringNo

Comma-separated fields to return, e.g. `posts.id,posts.title`. Call metadata is always included.

freshURL query parametersquerystringNo

1 skips the 24-hour cache and fetches live.

enum: "1"

outputURL query parametersquerystringNo

JSON only for this OpenAny product. Omit output or use json; CSV and NDJSON are not supported.

enum: "json"

recordsURL query parametersquerystringNo

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

Inferred from examples
  • cachedboolean
  • countinteger
  • credits_usedinteger
  • fetched_atstring
  • leadersobject[]
    • astnumber
    • blknumber
    • drebnumber
    • effnumber
    • fg3_anumber
    • fg3_mnumber
    • fg3_pctnumber
    • fg_pctnumber
    • fganumber
    • fgmnumber
    • ft_pctnumber
    • ftanumber
    • ftmnumber
    • gpinteger
    • minnumber
    • orebnumber
    • playerstring
    • player_idinteger
    • ptsnumber
    • rankinteger
    • rebinteger
    • stlnumber
    • teamstring
    • team_idinteger
    • tovnumber
  • next_pageinteger
  • pageinteger
  • per_modestring
  • scopestring
  • seasonstring
  • season_typestring
  • statstring
  • totalinteger

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 itemPriceMetering sourceWhenQuantity limit
Actual API.SH credits consumed$0.002000 / billing creditResponse · /credits_used · Numeric valueAlways1 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.

Download MDView API Markdown

Error handling

StatusNext step
400Check the offering and request fields.
401 / 403Verify your credentials and access permissions.
402Inspect the selected access mode and returned payment requirements.
429Respect the returned rate limit and retry guidance.
5xxInspect 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.

  1. 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 / Linux
    printf 'OpenAny API key: '
    read -r -s OPENANY_API_KEY
    export OPENANY_API_KEY
    printf '\n'
  2. 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 · cURL
    curl \
      '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'
  3. 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
    }

Common questions

Which stat categories are supported in the stat parameter?

Supported values include 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 and PF.

How do I query all-time NBA leaders instead of a single season?

Set season=all-time; otherwise pass a season like 2025-26 or omit it for the current season.

What does the scope parameter filter?

scope accepts s for all players (default), rs for qualified players, or rookies for first-year players.

Are percentage and ratio stats affected by per_mode?

No. Percentage and ratio stats (FG_PCT, FG3_PCT, FT_PCT, AST_TOV, STL_TOV) and PF always use season totals.

How do I paginate leaderboard results?

Use page (starting at 1) and limit (1 to 500, default 50), and check next_page for additional pages.

How do caching and output options work?

Output is JSON only. Pass fresh=1 to bypass the 24-hour cache and raw=0 to omit bulky upstream blocks.

Use NBA League Leaders API with your agent

Inspect endpoint contracts and confirm availability and pricing before a paid call.