NBA player stats tables API
Use the NBA player stats tables API to retrieve specification comparisons and win-loss measures as structured JSON from NBA. Choose season, season phase and team selector as optional query conditions to select the source records or view required for your request. Use these results to compare squad composition for a team and season or organize registered-player reference lists. Continue with the returned next_page as page; a null value marks the last page. The detail page includes parameter definitions, paired request and response examples, and usage pricing for this operation.
- Selected price
- $0.002 / billing creditPublished pricing
- Sellers / implementations
- 1 / 1
- Requests · 30d
- —Loading...
- Success rate · 30d
- —Loading...
| Seller | Pricing | Requests · 30d | Performance | Access |
|---|---|---|---|---|
apishCurrent NBA player stats tables API · GET · View API reference | $0.002 / billing credit | — | —successP50— |
Run sends a real API request. Charges follow the published API contract.
Response structure
applied_filtersobjectmeasure_typestringper_modestringseasonstringseason_typestring
cachedbooleancountintegercredits_usedintegerfetched_atstringnext_pageintegerpageintegerrowsobject[]ageintegerast_pctnumberast_pct_rankintegerast_rationumberast_ratio_rankintegerast_tonumberast_to_rankintegerdef_ratingnumberdef_rating_rankintegerdreb_pctnumberdreb_pct_rankintegere_def_ratingnumbere_def_rating_rankintegere_net_ratingnumbere_net_rating_rankintegere_off_ratingnumbere_off_rating_rankintegere_pacenumbere_pace_rankintegere_tov_pctnumbere_tov_pct_rankintegere_usg_pctnumbere_usg_pct_rankintegerefg_pctnumberefg_pct_rankintegerfg_pctnumberfg_pct_rankintegerfgaintegerfga_pgnumberfga_pg_rankintegerfga_rankintegerfgmintegerfgm_pgnumberfgm_pg_rankintegerfgm_rankintegergpintegergp_rankintegerlintegerl_rankintegerminnumbermin_rankintegernet_ratingnumbernet_rating_rankintegernicknamestringoff_ratingnumberoff_rating_rankintegeroreb_pctnumberoreb_pct_rankintegerpacenumberpace_per40numberpace_rankintegerpienumberpie_rankintegerplayer_idintegerplayer_namestringpossintegerreb_pctnumberreb_pct_rankintegersp_work_def_ratingnumbersp_work_def_rating_rankintegersp_work_net_ratingnumbersp_work_net_rating_rankintegersp_work_off_ratingnumbersp_work_off_rating_rankintegersp_work_pacenumbersp_work_pace_rankintegerteam_abbreviationstringteam_countintegerteam_idintegertm_tov_pctnumbertm_tov_pct_rankintegerts_pctnumberts_pct_rankintegerusg_pctnumberusg_pct_rankintegerwintegerw_pctnumberw_pct_rankintegerw_rankinteger
totalinteger
// Inferred from response examples. Fields are optional and other fields may be returned.
export type ApiResponse = {
applied_filters?: {
measure_type?: string;
per_mode?: string;
season?: string;
season_type?: string;
};
cached?: boolean;
count?: number;
credits_used?: number;
fetched_at?: string;
next_page?: number;
page?: number;
rows?: Array<{
age?: number;
ast_pct?: number;
ast_pct_rank?: number;
ast_ratio?: number;
ast_ratio_rank?: number;
ast_to?: number;
ast_to_rank?: number;
def_rating?: number;
def_rating_rank?: number;
dreb_pct?: number;
dreb_pct_rank?: number;
e_def_rating?: number;
e_def_rating_rank?: number;
e_net_rating?: number;
e_net_rating_rank?: number;
e_off_rating?: number;
e_off_rating_rank?: number;
e_pace?: number;
e_pace_rank?: number;
e_tov_pct?: number;
e_tov_pct_rank?: number;
e_usg_pct?: number;
e_usg_pct_rank?: number;
efg_pct?: number;
efg_pct_rank?: number;
fg_pct?: number;
fg_pct_rank?: number;
fga?: number;
fga_pg?: number;
fga_pg_rank?: number;
fga_rank?: number;
fgm?: number;
fgm_pg?: number;
fgm_pg_rank?: number;
fgm_rank?: number;
gp?: number;
gp_rank?: number;
l?: number;
l_rank?: number;
min?: number;
min_rank?: number;
net_rating?: number;
net_rating_rank?: number;
nickname?: string;
off_rating?: number;
off_rating_rank?: number;
oreb_pct?: number;
oreb_pct_rank?: number;
pace?: number;
pace_per40?: number;
pace_rank?: number;
pie?: number;
pie_rank?: number;
player_id?: number;
player_name?: string;
poss?: number;
reb_pct?: number;
reb_pct_rank?: number;
sp_work_def_rating?: number;
sp_work_def_rating_rank?: number;
sp_work_net_rating?: number;
sp_work_net_rating_rank?: number;
sp_work_off_rating?: number;
sp_work_off_rating_rank?: number;
sp_work_pace?: number;
sp_work_pace_rank?: number;
team_abbreviation?: string;
team_count?: number;
team_id?: number;
tm_tov_pct?: number;
tm_tov_pct_rank?: number;
ts_pct?: number;
ts_pct_rank?: number;
usg_pct?: number;
usg_pct_rank?: number;
w?: number;
w_pct?: number;
w_pct_rank?: number;
w_rank?: number;
}>;
total?: number;
};- Method
- GET
- Endpoint
https://api.openany.si/v1/agent-apis/apish/nba/v1/stats/players- Content type
- application/json
- Authentication
Authorization: Bearer $OPENANY_API_KEY
curl \
'https://api.openany.si/v1/agent-apis/apish/nba/v1/stats/players?limit=1&measure_type=advanced&output=json&raw=0&season=2025-26' \
-X GET \
-H "Authorization: Bearer $OPENANY_API_KEY" \
-H 'Content-Type: application/json'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. |
season_type | URL query parametersquery | string | No | `regular` (default), `playoffs`, `preseason`, `play-in`, `cup` (NBA Cup) or `all-star`. enum: "regular", "playoffs", "preseason", "play-in", "cup", "all-star" |
measure_type | URL query parametersquery | string | No | Table: `base` (default), `advanced`, `misc`, `scoring`, `usage`, `defense`. |
per_mode | URL query parametersquery | string | No | per_mode |
team | URL query parametersquery | string | No | Team abbreviation (`LAL`, `BOS` ...) or nickname. |
opponent | URL query parametersquery | string | No | Only games against this team (abbreviation). |
start_date | URL query parametersquery | string | No | From date (YYYY-MM-DD). |
end_date | URL query parametersquery | string | No | To date (YYYY-MM-DD). |
last_n_games | URL query parametersquery | integer | No | Only each team's last N games. |
month | URL query parametersquery | integer | No | Month of the season (1 = October ... 9 = June). |
location | URL query parametersquery | string | No | `home` or `road`. enum: "home", "road" |
outcome | URL query parametersquery | string | No | `W` or `L`. enum: "W", "L" |
season_segment | URL query parametersquery | string | No | `pre-all-star` or `post-all-star`. enum: "pre-all-star", "post-all-star" |
period | URL query parametersquery | integer | No | Only this quarter (1-4) or overtime (5+). |
game_segment | URL query parametersquery | string | No | `first-half`, `second-half` or `overtime`. enum: "first-half", "second-half", "overtime" |
conference | URL query parametersquery | string | No | `East` or `West`. |
division | URL query parametersquery | string | No | Division name, e.g. `Pacific`. |
vs_conference | URL query parametersquery | string | No | Only games against this conference. |
vs_division | URL query parametersquery | string | No | Only games against this division. |
position | URL query parametersquery | string | No | `G`, `F` or `C`. enum: "G", "F", "C" |
starter_bench | URL query parametersquery | string | No | `starters` or `bench`. enum: "starters", "bench" |
experience | URL query parametersquery | string | No | `rookie`, `sophomore` or `veteran`. enum: "rookie", "sophomore", "veteran" |
college | URL query parametersquery | string | No | College name. |
country | URL query parametersquery | string | No | Country name, e.g. `France`. |
draft_year | URL query parametersquery | integer | No | Draft year. |
min_games | URL query parametersquery | integer | No | Minimum games played. |
sort | URL query parametersquery | string | No | Column to sort by (a snake_case column of the table, e.g. `pts`, `net_rating`, `plus_minus`). |
direction | URL query parametersquery | string | No | `desc` (default) or `asc`. enum: "desc", "asc" |
page | URL query parametersquery | integer | No | Page number, from 1. |
limit | URL query parametersquery | integer | No | Rows 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.
Sample response
Sample response · Documented HTTP 200 Example from the provider's documentation. Field values in your results will differ.
{
"applied_filters": {
"measure_type": "Advanced",
"per_mode": "PerGame",
"season": "2025-26",
"season_type": "Regular Season"
},
"cached": false,
"count": 1,
"credits_used": 1,
"fetched_at": "2026-11-19T12:22:31.157Z",
"next_page": 2,
"page": 1,
"rows": [
{
"age": 25,
"ast_pct": 0.046,
"ast_pct_rank": 557,
"ast_ratio": 7.1,
"ast_ratio_rank": 563,
"ast_to": 1.17,
"ast_to_rank": 465,
"def_rating": 110.7,
"def_rating_rank": 194,
"dreb_pct": 0.156,
"dreb_pct_rank": 144,
"e_def_rating": 110.6,
"e_def_rating_rank": 188,
"e_net_rating": -0.8,
"e_net_rating_rank": 273,
"e_off_rating": 109.8,
"e_off_rating_rank": 363,
"e_pace": 98.51,
"e_pace_rank": 506,
"e_tov_pct": 6.1,
"e_tov_pct_rank": 61,
"e_usg_pct": 0.18,
"e_usg_pct_rank": 273,
"efg_pct": 0.558,
"efg_pct_rank": 218,
"fg_pct": 0.436,
"fg_pct_rank": 363,
"fga": 78,
"fga_pg": 3.3,
"fga_pg_rank": 442,
"fga_rank": 447,
"fgm": 34,
"fgm_pg": 1.4,
"fgm_pg_rank": 454,
"fgm_rank": 443,
"gp": 24,
"gp_rank": 433,
"l": 12,
"l_rank": 152,
"min": 9.4,
"min_rank": 486,
"net_rating": -3.1,
"net_rating_rank": 330,
"nickname": "A.J.",
"off_rating": 107.6,
"off_rating_rank": 429,
"oreb_pct": 0.039,
"oreb_pct_rank": 278,
"pace": 99.45,
"pace_per40": 82.88,
"pace_rank": 456,
"pie": 0.091,
"pie_rank": 268,
"player_id": 1630639,
"player_name": "A.J. Lawson",
"poss": 471,
"reb_pct": 0.096,
"reb_pct_rank": 197,
"sp_work_def_rating": 110.7,
"sp_work_def_rating_rank": 194,
"sp_work_net_rating": -3.1,
"sp_work_net_rating_rank": 330,
"sp_work_off_rating": 107.6,
"sp_work_off_rating_rank": 429,
"sp_work_pace": 99.45,
"sp_work_pace_rank": 456,
"team_abbreviation": "TOR",
"team_count": 1,
"team_id": 1610612761,
"tm_tov_pct": 6.1,
"tm_tov_pct_rank": 60,
"ts_pct": 0.588,
"ts_pct_rank": 230,
"usg_pct": 0.172,
"usg_pct_rank": 284,
"w": 12,
"w_pct": 0.5,
"w_pct_rank": 303,
"w_rank": 395
}
],
"total": 582
}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.
View API Markdown
# NBA player stats tables API
Use the NBA player stats tables API to retrieve specification comparisons and win-loss measures as structured JSON from NBA. Choose season, season phase and team selector as optional query conditions to select the source records or view required for your request. Use these results to compare squad composition for a team and season or organize registered-player reference lists. Continue with the returned next_page as page; a null value marks the last page. The detail page includes parameter definitions, paired request and response examples, and usage pricing for this operation.
Documentation: https://openany.si/apis/46c73172-c200-49ca-b0dd-aff3ef54fba7
Method: GET
Endpoint: https://api.openany.si/v1/agent-apis/apish/nba/v1/stats/players
Price: $0.002 / billing credit
Provider: apish
Contract revision: 2
Price source: OpenAny public API contract and documented provider unit rates. Price update time: not supplied.
Use OPENANY_API_KEY from the environment. API Key calls use your shared balance.
## Prepared request
```bash
curl \
'https://api.openany.si/v1/agent-apis/apish/nba/v1/stats/players?limit=1&measure_type=advanced&output=json&raw=0&season=2025-26' \
-X GET \
-H "Authorization: Bearer $OPENANY_API_KEY" \
-H 'Content-Type: application/json'
```
## API contract
```json
{
"resource_type": "api",
"name": "NBA player stats tables API",
"endpoint": "https://api.openany.si/v1/agent-apis/apish/nba/v1/stats/players",
"method": "GET",
"content_type": "none",
"execution_mode": "sync",
"authentication": {
"type": "bearer",
"environment_variable": "OPENANY_API_KEY"
},
"inputs": [
{
"description": "Season as `2025-26` or its first year `2025`; the current season by default.",
"location": "query",
"name": "season",
"nullable": false,
"required": false,
"type": "string"
},
{
"description": "`regular` (default), `playoffs`, `preseason`, `play-in`, `cup` (NBA Cup) or `all-star`.",
"enum_values": [
"regular",
"playoffs",
"preseason",
"play-in",
"cup",
"all-star"
],
"location": "query",
"name": "season_type",
"nullable": false,
"required": false,
"type": "string"
},
{
"description": "Table: `base` (default), `advanced`, `misc`, `scoring`, `usage`, `defense`.",
"location": "query",
"name": "measure_type",
"nullable": false,
"required": false,
"type": "string"
},
{
"description": "per_mode",
"location": "query",
"name": "per_mode",
"nullable": false,
"required": false,
"type": "string"
},
{
"description": "Team abbreviation (`LAL`, `BOS` ...) or nickname.",
"location": "query",
"name": "team",
"nullable": false,
"required": false,
"type": "string"
},
{
"description": "Only games against this team (abbreviation).",
"location": "query",
"name": "opponent",
"nullable": false,
"required": false,
"type": "string"
},
{
"description": "From date (YYYY-MM-DD).",
"location": "query",
"name": "start_date",
"nullable": false,
"required": false,
"type": "string"
},
{
"description": "To date (YYYY-MM-DD).",
"location": "query",
"name": "end_date",
"nullable": false,
"required": false,
"type": "string"
},
{
"description": "Only each team's last N games.",
"location": "query",
"name": "last_n_games",
"nullable": false,
"required": false,
"type": "integer"
},
{
"description": "Month of the season (1 = October ... 9 = June).",
"location": "query",
"name": "month",
"nullable": false,
"required": false,
"type": "integer"
},
{
"description": "`home` or `road`.",
"enum_values": [
"home",
"road"
],
"location": "query",
"name": "location",
"nullable": false,
"required": false,
"type": "string"
},
{
"description": "`W` or `L`.",
"enum_values": [
"W",
"L"
],
"location": "query",
"name": "outcome",
"nullable": false,
"required": false,
"type": "string"
},
{
"description": "`pre-all-star` or `post-all-star`.",
"enum_values": [
"pre-all-star",
"post-all-star"
],
"location": "query",
"name": "season_segment",
"nullable": false,
"required": false,
"type": "string"
},
{
"description": "Only this quarter (1-4) or overtime (5+).",
"location": "query",
"name": "period",
"nullable": false,
"required": false,
"type": "integer"
},
{
"description": "`first-half`, `second-half` or `overtime`.",
"enum_values": [
"first-half",
"second-half",
"overtime"
],
"location": "query",
"name": "game_segment",
"nullable": false,
"required": false,
"type": "string"
},
{
"description": "`East` or `West`.",
"location": "query",
"name": "conference",
"nullable": false,
"required": false,
"type": "string"
},
{
"description": "Division name, e.g. `Pacific`.",
"location": "query",
"name": "division",
"nullable": false,
"required": false,
"type": "string"
},
{
"description": "Only games against this conference.",
"location": "query",
"name": "vs_conference",
"nullable": false,
"required": false,
"type": "string"
},
{
"description": "Only games against this division.",
"location": "query",
"name": "vs_division",
"nullable": false,
"required": false,
"type": "string"
},
{
"description": "`G`, `F` or `C`.",
"enum_values": [
"G",
"F",
"C"
],
"location": "query",
"name": "position",
"nullable": false,
"required": false,
"type": "string"
},
{
"description": "`starters` or `bench`.",
"enum_values": [
"starters",
"bench"
],
"location": "query",
"name": "starter_bench",
"nullable": false,
"required": false,
"type": "string"
},
{
"description": "`rookie`, `sophomore` or `veteran`.",
"enum_values": [
"rookie",
"sophomore",
"veteran"
],
"location": "query",
"name": "experience",
"nullable": false,
"required": false,
"type": "string"
},
{
"description": "College name.",
"location": "query",
"name": "college",
"nullable": false,
"required": false,
"type": "string"
},
{
"description": "Country name, e.g. `France`.",
"location": "query",
"name": "country",
"nullable": false,
"required": false,
"type": "string"
},
{
"description": "Draft year.",
"location": "query",
"name": "draft_year",
"nullable": false,
"required": false,
"type": "integer"
},
{
"description": "Minimum games played.",
"location": "query",
"name": "min_games",
"nullable": false,
"required": false,
"type": "integer"
},
{
"description": "Column to sort by (a snake_case column of the table, e.g. `pts`, `net_rating`, `plus_minus`).",
"location": "query",
"name": "sort",
"nullable": false,
"required": false,
"type": "string"
},
{
"description": "`desc` (default) or `asc`.",
"enum_values": [
"desc",
"asc"
],
"location": "query",
"name": "direction",
"nullable": false,
"required": false,
"type": "string"
},
{
"description": "Page number, from 1.",
"location": "query",
"name": "page",
"nullable": false,
"required": false,
"type": "integer"
},
{
"description": "Rows per page (1-500, default 100).",
"location": "query",
"name": "limit",
"nullable": false,
"required": false,
"type": "integer"
},
{
"description": "0 leaves out the bulky `raw` source blocks (often 10-30x smaller).",
"enum_values": [
"0",
"1"
],
"location": "query",
"name": "raw",
"nullable": false,
"required": false,
"type": "string"
},
{
"description": "Comma-separated fields to return, e.g. `posts.id,posts.title`. Call metadata is always included.",
"location": "query",
"name": "fields",
"nullable": false,
"required": false,
"type": "string"
},
{
"description": "1 skips the 24-hour cache and fetches live.",
"enum_values": [
"1"
],
"location": "query",
"name": "fresh",
"nullable": false,
"required": false,
"type": "string"
},
{
"description": "JSON only for this OpenAny product. Omit output or use json; CSV and NDJSON are not supported.",
"enum_values": [
"json"
],
"location": "query",
"name": "output",
"nullable": false,
"required": false,
"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.",
"location": "query",
"name": "records",
"nullable": false,
"required": false,
"type": "string"
}
],
"billing": {
"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": []
}
},
"examples": [
{
"http_status": 200,
"name": "Official example · Live API.SH response · Minimal request",
"request": {
"body": null,
"headers": {},
"path": {},
"query": {
"limit": "1",
"measure_type": "advanced",
"output": "json",
"raw": "0",
"season": "2025-26"
}
},
"response_body": {
"applied_filters": {
"measure_type": "Advanced",
"per_mode": "PerGame",
"season": "2025-26",
"season_type": "Regular Season"
},
"cached": false,
"count": 1,
"credits_used": 1,
"fetched_at": "2026-11-19T12:22:31.157Z",
"next_page": 2,
"page": 1,
"rows": [
{
"age": 25,
"ast_pct": 0.046,
"ast_pct_rank": 557,
"ast_ratio": 7.1,
"ast_ratio_rank": 563,
"ast_to": 1.17,
"ast_to_rank": 465,
"def_rating": 110.7,
"def_rating_rank": 194,
"dreb_pct": 0.156,
"dreb_pct_rank": 144,
"e_def_rating": 110.6,
"e_def_rating_rank": 188,
"e_net_rating": -0.8,
"e_net_rating_rank": 273,
"e_off_rating": 109.8,
"e_off_rating_rank": 363,
"e_pace": 98.51,
"e_pace_rank": 506,
"e_tov_pct": 6.1,
"e_tov_pct_rank": 61,
"e_usg_pct": 0.18,
"e_usg_pct_rank": 273,
"efg_pct": 0.558,
"efg_pct_rank": 218,
"fg_pct": 0.436,
"fg_pct_rank": 363,
"fga": 78,
"fga_pg": 3.3,
"fga_pg_rank": 442,
"fga_rank": 447,
"fgm": 34,
"fgm_pg": 1.4,
"fgm_pg_rank": 454,
"fgm_rank": 443,
"gp": 24,
"gp_rank": 433,
"l": 12,
"l_rank": 152,
"min": 9.4,
"min_rank": 486,
"net_rating": -3.1,
"net_rating_rank": 330,
"nickname": "A.J.",
"off_rating": 107.6,
"off_rating_rank": 429,
"oreb_pct": 0.039,
"oreb_pct_rank": 278,
"pace": 99.45,
"pace_per40": 82.88,
"pace_rank": 456,
"pie": 0.091,
"pie_rank": 268,
"player_id": 1630639,
"player_name": "A.J. Lawson",
"poss": 471,
"reb_pct": 0.096,
"reb_pct_rank": 197,
"sp_work_def_rating": 110.7,
"sp_work_def_rating_rank": 194,
"sp_work_net_rating": -3.1,
"sp_work_net_rating_rank": 330,
"sp_work_off_rating": 107.6,
"sp_work_off_rating_rank": 429,
"sp_work_pace": 99.45,
"sp_work_pace_rank": 456,
"team_abbreviation": "TOR",
"team_count": 1,
"team_id": 1610612761,
"tm_tov_pct": 6.1,
"tm_tov_pct_rank": 60,
"ts_pct": 0.588,
"ts_pct_rank": 230,
"usg_pct": 0.172,
"usg_pct_rank": 284,
"w": 12,
"w_pct": 0.5,
"w_pct_rank": 303,
"w_rank": 395
}
],
"total": 582
}
}
]
}
```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. |
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 35
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`.
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.
position- `G`, `F` or `C`.
starter_bench- `starters` or `bench`.
experience- `rookie`, `sophomore` or `veteran`.
college- College name.
country- Country name, e.g. `France`.
draft_year- Draft year.
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 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/stats/players?limit=1&measure_type=advanced&output=json&raw=0&season=2025-26' \ -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": { "measure_type": "Advanced", "per_mode": "PerGame", "season": "2025-26", "season_type": "Regular Season" }, "cached": false, "count": 1, "credits_used": 1, "fetched_at": "2026-11-19T12:22:31.157Z", "next_page": 2, "page": 1, "rows": [ { "age": 25, "ast_pct": 0.046, "ast_pct_rank": 557, "ast_ratio": 7.1, "ast_ratio_rank": 563, "ast_to": 1.17, "ast_to_rank": 465, "def_rating": 110.7, "def_rating_rank": 194, "dreb_pct": 0.156, "dreb_pct_rank": 144, "e_def_rating": 110.6, "e_def_rating_rank": 188, "e_net_rating": -0.8, "e_net_rating_rank": 273, "e_off_rating": 109.8, "e_off_rating_rank": 363, "e_pace": 98.51, "e_pace_rank": 506, "e_tov_pct": 6.1, "e_tov_pct_rank": 61, "e_usg_pct": 0.18, "e_usg_pct_rank": 273, "efg_pct": 0.558, "efg_pct_rank": 218, "fg_pct": 0.436, "fg_pct_rank": 363, "fga": 78, "fga_pg": 3.3, "fga_pg_rank": 442, "fga_rank": 447, "fgm": 34, "fgm_pg": 1.4, "fgm_pg_rank": 454, "fgm_rank": 443, "gp": 24, "gp_rank": 433, "l": 12, "l_rank": 152, "min": 9.4, "min_rank": 486, "net_rating": -3.1, "net_rating_rank": 330, "nickname": "A.J.", "off_rating": 107.6, "off_rating_rank": 429, "oreb_pct": 0.039, "oreb_pct_rank": 278, "pace": 99.45, "pace_per40": 82.88, "pace_rank": 456, "pie": 0.091, "pie_rank": 268, "player_id": 1630639, "player_name": "A.J. Lawson", "poss": 471, "reb_pct": 0.096, "reb_pct_rank": 197, "sp_work_def_rating": 110.7, "sp_work_def_rating_rank": 194, "sp_work_net_rating": -3.1, "sp_work_net_rating_rank": 330, "sp_work_off_rating": 107.6, "sp_work_off_rating_rank": 429, "sp_work_pace": 99.45, "sp_work_pace_rank": 456, "team_abbreviation": "TOR", "team_count": 1, "team_id": 1610612761, "tm_tov_pct": 6.1, "tm_tov_pct_rank": 60, "ts_pct": 0.588, "ts_pct_rank": 230, "usg_pct": 0.172, "usg_pct_rank": 284, "w": 12, "w_pct": 0.5, "w_pct_rank": 303, "w_rank": 395 } ], "total": 582 }
Loading related APIs…
Common questions
Do I need a separate key for every provider?
Use your OpenAny API key for standard API access. Read it from OPENANY_API_KEY in your environment and keep it out of prompts, source code and logs.
Are these providers interchangeable?
No. Each offering has its own inputs, pricing and response contract. Selecting a catalog offering does not establish automatic routing or fallback. Confirm the service contract before calling.
How is this API billed?
API-key calls use your shared balance at the selected implementation's published rate. Check the billing unit and request-specific pricing rules before making a paid call. Recorded usage determines the final charge under that contract.
Where do the price and contract come from?
The selected implementation publishes its provider, request contract, revision and billing rules through OpenAny's public API catalog. A revision number identifies a contract version, not a price update date. A price update timestamp is not supplied; do not treat a page date as one.
How do OpenAny Balance and x402 differ?
OpenAny Balance uses an API key and one shared balance. Card, USDC and x402 top-ups, card auto top-up and USDC subscriptions fund that balance; available routes appear on the Credits page. Direct x402 is a separate pay-per-request flow, available only on listings that show it and requiring an authorized payment client.
Does Playground send a paid request?
Yes. After you sign in, Run sends a real API request using an active OpenAny API key. Charges follow the published API contract and use your shared balance. Selecting an implementation, editing inputs and viewing sample responses do not send requests.
Use NBA player stats tables API with your agent
Inspect endpoint contracts and confirm availability and pricing before a paid call.