# NBA player stats tables API

Get NBA Player Stats data via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by Apish, pass parameters such as limit, measure_type, output, and retrieve structured data including unique NBA player identifier, player display name, player team abbreviation, minutes played metric, and net rating differential to rank advanced efficiency leaders, compare bench vs, starter production, and analyze situational splits.

Documentation: https://openany.si/nba/nba-player-stats-tables-api/46c73172-c200-49ca-b0dd-aff3ef54fba7/
API ID: 46c73172-c200-49ca-b0dd-aff3ef54fba7
Provider: apish
Contract revision: 3
Method: GET
Endpoint: https://api.openany.si/v1/agent-apis/apish/nba/v1/stats/players
Page update time: 2026-12-03T02:55:47.303Z
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:55:46.160Z. 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 Player Stats API

Retrieve paginated NBA player stats tables using optional measure\_type (base, advanced, misc, scoring, usage or defense), season, season\_type, per\_mode, team, split filters (location, outcome, period, last\_n\_games, date range), demographic filters (position, starter\_bench, experience, college, country, draft\_year), sort, direction, page and limit.

## What You Can Build

- **Rank advanced efficiency leaders**: Set measure\_type=advanced, min\_games=20 and sort=net\_rating to surface top impact players.
- **Compare bench vs. starter production**: Filter by starter\_bench=bench and position=G to scout Sixth Man candidates.
- **Analyze situational splits**: Combine location=road, outcome=W or last\_n\_games=10 to inspect hot streaks and road performers.

## Returned Data

| Field | Meaning |
| --- | --- |
| `rows[].player_id` | Unique NBA player identifier |
| `rows[].player_name` | Player display name |
| `rows[].team_abbreviation` | Player team abbreviation |
| `rows[].gp` | Games played in the filtered scope |
| `rows[].min` | Minutes played metric |
| `rows[].off_rating` | Offensive rating in advanced tables |
| `rows[].def_rating` | Defensive rating in advanced tables |
| `rows[].net_rating` | Net rating differential |
| `rows[].ts_pct` | True shooting percentage |
| `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 player stats tables 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": {
        "season": {
          "type": "string",
          "description": "Season as `2025-26` or its first year `2025`; 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"
          ]
        },
        "measure_type": {
          "type": "string",
          "description": "Table: `base` (default), `advanced`, `misc`, `scoring`, `usage`, `defense`."
        },
        "per_mode": {
          "type": "string",
          "description": "per_mode"
        },
        "team": {
          "type": "string",
          "description": "Team abbreviation (`LAL`, `BOS` ...) or nickname."
        },
        "opponent": {
          "type": "string",
          "description": "Only games against this team (abbreviation)."
        },
        "start_date": {
          "type": "string",
          "description": "From date (YYYY-MM-DD)."
        },
        "end_date": {
          "type": "string",
          "description": "To date (YYYY-MM-DD)."
        },
        "last_n_games": {
          "type": "integer",
          "description": "Only each team's last N games."
        },
        "month": {
          "type": "integer",
          "description": "Month of the season (1 = October ... 9 = June)."
        },
        "location": {
          "type": "string",
          "description": "`home` or `road`.",
          "enum": [
            "home",
            "road"
          ]
        },
        "outcome": {
          "type": "string",
          "description": "`W` or `L`.",
          "enum": [
            "W",
            "L"
          ]
        },
        "season_segment": {
          "type": "string",
          "description": "`pre-all-star` or `post-all-star`.",
          "enum": [
            "pre-all-star",
            "post-all-star"
          ]
        },
        "period": {
          "type": "integer",
          "description": "Only this quarter (1-4) or overtime (5+)."
        },
        "game_segment": {
          "type": "string",
          "description": "`first-half`, `second-half` or `overtime`.",
          "enum": [
            "first-half",
            "second-half",
            "overtime"
          ]
        },
        "conference": {
          "type": "string",
          "description": "`East` or `West`."
        },
        "division": {
          "type": "string",
          "description": "Division name, e.g. `Pacific`."
        },
        "vs_conference": {
          "type": "string",
          "description": "Only games against this conference."
        },
        "vs_division": {
          "type": "string",
          "description": "Only games against this division."
        },
        "position": {
          "type": "string",
          "description": "`G`, `F` or `C`.",
          "enum": [
            "G",
            "F",
            "C"
          ]
        },
        "starter_bench": {
          "type": "string",
          "description": "`starters` or `bench`.",
          "enum": [
            "starters",
            "bench"
          ]
        },
        "experience": {
          "type": "string",
          "description": "`rookie`, `sophomore` or `veteran`.",
          "enum": [
            "rookie",
            "sophomore",
            "veteran"
          ]
        },
        "college": {
          "type": "string",
          "description": "College name."
        },
        "country": {
          "type": "string",
          "description": "Country name, e.g. `France`."
        },
        "draft_year": {
          "type": "integer",
          "description": "Draft year."
        },
        "min_games": {
          "type": "integer",
          "description": "Minimum games played."
        },
        "sort": {
          "type": "string",
          "description": "Column to sort by (a snake_case column of the table, e.g. `pts`, `net_rating`, `plus_minus`)."
        },
        "direction": {
          "type": "string",
          "description": "`desc` (default) or `asc`.",
          "enum": [
            "desc",
            "asc"
          ]
        },
        "page": {
          "type": "integer",
          "description": "Page number, from 1."
        },
        "limit": {
          "type": "integer",
          "description": "Rows per page (1-500, default 100)."
        },
        "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": {
    "applied_filters": {
      "type": "object",
      "properties": {
        "measure_type": {
          "type": "string"
        },
        "per_mode": {
          "type": "string"
        },
        "season": {
          "type": "string"
        },
        "season_type": {
          "type": "string"
        }
      }
    },
    "cached": {
      "type": "boolean"
    },
    "count": {
      "type": "integer"
    },
    "credits_used": {
      "type": "integer"
    },
    "fetched_at": {
      "type": "string"
    },
    "next_page": {
      "type": "integer"
    },
    "page": {
      "type": "integer"
    },
    "rows": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "age": {
            "type": "integer"
          },
          "ast_pct": {
            "type": "number"
          },
          "ast_pct_rank": {
            "type": "integer"
          },
          "ast_ratio": {
            "type": "number"
          },
          "ast_ratio_rank": {
            "type": "integer"
          },
          "ast_to": {
            "type": "number"
          },
          "ast_to_rank": {
            "type": "integer"
          },
          "def_rating": {
            "type": "number"
          },
          "def_rating_rank": {
            "type": "integer"
          },
          "dreb_pct": {
            "type": "number"
          },
          "dreb_pct_rank": {
            "type": "integer"
          },
          "e_def_rating": {
            "type": "number"
          },
          "e_def_rating_rank": {
            "type": "integer"
          },
          "e_net_rating": {
            "type": "number"
          },
          "e_net_rating_rank": {
            "type": "integer"
          },
          "e_off_rating": {
            "type": "number"
          },
          "e_off_rating_rank": {
            "type": "integer"
          },
          "e_pace": {
            "type": "number"
          },
          "e_pace_rank": {
            "type": "integer"
          },
          "e_tov_pct": {
            "type": "number"
          },
          "e_tov_pct_rank": {
            "type": "integer"
          },
          "e_usg_pct": {
            "type": "number"
          },
          "e_usg_pct_rank": {
            "type": "integer"
          },
          "efg_pct": {
            "type": "number"
          },
          "efg_pct_rank": {
            "type": "integer"
          },
          "fg_pct": {
            "type": "number"
          },
          "fg_pct_rank": {
            "type": "integer"
          },
          "fga": {
            "type": "integer"
          },
          "fga_pg": {
            "type": "number"
          },
          "fga_pg_rank": {
            "type": "integer"
          },
          "fga_rank": {
            "type": "integer"
          },
          "fgm": {
            "type": "integer"
          },
          "fgm_pg": {
            "type": "number"
          },
          "fgm_pg_rank": {
            "type": "integer"
          },
          "fgm_rank": {
            "type": "integer"
          },
          "gp": {
            "type": "integer"
          },
          "gp_rank": {
            "type": "integer"
          },
          "l": {
            "type": "integer"
          },
          "l_rank": {
            "type": "integer"
          },
          "min": {
            "type": "number"
          },
          "min_rank": {
            "type": "integer"
          },
          "net_rating": {
            "type": "number"
          },
          "net_rating_rank": {
            "type": "integer"
          },
          "nickname": {
            "type": "string"
          },
          "off_rating": {
            "type": "number"
          },
          "off_rating_rank": {
            "type": "integer"
          },
          "oreb_pct": {
            "type": "number"
          },
          "oreb_pct_rank": {
            "type": "integer"
          },
          "pace": {
            "type": "number"
          },
          "pace_per40": {
            "type": "number"
          },
          "pace_rank": {
            "type": "integer"
          },
          "pie": {
            "type": "number"
          },
          "pie_rank": {
            "type": "integer"
          },
          "player_id": {
            "type": "integer"
          },
          "player_name": {
            "type": "string"
          },
          "poss": {
            "type": "integer"
          },
          "reb_pct": {
            "type": "number"
          },
          "reb_pct_rank": {
            "type": "integer"
          },
          "sp_work_def_rating": {
            "type": "number"
          },
          "sp_work_def_rating_rank": {
            "type": "integer"
          },
          "sp_work_net_rating": {
            "type": "number"
          },
          "sp_work_net_rating_rank": {
            "type": "integer"
          },
          "sp_work_off_rating": {
            "type": "number"
          },
          "sp_work_off_rating_rank": {
            "type": "integer"
          },
          "sp_work_pace": {
            "type": "number"
          },
          "sp_work_pace_rank": {
            "type": "integer"
          },
          "team_abbreviation": {
            "type": "string"
          },
          "team_count": {
            "type": "integer"
          },
          "team_id": {
            "type": "integer"
          },
          "tm_tov_pct": {
            "type": "number"
          },
          "tm_tov_pct_rank": {
            "type": "integer"
          },
          "ts_pct": {
            "type": "number"
          },
          "ts_pct_rank": {
            "type": "integer"
          },
          "usg_pct": {
            "type": "number"
          },
          "usg_pct_rank": {
            "type": "integer"
          },
          "w": {
            "type": "integer"
          },
          "w_pct": {
            "type": "number"
          },
          "w_pct_rank": {
            "type": "integer"
          },
          "w_rank": {
            "type": "integer"
          }
        }
      }
    },
    "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/stats/players?limit=1&measure_type=advanced&output=json&raw=0&season=2025-26' \
  -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
{
  "applied_filters": {
    "measure_type": "Advanced",
    "per_mode": "PerGame",
    "season": "2025-26",
    "season_type": "Regular Season"
  },
  "cached": false,
  "count": 1,
  "credits_used": 1,
  "fetched_at": "2026-11-19T12:22:31.157Z",
  "next_page": 2,
  "page": 1,
  "rows": [
    {
      "age": 25,
      "ast_pct": 0.046,
      "ast_pct_rank": 557,
      "ast_ratio": 7.1,
      "ast_ratio_rank": 563,
      "ast_to": 1.17,
      "ast_to_rank": 465,
      "def_rating": 110.7,
      "def_rating_rank": 194,
      "dreb_pct": 0.156,
      "dreb_pct_rank": 144,
      "e_def_rating": 110.6,
      "e_def_rating_rank": 188,
      "e_net_rating": -0.8,
      "e_net_rating_rank": 273,
      "e_off_rating": 109.8,
      "e_off_rating_rank": 363,
      "e_pace": 98.51,
      "e_pace_rank": 506,
      "e_tov_pct": 6.1,
      "e_tov_pct_rank": 61,
      "e_usg_pct": 0.18,
      "e_usg_pct_rank": 273,
      "efg_pct": 0.558,
      "efg_pct_rank": 218,
      "fg_pct": 0.436,
      "fg_pct_rank": 363,
      "fga": 78,
      "fga_pg": 3.3,
      "fga_pg_rank": 442,
      "fga_rank": 447,
      "fgm": 34,
      "fgm_pg": 1.4,
      "fgm_pg_rank": 454,
      "fgm_rank": 443,
      "gp": 24,
      "gp_rank": 433,
      "l": 12,
      "l_rank": 152,
      "min": 9.4,
      "min_rank": 486,
      "net_rating": -3.1,
      "net_rating_rank": 330,
      "nickname": "A.J.",
      "off_rating": 107.6,
      "off_rating_rank": 429,
      "oreb_pct": 0.039,
      "oreb_pct_rank": 278,
      "pace": 99.45,
      "pace_per40": 82.88,
      "pace_rank": 456,
      "pie": 0.091,
      "pie_rank": 268,
      "player_id": 1630639,
      "player_name": "A.J. Lawson",
      "poss": 471,
      "reb_pct": 0.096,
      "reb_pct_rank": 197,
      "sp_work_def_rating": 110.7,
      "sp_work_def_rating_rank": 194,
      "sp_work_net_rating": -3.1,
      "sp_work_net_rating_rank": 330,
      "sp_work_off_rating": 107.6,
      "sp_work_off_rating_rank": 429,
      "sp_work_pace": 99.45,
      "sp_work_pace_rank": 456,
      "team_abbreviation": "TOR",
      "team_count": 1,
      "team_id": 1610612761,
      "tm_tov_pct": 6.1,
      "tm_tov_pct_rank": 60,
      "ts_pct": 0.588,
      "ts_pct_rank": 230,
      "usg_pct": 0.172,
      "usg_pct_rank": 284,
      "w": 12,
      "w_pct": 0.5,
      "w_pct_rank": 303,
      "w_rank": 395
    }
  ],
  "total": 582
}
```

## 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 statistical tables does measure_type support?
measure_type accepts base (default), advanced, misc, scoring, usage and defense.

### How do I sort rows by an advanced metric?
Pass sort with a snake_case column name from the active table (such as pts, net_rating or plus_minus) and direction=desc or asc.

### Can I filter by rookies, bench players or specific positions?
Yes. Use experience (rookie, sophomore, veteran), starter_bench (starters, bench) and position (G, F, C).

### Why do the returned columns change with measure_type?
Each measure_type returns the schema columns and rank fields belonging to that NBA statistical table (for example off_rating and ts_pct in advanced).

### How do I paginate through all qualified players?
Set min_games as needed and paginate with page (from 1) and limit (1 to 500, default 100) until next_page is null.

### How do caching and response trimming work?
Output is JSON only. Pass fresh=1 to skip the 24-hour cache, raw=0 to omit raw blocks, or fields to select keys.

## Available implementations
- apish: https://openany.si/nba/nba-player-stats-tables-api/46c73172-c200-49ca-b0dd-aff3ef54fba7/

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