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

Documentation: https://openany.si/nba/nba-league-leaders-api/7f210ccc-bf6b-47bc-b463-c97dd2a20fac/
API ID: 7f210ccc-bf6b-47bc-b463-c97dd2a20fac
Provider: apish
Contract revision: 3
Method: GET
Endpoint: https://api.openany.si/v1/agent-apis/apish/nba/v1/leaders
Page update time: 2026-12-03T02:55:47.202Z
Access: OpenAny REST
OpenAny MCP: availability is not supplied by this REST contract. Check get_api on the configured OpenAny MCP server before execution.
Request content type: none
Execution mode: sync
Authentication: Authorization: Bearer $OPENANY_API_KEY

## Billing
Price: $0.002 / billing credit
API-key calls use your shared balance. Review the published billing rules before making a paid request.
Price source: OpenAny public API contract.
Contract update time: 2026-12-03T02:40:30.439Z. This is not a price-change timestamp.
```json
{
  "currency": "USD",
  "mode": "rules",
  "parameters": [],
  "policy_version": 2,
  "sale": {
    "addons": [],
    "base_price_micro_usd": "0",
    "max_cost_micro_usd": "2000",
    "quantities": [
      {
        "id": "upstream_credits",
        "label": "Actual API.SH credits consumed",
        "max_quantity": "1",
        "measure": "value",
        "pointer": "/credits_used",
        "price_micro_usd": "2000",
        "quantity_scale": 0,
        "source": "response",
        "unit": "credit",
        "unit_quantity": "1"
      }
    ],
    "rounding": "ceil",
    "variants": []
  }
}
```

## Usage and limits
## 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).

## 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 |

## Request parameters
```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "NBA league leaders API request inputs",
  "$comment": "Declared input types grouped by HTTP location. Path, query and header values describe decoded inputs and are serialized as text on the wire; body is the payload. This is not an exhaustive provider contract or a schema for the raw HTTP request.",
  "type": "object",
  "properties": {
    "path": {
      "type": "object",
      "properties": {}
    },
    "query": {
      "type": "object",
      "properties": {
        "stat": {
          "type": "string",
          "description": "`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": {
          "type": "string",
          "description": "Season as `2025-26` or `all-time`; the current season by default."
        },
        "season_type": {
          "type": "string",
          "description": "`regular` (default), `playoffs`, `preseason`, `play-in`, `cup` (NBA Cup) or `all-star`.",
          "enum": [
            "regular",
            "playoffs",
            "preseason",
            "play-in",
            "cup",
            "all-star"
          ]
        },
        "per_mode": {
          "type": "string",
          "description": "`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": {
          "type": "string",
          "description": "`s` all players (default), `rs` qualified players, `rookies`.",
          "enum": [
            "s",
            "rs",
            "rookies"
          ]
        },
        "page": {
          "type": "integer",
          "description": "Page number, from 1."
        },
        "limit": {
          "type": "integer",
          "description": "Players per page (1-500, default 50)."
        },
        "raw": {
          "type": "string",
          "description": "0 leaves out the bulky `raw` source blocks (often 10-30x smaller).",
          "enum": [
            "0",
            "1"
          ]
        },
        "fields": {
          "type": "string",
          "description": "Comma-separated fields to return, e.g. `posts.id,posts.title`. Call metadata is always included."
        },
        "fresh": {
          "type": "string",
          "description": "1 skips the 24-hour cache and fetches live.",
          "enum": [
            "1"
          ]
        },
        "output": {
          "type": "string",
          "description": "JSON only for this OpenAny product. Omit output or use json; CSV and NDJSON are not supported.",
          "enum": [
            "json"
          ]
        },
        "records": {
          "type": "string",
          "description": "With output=csv|ndjson: the top-level list to turn into rows (e.g. `reviews`), or `.` for the whole object as one row."
        }
      }
    },
    "headers": {
      "type": "object",
      "properties": {}
    }
  },
  "required": [
    "path",
    "query",
    "headers"
  ]
}
```

## Response fields
Source: Inferred from examples; not an exhaustive provider schema.
```json
{
  "type": "object",
  "properties": {
    "cached": {
      "type": "boolean"
    },
    "count": {
      "type": "integer"
    },
    "credits_used": {
      "type": "integer"
    },
    "fetched_at": {
      "type": "string"
    },
    "leaders": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "ast": {
            "type": "number"
          },
          "blk": {
            "type": "number"
          },
          "dreb": {
            "type": "number"
          },
          "eff": {
            "type": "number"
          },
          "fg3_a": {
            "type": "number"
          },
          "fg3_m": {
            "type": "number"
          },
          "fg3_pct": {
            "type": "number"
          },
          "fg_pct": {
            "type": "number"
          },
          "fga": {
            "type": "number"
          },
          "fgm": {
            "type": "number"
          },
          "ft_pct": {
            "type": "number"
          },
          "fta": {
            "type": "number"
          },
          "ftm": {
            "type": "number"
          },
          "gp": {
            "type": "integer"
          },
          "min": {
            "type": "number"
          },
          "oreb": {
            "type": "number"
          },
          "player": {
            "type": "string"
          },
          "player_id": {
            "type": "integer"
          },
          "pts": {
            "type": "number"
          },
          "rank": {
            "type": "integer"
          },
          "reb": {
            "type": "integer"
          },
          "stl": {
            "type": "number"
          },
          "team": {
            "type": "string"
          },
          "team_id": {
            "type": "integer"
          },
          "tov": {
            "type": "number"
          }
        }
      }
    },
    "next_page": {
      "type": "integer"
    },
    "page": {
      "type": "integer"
    },
    "per_mode": {
      "type": "string"
    },
    "scope": {
      "type": "string"
    },
    "season": {
      "type": "string"
    },
    "season_type": {
      "type": "string"
    },
    "stat": {
      "type": "string"
    },
    "total": {
      "type": "integer"
    }
  }
}
```

## Request example
Scenario: Official example · Live API.SH response · Minimal request
```bash
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'
```

## Response example
Example from the provider's documentation. Field values in your results will differ.
Sample response · Documented HTTP 200
```json
{
  "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
}
```

## Error handling
400: Check the request fields.
401 / 403: Verify credentials and access permissions.
402: Inspect payment requirements and balance.
429: Respect returned retry guidance.
5xx: Inspect the error and usage record before retrying a paid operation.

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

## Available implementations
- apish: https://openany.si/nba/nba-league-leaders-api/7f210ccc-bf6b-47bc-b463-c97dd2a20fac/

Integration guide: https://openany.si/docs/
Agent setup: https://openany.si/SKILL.md
