# NBA team stats tables API

Get NBA Team Stats 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 team identifier, team full name, games won, games lost, and league rank for points to build league-wide team power rankings, evaluate clutch or fourth-quarter teams, and audit conference and road performance.

Documentation: https://openany.si/market/apis/nba/nba-team-stats-tables-api/?offering=ec575929-7bc8-433c-983c-755ec59066e9
API ID: ec575929-7bc8-433c-983c-755ec59066e9
Provider: apish
Contract revision: 3
Method: GET
Endpoint: https://api.openany.si/v1/agent-apis/apish/nba/v1/stats/teams
Page update time: 2026-12-03T02:55:47.376Z
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. Price update time: not supplied.
Contract update time: 2026-12-03T02:55:46.738Z. 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": []
  }
}
```

## Request parameters
```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "NBA team 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`, `fourfactors`, `opponent`."
        },
        "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."
        },
        "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 30)."
        },
        "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": {
          "ast": {
            "type": "number"
          },
          "ast_rank": {
            "type": "integer"
          },
          "blk": {
            "type": "number"
          },
          "blk_rank": {
            "type": "integer"
          },
          "blka": {
            "type": "number"
          },
          "blka_rank": {
            "type": "integer"
          },
          "dreb": {
            "type": "number"
          },
          "dreb_rank": {
            "type": "integer"
          },
          "fg3_a": {
            "type": "number"
          },
          "fg3_a_rank": {
            "type": "integer"
          },
          "fg3_m": {
            "type": "number"
          },
          "fg3_m_rank": {
            "type": "integer"
          },
          "fg3_pct": {
            "type": "number"
          },
          "fg3_pct_rank": {
            "type": "integer"
          },
          "fg_pct": {
            "type": "number"
          },
          "fg_pct_rank": {
            "type": "integer"
          },
          "fga": {
            "type": "integer"
          },
          "fga_rank": {
            "type": "integer"
          },
          "fgm": {
            "type": "number"
          },
          "fgm_rank": {
            "type": "integer"
          },
          "ft_pct": {
            "type": "number"
          },
          "ft_pct_rank": {
            "type": "integer"
          },
          "fta": {
            "type": "number"
          },
          "fta_rank": {
            "type": "integer"
          },
          "ftm": {
            "type": "number"
          },
          "ftm_rank": {
            "type": "integer"
          },
          "gp": {
            "type": "integer"
          },
          "gp_rank": {
            "type": "integer"
          },
          "l": {
            "type": "integer"
          },
          "l_rank": {
            "type": "integer"
          },
          "min": {
            "type": "number"
          },
          "min_rank": {
            "type": "integer"
          },
          "oreb": {
            "type": "integer"
          },
          "oreb_rank": {
            "type": "integer"
          },
          "pf": {
            "type": "number"
          },
          "pf_rank": {
            "type": "integer"
          },
          "pfd": {
            "type": "number"
          },
          "pfd_rank": {
            "type": "integer"
          },
          "plus_minus": {
            "type": "number"
          },
          "plus_minus_rank": {
            "type": "integer"
          },
          "pts": {
            "type": "number"
          },
          "pts_rank": {
            "type": "integer"
          },
          "reb": {
            "type": "number"
          },
          "reb_rank": {
            "type": "integer"
          },
          "stl": {
            "type": "number"
          },
          "stl_rank": {
            "type": "integer"
          },
          "team_id": {
            "type": "integer"
          },
          "team_name": {
            "type": "string"
          },
          "tov": {
            "type": "number"
          },
          "tov_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/teams?limit=1&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": "Base",
    "per_mode": "PerGame",
    "season": "2025-26",
    "season_type": "Regular Season"
  },
  "cached": false,
  "count": 1,
  "credits_used": 1,
  "fetched_at": "2026-11-19T12:22:36.388Z",
  "next_page": 2,
  "page": 1,
  "rows": [
    {
      "ast": 30.1,
      "ast_rank": 1,
      "blk": 4.7,
      "blk_rank": 18,
      "blka": 4.9,
      "blka_rank": 17,
      "dreb": 32.6,
      "dreb_rank": 13,
      "fg3_a": 39.5,
      "fg3_a_rank": 9,
      "fg3_m": 14.6,
      "fg3_m_rank": 6,
      "fg3_pct": 0.371,
      "fg3_pct_rank": 5,
      "fg_pct": 0.474,
      "fg_pct_rank": 13,
      "fga": 92,
      "fga_rank": 2,
      "fgm": 43.6,
      "fgm_rank": 2,
      "ft_pct": 0.774,
      "ft_pct_rank": 20,
      "fta": 21.5,
      "fta_rank": 24,
      "ftm": 16.6,
      "ftm_rank": 26,
      "gp": 82,
      "gp_rank": 1,
      "l": 36,
      "l_rank": 11,
      "min": 48.2,
      "min_rank": 14,
      "oreb": 11,
      "oreb_rank": 18,
      "pf": 19.7,
      "pf_rank": 14,
      "pfd": 18.5,
      "pfd_rank": 26,
      "plus_minus": 2.4,
      "plus_minus_rank": 12,
      "pts": 118.5,
      "pts_rank": 6,
      "reb": 43.5,
      "reb_rank": 18,
      "stl": 9.4,
      "stl_rank": 5,
      "team_id": 1610612737,
      "team_name": "Atlanta Hawks",
      "tov": 14.2,
      "tov_rank": 10,
      "w": 46,
      "w_pct": 0.561,
      "w_pct_rank": 11,
      "w_rank": 11
    }
  ],
  "total": 30
}
```

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

## Available implementations
- apish: https://openany.si/market/apis/nba/nba-team-stats-tables-api/?offering=ec575929-7bc8-433c-983c-755ec59066e9

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