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
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
On this page
Overview
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
- Set OPENANY_API_KEY to your OpenAny API key.
- Review the selected implementation and pricing, then adapt the request below to your target.
- Check the HTTP response and business result before reading optional fields.
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
Related APIs
Playground
Run sends a real API request. Charges follow the published API contract.
Sellers
| Seller | Pricing | Requests · 30d | Performance | Access |
|---|---|---|---|---|
apishCurrent NBA team roster API · GET · View API reference | $0.002 / billing credit | 1 | 100.00%successP505.59s |
- 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
Input parameters
Fields in this listing; additional options and input encoding can vary by provider.
| Parameter | Location | Type | Required | Description |
|---|---|---|---|---|
team | URL query parametersquery | string | Yes | Team abbreviation (`LAL`, `BOS`, `GSW` ...), nickname (`lakers`), team id or an nba.com team link. |
season | URL query parametersquery | string | No | Season as `2025-26` or its first year `2025`; the current season by default. |
raw | URL query parametersquery | string | No | 0 leaves out the bulky `raw` source blocks (often 10-30x smaller). enum: "0", "1" |
fields | URL query parametersquery | string | No | Comma-separated fields to return, e.g. `posts.id,posts.title`. Call metadata is always included. |
fresh | URL query parametersquery | string | No | 1 skips the 24-hour cache and fetches live. enum: "1" |
output | URL query parametersquery | string | No | JSON only for this OpenAny product. Omit output or use json; CSV and NDJSON are not supported. enum: "json" |
records | URL query parametersquery | string | No | 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
cachedbooleancoachesobject[]coach_idintegercoach_namestringcoach_typestringfirst_namestringis_assistantintegerlast_namestringseasonstringsort_sequencenullsub_sort_sequenceintegerteam_idinteger
countintegercredits_usedintegerfetched_atstringplayersobject[]ageintegerbirth_datestringexpstringheightstringhow_acquiredstringleague_idstringnicknamestringnumstringplayerstringplayer_idintegerplayer_slugstringpositionstringschoolstringseasonstringsupplemental_statusintegerteam_idintegerweightstring
seasonstringteamstringteam_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 item | Price | Metering source | When | Quantity limit |
|---|---|---|---|---|
| Actual API.SH credits consumed | $0.002000 / billing credit | Response · /credits_used · Numeric value | Always | 1 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.
Error handling
| Status | Next step |
|---|---|
400 | Check the offering and request fields. |
401 / 403 | Verify your credentials and access permissions. |
402 | Inspect the selected access mode and returned payment requirements. |
429 | Respect the returned rate limit and retry guidance. |
5xx | Inspect 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.
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 / Linuxprintf 'OpenAny API key: ' read -r -s OPENANY_API_KEY export OPENANY_API_KEY printf '\n'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 · cURLcurl \ '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'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 }