nba_stats_call
Call any stats.nba.com operation by name and optional query parameters to receive column-oriented JSON with headers and row data. Uses built-in defaults for every endpoint.
Instructions
Gateway to the stats.nba.com /stats/ analytics API (138 operations). Supply an
operation (the /stats/ path segment, e.g. "leaguedashplayerstats",
"shotchartdetail", "boxscoretraditionalv3", "playercareerstats") plus a
query_params map; each operation already carries NBA's full default param set,
so override only the fields you need (e.g. {Season: "2024-25", PlayerID: "201939"}).
Browse every operation, its required params and its defaults in the
nba://stats/operations resource. Most responses are column-oriented
({resultSets:[{name, headers, rowSet}]}); zip headers with each row.
Returns: (JSON object)
Auth: none needed.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| operation | Yes | The operation to run. Valid names come from this provider's catalogue resource (see `list_resources`) — guessing one returns an error listing the alternatives. | |
| path_params | No | Values for the operation's URL path placeholders, as an object keyed by placeholder name. The catalogue resource lists which each operation needs. | |
| query_params | No | Query-string parameters for the operation, as an object. Optional for most operations; the catalogue resource documents the accepted keys. |