NBA Player Index API
Get NBA Player Index 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 player identifier, player first name, player last name, listed player position, and team three-letter abbreviation to filter international or alumni cohorts, and populate team and position directories.
- 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
NBA Player Index 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 Player Index API
Filter the NBA player index using optional season, team (abbreviation or nickname), position (G, F, C or combinations like G-F), country, college, draft_year (or undrafted), historical (true to include past players when paired with team, country, college or draft_year), page and limit (1-500, default 100).
Quick Facts
| Fact | Value |
|---|---|
| Access | OpenAny REST |
| Authentication | OpenAny API key in the Authorization header |
| Core inputs | Optional query: season, team, position (G/F/C/G-F), country, college, draft_year (or undrafted), historical (boolean), page, limit (1-500, default 100). |
| Selected implementation | apish · NBA player index API |
| Billing | See the pricing area for the selected implementation and request options |
What You Can Build
- Filter international or alumni cohorts: Query country=France or college=Duke with historical=true to list active and former NBA players.
- Populate team and position directories: Filter by team and position to build browseable roster and depth-chart selectors.
- Seed player IDs for batch enrichment: Paginate players[].person_id to feed the Player Profile, Game Log or Awards APIs.
Returned Data
| Field | Meaning |
|---|---|
season |
Season represented in the directory |
players[].person_id |
Unique NBA player identifier |
players[].player_first_name |
Player first name |
players[].player_last_name |
Player last name |
players[].position |
Listed player position |
players[].team_abbreviation |
Team three-letter abbreviation |
players[].country |
Player country of origin |
players[].college |
Player college or prior affiliation |
players[].pts |
Points per game summary |
next_page |
Next page number, or null on the final page |
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/players \
-H "Authorization: Bearer ${OPENANY_API_KEY}" \
--data-urlencode limit=1 \
--data-urlencode output=json \
--data-urlencode raw=0 \
--data-urlencode season=2025-26 \
--data-urlencode team=LAL
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 Player Index 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 player index API · GET · View API reference | $0.002 / billing credit | 0 | —successP50— |
- 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/players- 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 |
|---|---|---|---|---|
season | URL query parametersquery | string | No | Season as `2025-26` or its first year `2025`; the current season by default. |
team | URL query parametersquery | string | No | Team abbreviation (`LAL`, `BOS` ...) or nickname. |
position | URL query parametersquery | string | No | `G`, `F`, `C`, or a combination like `G-F`. |
country | URL query parametersquery | string | No | Country, e.g. `France`. |
college | URL query parametersquery | string | No | College name or part of it. |
draft_year | URL query parametersquery | string | No | Draft year, or `undrafted`. |
historical | URL query parametersquery | boolean | No | `true` to include past players (needs team, country, college or draft_year). |
page | URL query parametersquery | integer | No | Page number, from 1. |
limit | URL query parametersquery | integer | No | Players per page (1-500, default 100). |
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
applied_filtersobjectcollegenullcountrynulldraft_yearnullhistoricalbooleanpositionnullteamstring
cachedbooleancountintegercredits_usedintegerfetched_atstringnext_pageintegerpageintegerplayersobject[]astnumbercollegestringcountrystringdraft_numberintegerdraft_roundintegerdraft_yearintegerfrom_yearstringheightstringjersey_numberstringperson_idintegerplayer_first_namestringplayer_last_namestringplayer_slugstringpositionstringptsnumberrebintegerroster_statusintegerstats_timeframestringsupplemental_statusintegerteam_abbreviationstringteam_citystringteam_idintegerteam_namestringteam_slugstringto_yearstringurlstringweightstring
seasonstringtotalinteger
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 recording · HTTP 200
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 14
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.
team- Team abbreviation (`LAL`, `BOS` ...) or nickname.
position- `G`, `F`, `C`, or a combination like `G-F`.
country- Country, e.g. `France`.
college- College name or part of it.
draft_year- Draft year, or `undrafted`.
historical- `true` to include past players (needs team, country, college or draft_year).
page- Page number, from 1.
limit- Players per page (1-500, default 100).
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/players?limit=1&output=json&raw=0&season=2025-26&team=LAL' \ -X GET \ -H "Authorization: Bearer $OPENANY_API_KEY" \ -H 'Content-Type: application/json'Check the response
Sample response · Documented HTTP 200
Sample response{ "applied_filters": { "college": null, "country": null, "draft_year": null, "historical": false, "position": null, "team": "LAL" }, "cached": false, "count": 1, "credits_used": 1, "fetched_at": "2026-11-19T09:20:17.076Z", "next_page": 2, "page": 1, "players": [ { "ast": 0.8, "college": "Arizona", "country": "Bahamas", "draft_number": 1, "draft_round": 1, "draft_year": 2018, "from_year": "2018", "height": "7-0", "jersey_number": "5", "person_id": 1629028, "player_first_name": "Deandre", "player_last_name": "Ayton", "player_slug": "deandre-ayton", "position": "C", "pts": 12.5, "reb": 8, "roster_status": 1, "stats_timeframe": "Season", "supplemental_status": 0, "team_abbreviation": "LAL", "team_city": "Los Angeles", "team_id": 1610612747, "team_name": "Lakers", "team_slug": "lakers", "to_year": "2026", "url": "https://www.nba.com/player/1629028/deandre-ayton", "weight": "252" } ], "season": "2025-26", "total": 17 }