OpenAny
Get API keyAPI Key
APIData

nba logo
NBA Team Stats 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.

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 Team Stats 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 Team Stats API

NBA Team Stats API

Query NBA team statistics tables using optional season, season_type, measure_type (base, advanced, misc, scoring, usage, defense, fourfactors or opponent), per_mode, team, opponent, split filters (location, outcome, period, game_segment, conference, division, date range, last_n_games), sort, direction, page and limit (1-500, default 30).

Quick Facts

Fact Value
Access OpenAny REST
Authentication OpenAny API key in the Authorization header
Core inputs Optional query: season, season_type, measure_type (base/advanced/misc/scoring/usage/defense/fourfactors/opponent), per_mode, team, opponent, split filters, sort, direction, page, limit (1-500, default 30).
Selected implementation apish · NBA team stats tables API
Billing See the pricing area for the selected implementation and request options

What You Can Build

  • Build league-wide team power rankings: Query measure_type=advanced or fourfactors and sort by net_rating or plus_minus.
  • Evaluate clutch or fourth-quarter teams: Filter by period=4 or game_segment=second-half to compare late-game team efficiency.
  • Audit conference and road performance: Combine location=road and vs_conference=West to measure how teams perform against tough splits.

Returned Data

Field Meaning
rows[].team_id Unique NBA team identifier
rows[].team_name Team full name
rows[].gp Games played in the filtered scope
rows[].w Games won
rows[].l Games lost
rows[].pts Points metric for the selected mode
rows[].pts_rank League rank for points
rows[].fg_pct Team field goal percentage
rows[].plus_minus Team point differential
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/stats/teams \
  -H "Authorization: Bearer ${OPENANY_API_KEY}" \
  --data-urlencode limit=1 \
  --data-urlencode output=json \
  --data-urlencode raw=0 \
  --data-urlencode season=2025-26

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 Team Stats 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 (29)
Season as `2025-26` or its first year `2025`; the current season by default.
`regular` (default), `playoffs`, `preseason`, `play-in`, `cup` (NBA Cup) or `all-star`.
Table: `base` (default), `advanced`, `misc`, `scoring`, `usage`, `defense`, `fourfactors`, `opponent`.
per_mode
Team abbreviation (`LAL`, `BOS` ...) or nickname.
Only games against this team (abbreviation).
From date (YYYY-MM-DD).
To date (YYYY-MM-DD).
Only each team's last N games.
Month of the season (1 = October ... 9 = June).
`home` or `road`.
`W` or `L`.
`pre-all-star` or `post-all-star`.
Only this quarter (1-4) or overtime (5+).
`first-half`, `second-half` or `overtime`.
`East` or `West`.
Division name, e.g. `Pacific`.
Only games against this conference.
Only games against this division.
Minimum games played.
Column to sort by (a snake_case column of the table, e.g. `pts`, `net_rating`, `plus_minus`).
`desc` (default) or `asc`.
Page number, from 1.
Rows per page (1-500, default 30).
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 team stats tables 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/stats/teams
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
seasonURL query parametersquerystringNo

Season as `2025-26` or its first year `2025`; 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"

measure_typeURL query parametersquerystringNo

Table: `base` (default), `advanced`, `misc`, `scoring`, `usage`, `defense`, `fourfactors`, `opponent`.

per_modeURL query parametersquerystringNo

per_mode

teamURL query parametersquerystringNo

Team abbreviation (`LAL`, `BOS` ...) or nickname.

opponentURL query parametersquerystringNo

Only games against this team (abbreviation).

start_dateURL query parametersquerystringNo

From date (YYYY-MM-DD).

end_dateURL query parametersquerystringNo

To date (YYYY-MM-DD).

last_n_gamesURL query parametersqueryintegerNo

Only each team's last N games.

monthURL query parametersqueryintegerNo

Month of the season (1 = October ... 9 = June).

locationURL query parametersquerystringNo

`home` or `road`.

enum: "home", "road"

outcomeURL query parametersquerystringNo

`W` or `L`.

enum: "W", "L"

season_segmentURL query parametersquerystringNo

`pre-all-star` or `post-all-star`.

enum: "pre-all-star", "post-all-star"

periodURL query parametersqueryintegerNo

Only this quarter (1-4) or overtime (5+).

game_segmentURL query parametersquerystringNo

`first-half`, `second-half` or `overtime`.

enum: "first-half", "second-half", "overtime"

conferenceURL query parametersquerystringNo

`East` or `West`.

divisionURL query parametersquerystringNo

Division name, e.g. `Pacific`.

vs_conferenceURL query parametersquerystringNo

Only games against this conference.

vs_divisionURL query parametersquerystringNo

Only games against this division.

min_gamesURL query parametersqueryintegerNo

Minimum games played.

sortURL query parametersquerystringNo

Column to sort by (a snake_case column of the table, e.g. `pts`, `net_rating`, `plus_minus`).

directionURL query parametersquerystringNo

`desc` (default) or `asc`.

enum: "desc", "asc"

pageURL query parametersqueryintegerNo

Page number, from 1.

limitURL query parametersqueryintegerNo

Rows per page (1-500, default 30).

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
  • applied_filtersobject
    • measure_typestring
    • per_modestring
    • seasonstring
    • season_typestring
  • cachedboolean
  • countinteger
  • credits_usedinteger
  • fetched_atstring
  • next_pageinteger
  • pageinteger
  • rowsobject[]
    • astnumber
    • ast_rankinteger
    • blknumber
    • blk_rankinteger
    • blkanumber
    • blka_rankinteger
    • drebnumber
    • dreb_rankinteger
    • fg3_anumber
    • fg3_a_rankinteger
    • fg3_mnumber
    • fg3_m_rankinteger
    • fg3_pctnumber
    • fg3_pct_rankinteger
    • fg_pctnumber
    • fg_pct_rankinteger
    • fgainteger
    • fga_rankinteger
    • fgmnumber
    • fgm_rankinteger
    • ft_pctnumber
    • ft_pct_rankinteger
    • ftanumber
    • fta_rankinteger
    • ftmnumber
    • ftm_rankinteger
    • gpinteger
    • gp_rankinteger
    • linteger
    • l_rankinteger
    • minnumber
    • min_rankinteger
    • orebinteger
    • oreb_rankinteger
    • pfnumber
    • pf_rankinteger
    • pfdnumber
    • pfd_rankinteger
    • plus_minusnumber
    • plus_minus_rankinteger
    • ptsnumber
    • pts_rankinteger
    • rebnumber
    • reb_rankinteger
    • stlnumber
    • stl_rankinteger
    • team_idinteger
    • team_namestring
    • tovnumber
    • tov_rankinteger
    • winteger
    • w_pctnumber
    • w_pct_rankinteger
    • w_rankinteger
  • 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 29

    Review these request fields before running. Keep the published provider and request method unchanged.

    season
    Season as `2025-26` or its first year `2025`; the current season by default.
    season_type
    `regular` (default), `playoffs`, `preseason`, `play-in`, `cup` (NBA Cup) or `all-star`.
    measure_type
    Table: `base` (default), `advanced`, `misc`, `scoring`, `usage`, `defense`, `fourfactors`, `opponent`.
    per_mode
    per_mode
    team
    Team abbreviation (`LAL`, `BOS` ...) or nickname.
    opponent
    Only games against this team (abbreviation).
    start_date
    From date (YYYY-MM-DD).
    end_date
    To date (YYYY-MM-DD).
    last_n_games
    Only each team's last N games.
    month
    Month of the season (1 = October ... 9 = June).
    location
    `home` or `road`.
    outcome
    `W` or `L`.
    season_segment
    `pre-all-star` or `post-all-star`.
    period
    Only this quarter (1-4) or overtime (5+).
    game_segment
    `first-half`, `second-half` or `overtime`.
    conference
    `East` or `West`.
    division
    Division name, e.g. `Pacific`.
    vs_conference
    Only games against this conference.
    vs_division
    Only games against this division.
    min_games
    Minimum games played.
    sort
    Column to sort by (a snake_case column of the table, e.g. `pts`, `net_rating`, `plus_minus`).
    direction
    `desc` (default) or `asc`.
    page
    Page number, from 1.
    limit
    Rows per page (1-500, default 30).
    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/stats/teams?limit=1&output=json&raw=0&season=2025-26' \
      -X GET \
      -H "Authorization: Bearer $OPENANY_API_KEY" \
      -H 'Content-Type: application/json'
  3. Check the response

    Sample response · Documented HTTP 200

    Sample response
    {
      "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
    }

Common questions

Which team stat tables are available in measure_type?

measure_type supports base (default), advanced, misc, scoring, usage, defense, fourfactors and opponent.

How do I sort all 30 teams by a specific stat?

Set sort to a snake_case column name from the active table (such as pts, net_rating or plus_minus) and direction to desc or asc.

Can I filter team stats by opponent conference or division?

Yes. Use conference, division, vs_conference and vs_division, plus opponent for a single team.

What is the default page size for team stats?

limit defaults to 30 rows (covering all 30 NBA teams in one page) and accepts 1 to 500.

Are league ranks returned alongside raw stat values?

Yes. Each row includes paired rank columns such as pts_rank, fg_pct_rank, reb_rank and w_pct_rank.

How do caching and response trimming work?

Output is JSON only. Pass fresh=1 to bypass the 24-hour cache, raw=0 to omit raw blocks, or fields to select keys.

Use NBA Team Stats API with your agent

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