OpenAny
Get API keyAPI Key
APIData

nba logo
NBA Team Roster API

Get NBA Team Roster data via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by Apish, pass parameters such as output, raw, team, and retrieve structured data including unique NBA player identifier, player full display name, player jersey number, listed player position, and player listed height to render live team roster tables, and inspect historical championship rosters.

Selected price
$0.002 / billing creditPublished pricing
Sellers / APIs
1 / 1
Requests · 30d
1Selected implementation · last 30 days
Success rate · 30d
100.00%Selected implementation · last 30 days
USE THIS API

NBA Team Roster 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 Roster API

NBA Team Roster API

Query an NBA team's roster and coaching staff using the required team parameter (abbreviation like GSW or LAL, nickname, team ID or nba.com team link) and optional season (2025-26 or 2025; current season default). The response returns both players[] and coaches[] arrays.

Quick Facts

Fact Value
Access OpenAny REST
Authentication OpenAny API key in the Authorization header
Core inputs Required query: team (abbreviation, nickname, team ID or nba.com team link). Optional: season (2025-26 or 2025; current default), raw=0, fields, fresh=1.
Selected implementation apish · NBA team roster API
Billing See the pricing area for the selected implementation and request options

What You Can Build

  • Render live team roster tables: Display jersey number, position, height, weight, age, experience and school for every player on a team.
  • List head and assistant coaching staffs: Use coaches[].coach_name, coach_type and is_assistant to show the franchise coaching tree.
  • Inspect historical championship rosters: Pass past seasons such as 2016-17 alongside team to retrieve archived rosters and coaches.

Returned Data

Field Meaning
team Queried team code or identifier
season Season returned for the roster
players[].player_id Unique NBA player identifier
players[].player Player full display name
players[].num Player jersey number
players[].position Listed player position
players[].height Player listed height
players[].age Player age for the season
players[].exp Years of NBA experience
coaches[].coach_name Head or assistant coach full name

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/roster \
  -H "Authorization: Bearer ${OPENANY_API_KEY}" \
  --data-urlencode output=json \
  --data-urlencode raw=0 \
  --data-urlencode team=GSW

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 Roster 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
Team abbreviation (`LAL`, `BOS`, `GSW` ...), nickname (`lakers`), team id or an nba.com team link.
Optional parameters (6)
Season as `2025-26` or its first year `2025`; the current season by default.
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 roster API · GET · View API reference
$0.002 / billing credit1
100.00%successP505.59s
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/roster
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
teamURL query parametersquerystringYes

Team abbreviation (`LAL`, `BOS`, `GSW` ...), nickname (`lakers`), team id or an nba.com team link.

seasonURL query parametersquerystringNo

Season as `2025-26` or its first year `2025`; the current season by default.

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
  • cachedboolean
  • coachesobject[]
    • coach_idinteger
    • coach_namestring
    • coach_typestring
    • first_namestring
    • is_assistantinteger
    • last_namestring
    • seasonstring
    • sort_sequencenull
    • sub_sort_sequenceinteger
    • team_idinteger
  • countinteger
  • credits_usedinteger
  • fetched_atstring
  • playersobject[]
    • ageinteger
    • birth_datestring
    • expstring
    • heightstring
    • how_acquiredstring
    • league_idstring
    • nicknamestring
    • numstring
    • playerstring
    • player_idinteger
    • player_slugstring
    • positionstring
    • schoolstring
    • seasonstring
    • supplemental_statusinteger
    • team_idinteger
    • weightstring
  • seasonstring
  • teamstring
  • team_idinteger

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 7

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

    team
    Team abbreviation (`LAL`, `BOS`, `GSW` ...), nickname (`lakers`), team id or an nba.com team link.
    season
    Season as `2025-26` or its first year `2025`; the current season by default.
    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/roster?output=json&raw=0&team=GSW' \
      -X GET \
      -H "Authorization: Bearer $OPENANY_API_KEY" \
      -H 'Content-Type: application/json'
  3. Check the response

    Sample response · Documented HTTP 200

    Sample response
    {
      "cached": false,
      "coaches": [
        {
          "coach_id": 204005,
          "coach_name": "Steve Kerr",
          "coach_type": "Head Coach",
          "first_name": "Steve",
          "is_assistant": 1,
          "last_name": "Kerr",
          "season": "2026",
          "sort_sequence": null,
          "sub_sort_sequence": 1,
          "team_id": 1610612744
        },
        {
          "coach_id": 2345,
          "coach_name": "Frank Vogel",
          "coach_type": "Associate Head Coach",
          "first_name": "Frank",
          "is_assistant": 9,
          "last_name": "Vogel",
          "season": "2026",
          "sort_sequence": null,
          "sub_sort_sequence": 2,
          "team_id": 1610612744
        },
        {
          "coach_id": 202805,
          "coach_name": "Anthony Vereen",
          "coach_type": "Assistant Coach",
          "first_name": "Anthony",
          "is_assistant": 2,
          "last_name": "Vereen",
          "season": "2026",
          "sort_sequence": null,
          "sub_sort_sequence": 5,
          "team_id": 1610612744
        },
        {
          "coach_id": 1796,
          "coach_name": "Ron Adams",
          "coach_type": "Assistant Coach",
          "first_name": "Ron",
          "is_assistant": 2,
          "last_name": "Adams",
          "season": "2026",
          "sort_sequence": null,
          "sub_sort_sequence": 5,
          "team_id": 1610612744
        },
        {
          "coach_id": 204260,
          "coach_name": "Bruce Fraser",
          "coach_type": "Assistant Coach",
          "first_name": "Bruce",
          "is_assistant": 2,
          "last_name": "Fraser",
          "season": "2026",
          "sort_sequence": null,
          "sub_sort_sequence": 5,
          "team_id": 1610612744
        },
        {
          "coach_id": 1627330,
          "coach_name": "Seth Cooper",
          "coach_type": "Assistant Coach",
          "first_name": "Seth",
          "is_assistant": 2,
          "last_name": "Cooper",
          "season": "2026",
          "sort_sequence": null,
          "sub_sort_sequence": 5,
          "team_id": 1610612744
        },
        {
          "coach_id": 1628831,
          "coach_name": "Kris Weems",
          "coach_type": "Assistant Coach",
          "first_name": "Kris",
          "is_assistant": 2,
          "last_name": "Weems",
          "season": "2026",
          "sort_sequence": null,
          "sub_sort_sequence": 5,
          "team_id": 1610612744
        },
        {
          "coach_id": 1630858,
          "coach_name": "Jacob Rubin",
          "coach_type": "Assistant Coach",
          "first_name": "Jacob",
          "is_assistant": 2,
          "last_name": "Rubin",
          "season": "2026",
          "sort_sequence": null,
          "sub_sort_sequence": 5,
          "team_id": 1610612744
        },
        {
          "coach_id": 1630893,
          "coach_name": "Nicholas Kerr",
          "coach_type": "Assistant Coach",
          "first_name": "Nicholas",
          "is_assistant": 2,
          "last_name": "Kerr",
          "season": "2026",
          "sort_sequence": null,
          "sub_sort_sequence": 5,
          "team_id": 1610612744
        },
        {
          "coach_id": 1642718,
          "coach_name": "Khalid Robinson",
          "coach_type": "Assistant Coach",
          "first_name": "Khalid",
          "is_assistant": 2,
          "last_name": "Robinson",
          "season": "2026",
          "sort_sequence": null,
          "sub_sort_sequence": 5,
          "team_id": 1610612744
        },
        {
          "coach_id": 1628227,
          "coach_name": "Drew Yoder",
          "coach_type": "Trainer",
          "first_name": "Drew",
          "is_assistant": 3,
          "last_name": "Yoder",
          "season": "2026",
          "sort_sequence": null,
          "sub_sort_sequence": 7,
          "team_id": 1610612744
        }
      ],
      "count": 18,
      "credits_used": 1,
      "fetched_at": "2026-11-19T12:22:28.006Z",
      "players": [
        {
          "age": 33,
          "birth_date": "DEC 01, 1992",
          "exp": "10",
          "height": "6-2",
          "how_acquired": "Traded from POR on 02/09/23",
          "league_id": "00",
          "nickname": "Gary",
          "num": "0",
          "player": "Gary Payton II",
          "player_id": 1627780,
          "player_slug": "gary-payton-ii",
          "position": "G",
          "school": "Oregon State",
          "season": "2026",
          "supplemental_status": 0,
          "team_id": 1610612744,
          "weight": "192"
        },
        {
          "age": 24,
          "birth_date": "SEP 30, 2002",
          "exp": "R",
          "height": "6-9",
          "how_acquired": "#11 Pick in 2026 Draft",
          "league_id": "00",
          "nickname": "Yaxel",
          "num": "1",
          "player": "Yaxel Lendeborg",
          "player_id": 1642865,
          "player_slug": "yaxel-lendeborg",
          "position": "F",
          "school": "Michigan",
          "season": "2026",
          "supplemental_status": 0,
          "team_id": 1610612744,
          "weight": "247"
        },
        {
          "age": 23,
          "birth_date": "FEB 25, 2003",
          "exp": "3",
          "height": "6-4",
          "how_acquired": "#19 Pick in 2023 Draft",
          "league_id": "00",
          "nickname": "Brandin",
          "num": "2",
          "player": "Brandin Podziemski",
          "player_id": 1641764,
          "player_slug": "brandin-podziemski",
          "position": "G",
          "school": "Santa Clara",
          "season": "2026",
          "supplemental_status": 0,
          "team_id": 1610612744,
          "weight": "208"
        },
        {
          "age": 23,
          "birth_date": "DEC 24, 2002",
          "exp": "1",
          "height": "6-3",
          "how_acquired": "Draft Rights Traded from MEM on 07/06/25",
          "league_id": "00",
          "nickname": "Will",
          "num": "3",
          "player": "Will Richard",
          "player_id": 1642954,
          "player_slug": "will-richard",
          "position": "G",
          "school": "Florida",
          "season": "2026",
          "supplemental_status": 0,
          "team_id": 1610612744,
          "weight": "210"
        },
        {
          "age": 24,
          "birth_date": "MAY 31, 2002",
          "exp": "5",
          "height": "6-5",
          "how_acquired": "#14 Pick in 2021 Draft",
          "league_id": "00",
          "nickname": "Moses",
          "num": "4",
          "player": "Moses Moody",
          "player_id": 1630541,
          "player_slug": "moses-moody",
          "position": "G",
          "school": "Arkansas",
          "season": "2026",
          "supplemental_status": 0,
          "team_id": 1610612744,
          "weight": "215"
        },
        {
          "age": 31,
          "birth_date": "AUG 02, 1995",
          "exp": "11",
          "height": "7-2",
          "how_acquired": "Traded from ATL on 02/05/26",
          "league_id": "00",
          "nickname": "Kristaps",
          "num": "7",
          "player": "Kristaps Porziņģis",
          "player_id": 204001,
          "player_slug": "kristaps-porziņģis",
          "position": "F-C",
          "school": "Cajasol Sevilla",
          "season": "2026",
          "supplemental_status": 0,
          "team_id": 1610612744,
          "weight": "240"
        },
        {
          "age": 28,
          "birth_date": "MAY 28, 1998",
          "exp": "8",
          "height": "6-2",
          "how_acquired": "Signed on 10/01/25",
          "league_id": "00",
          "nickname": "De'Anthony",
          "num": "8",
          "player": "De'Anthony Melton",
          "player_id": 1629001,
          "player_slug": "deanthony-melton",
          "position": "G",
          "school": "Southern California",
          "season": "2026",
          "supplemental_status": 0,
          "team_id": 1610612744,
          "weight": "199"
        },
        {
          "age": 37,
          "birth_date": "SEP 14, 1989",
          "exp": "15",
          "height": "6-6",
          "how_acquired": "Traded from MIA on 02/06/25",
          "league_id": "00",
          "nickname": "Jimmy",
          "num": "10",
          "player": "Jimmy Butler III",
          "player_id": 202710,
          "player_slug": "jimmy-butler-iii",
          "position": "F",
          "school": "Marquette",
          "season": "2026",
          "supplemental_status": 0,
          "team_id": 1610612744,
          "weight": "230"
        },
        {
          "age": 26,
          "birth_date": "NOV 22, 1999",
          "exp": "4",
          "height": "6-1",
          "how_acquired": "Signed on 08/26/26",
          "league_id": "00",
          "nickname": "Brandon",
          "num": "12",
          "player": "Brandon Williams",
          "player_id": 1630314,
          "player_slug": "brandon-williams",
          "position": "G",
          "school": "Arizona",
          "season": "2026",
          "supplemental_status": 0,
          "team_id": 1610612744,
          "weight": "185"
        },
        {
          "age": 24,
          "birth_date": "JUN 22, 2002",
          "exp": "3",
          "height": "6-7",
          "how_acquired": "#55 Pick in 2022 Draft",
          "league_id": "00",
          "nickname": "Gui",
          "num": "15",
          "player": "Gui Santos",
          "player_id": 1630611,
          "player_slug": "gui-santos",
          "position": "F",
          "school": "Minas",
          "season": "2026",
          "supplemental_status": 0,
          "team_id": 1610612744,
          "weight": "225"
        },
        {
          "age": 25,
          "birth_date": "OCT 09, 2001",
          "exp": "1",
          "height": "6-0",
          "how_acquired": "Signed on 09/29/25",
          "league_id": "00",
          "nickname": "LJ",
          "num": "18",
          "player": "LJ Cryer",
          "player_id": 1643018,
          "player_slug": "lj-cryer",
          "position": "G",
          "school": "Houston",
          "season": "2026",
          "supplemental_status": 1,
          "team_id": 1610612744,
          "weight": "202"
        },
        {
          "age": 40,
          "birth_date": "JUN 03, 1986",
          "exp": "19",
          "height": "6-8",
          "how_acquired": "Signed on 10/01/25",
          "league_id": "00",
          "nickname": "Al",
          "num": "20",
          "player": "Al Horford",
          "player_id": 201143,
          "player_slug": "al-horford",
          "position": "C",
          "school": "Florida",
          "season": "2026",
          "supplemental_status": 0,
          "team_id": 1610612744,
          "weight": "260"
        },
        {
          "age": 36,
          "birth_date": "MAR 04, 1990",
          "exp": "14",
          "height": "6-6",
          "how_acquired": "#35 Pick in 2012 Draft",
          "league_id": "00",
          "nickname": "Draymond",
          "num": "23",
          "player": "Draymond Green",
          "player_id": 203110,
          "player_slug": "draymond-green",
          "position": "F-C",
          "school": "Michigan State",
          "season": "2026",
          "supplemental_status": 0,
          "team_id": 1610612744,
          "weight": "240"
        },
        {
          "age": 26,
          "birth_date": "OCT 28, 2000",
          "exp": "5",
          "height": "6-9",
          "how_acquired": "Signed on 04/05/26",
          "league_id": "00",
          "nickname": "Charles",
          "num": "28",
          "player": "Charles Bassey",
          "player_id": 1629646,
          "player_slug": "charles-bassey",
          "position": "F-C",
          "school": "Western Kentucky",
          "season": "2026",
          "supplemental_status": 0,
          "team_id": 1610612744,
          "weight": "244"
        },
        {
          "age": 38,
          "birth_date": "MAR 14, 1988",
          "exp": "17",
          "height": "6-2",
          "how_acquired": "#7 Pick in 2009 Draft",
          "league_id": "00",
          "nickname": "Stephen",
          "num": "30",
          "player": "Stephen Curry",
          "player_id": 201939,
          "player_slug": "stephen-curry",
          "position": "G",
          "school": "Davidson",
          "season": "2026",
          "supplemental_status": 0,
          "team_id": 1610612744,
          "weight": "205"
        },
        {
          "age": 33,
          "birth_date": "JUN 17, 1993",
          "exp": "10",
          "height": "6-7",
          "how_acquired": "Signed on 08/25/26",
          "league_id": "00",
          "nickname": "Georges",
          "num": "32",
          "player": "Georges Niang",
          "player_id": 1627777,
          "player_slug": "georges-niang",
          "position": "F",
          "school": "Iowa State",
          "season": "2026",
          "supplemental_status": 0,
          "team_id": 1610612744,
          "weight": "245"
        },
        {
          "age": 27,
          "birth_date": "SEP 23, 1999",
          "exp": "2",
          "height": "6-9",
          "how_acquired": "Signed on 12/08/25",
          "league_id": "00",
          "nickname": "Malevy",
          "num": "33",
          "player": "Malevy Leons",
          "player_id": 1642502,
          "player_slug": "malevy-leons",
          "position": "F",
          "school": "Bradley",
          "season": "2026",
          "supplemental_status": 1,
          "team_id": 1610612744,
          "weight": "206"
        },
        {
          "age": 24,
          "birth_date": "AUG 03, 2002",
          "exp": "R",
          "height": "6-10",
          "how_acquired": "Signed on 09/21/26",
          "league_id": "00",
          "nickname": "Graham",
          "num": "45",
          "player": "Graham Ike",
          "player_id": 1643633,
          "player_slug": "graham-ike",
          "position": "F-C",
          "school": "Gonzaga",
          "season": "2026",
          "supplemental_status": 1,
          "team_id": 1610612744,
          "weight": "245"
        }
      ],
      "season": "2026-27",
      "team": "GSW",
      "team_id": 1610612744
    }

Common questions

Does the roster endpoint include coaches as well as players?

Yes. The response contains both players[] and coaches[] with coach_name, coach_type and is_assistant.

What team formats are accepted?

Pass a team abbreviation (GSW, LAL, BOS), nickname (lakers), team ID or nba.com team link.

Can I retrieve a team's roster from an earlier NBA season?

Yes. Pass season such as 2022-23 or 2022; omitting season returns the current season roster.

Are acquisition notes and jersey numbers included?

Yes. Each entry in players[] includes num, how_acquired, birth_date, school and exp.

How do I look up detailed stats for a player on the roster?

Pass players[].player_id into the NBA Player Profile API or NBA Player Game Log API.

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.

Use NBA Team Roster API with your agent

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