NBA lineup stats API
Use the NBA lineup stats 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 inspect player positions and compare how the competing sides set up for an event. 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 / APIs
- 1 / 1
- Requests · 30d
- —Loading...
- Success rate · 30d
- —Loading...
NBA lineup 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
- Pricing
On this page
Overview
NBA lineup stats API
Use the NBA lineup stats 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 inspect player positions and compare how the competing sides set up for an event. 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.
NBA lineup stats API
Stats of 2- to 5-man lineups (the players, minutes, points, shooting, rebounds, assists, plus-minus, or advanced ratings), for a team or the league, with the same filters as the player tables. Pass `next_page` back as `page`; null on the last page.
Inputs and results
Send the listed inputs as GET query parameters. This operation has no mandatory query parameters. Supported values, filters and optional identifiers are listed below.
| Parameter | Type | Required | Meaning |
|---|---|---|---|
season | string | Optional | Season as `2025-26` or its first year `2025`; the current season by default. |
season_type | string | Optional | `regular` (default), `playoffs`, `preseason`, `play-in`, `cup` (NBA Cup) or `all-star`. Allowed values: regular, playoffs, preseason, play-in, cup, all-star. |
measure_type | string | Optional | Table: `base` (default), `advanced`, `misc`, `scoring`, `usage`, `defense`, `fourfactors`, `opponent`. |
per_mode | string | Optional | per_mode |
team | string | Optional | Team abbreviation (`LAL`, `BOS` ...) or nickname. |
opponent | string | Optional | Only games against this team (abbreviation). |
start_date | string | Optional | From date (YYYY-MM-DD). |
end_date | string | Optional | To date (YYYY-MM-DD). |
last_n_games | integer | Optional | Only each team's last N games. |
month | integer | Optional | Month of the season (1 = October ... 9 = June). |
location | string | Optional | `home` or `road`. Allowed values: home, road. |
outcome | string | Optional | `W` or `L`. Allowed values: W, L. |
season_segment | string | Optional | `pre-all-star` or `post-all-star`. Allowed values: pre-all-star, post-all-star. |
period | integer | Optional | Only this quarter (1-4) or overtime (5+). |
game_segment | string | Optional | `first-half`, `second-half` or `overtime`. Allowed values: first-half, second-half, overtime. |
conference | string | Optional | `East` or `West`. |
division | string | Optional | Division name, e.g. `Pacific`. |
vs_conference | string | Optional | Only games against this conference. |
vs_division | string | Optional | Only games against this division. |
group_size | integer | Optional | Players per lineup, 2-5 (default 5). |
min_games | integer | Optional | Minimum games played. |
sort | string | Optional | Column to sort by (a snake_case column of the table, e.g. `pts`, `net_rating`, `plus_minus`). |
direction | string | Optional | `desc` (default) or `asc`. Allowed values: desc, asc. |
page | integer | Optional | Page number, from 1. |
limit | integer | Optional | Rows per page (1-500, default 100). |
raw | string | Optional | Use 0 to leave out the source raw blocks. This controls raw source payloads, not the normalized result records. Allowed values: 0, 1. |
fields | string | Optional | Optional comma-separated output fields; nested paths follow the source field-selection syntax. Call metadata is retained. |
fresh | string | Optional | Use 1 to bypass the source response cache. Cache hits are also billed according to reported credits. Allowed values: 1. |
output | string | Optional | Response format for this product: json. Omit this parameter to use JSON. Allowed values: json. |
records | string | Optional | Source export selector for CSV or NDJSON. It has no effect on this JSON-only product. |
Using OpenAny
Send this request to the OpenAny gateway with your OpenAny API key in the Authorization header. The query values below match the paired request example.
OpenAny request example
curl "https://api.openany.si/v1/agent-apis/apish/nba/v1/stats/lineups?team=LAL&season=2025-26&output=json&raw=0&limit=1" \
-H "Authorization: Bearer <OPENANY_API_KEY>"This command illustrates the OpenAny request format. The response example below retains its stated provenance; it is not evidence that this gateway request was executed.
Response example
Recorded source response for the exact request shown above. Filters, field selectors and page choices in that request define the returned scope.
{
"applied_filters": {
"season": "2025-26",
"season_type": "Regular Season",
"measure_type": "Base",
"per_mode": "PerGame",
"team_id": "1610612747",
"group_quantity": "5"
},
"total": 641,
"page": 1,
"count": 1,
"next_page": 2,
"rows": [
{
"group_set": "Lineups",
"group_id": "-2544-1628379-1629020-1629637-1642355-",
"group_name": "L. James - L. Kennard - J. Vanderbilt - J. Hayes - B. James",
"team_id": 1610612747,
"team_abbreviation": "LAL",
"gp": 1,
"w": 1,
"l": 0,
"w_pct": 1,
"min": 13.9,
"fgm": 13,
"fga": 25,
"fg_pct": 0.52,
"fg3_m": 3,
"fg3_a": 8,
"fg3_pct": 0.375,
"ftm": 6,
"fta": 7,
"ft_pct": 0.857,
"oreb": 5,
"dreb": 13,
"reb": 18,
"ast": 6,
"tov": 5,
"stl": 2,
"blk": 3,
"blka": 1,
"pf": 4,
"pfd": 7,
"pts": 35,
"plus_minus": 12,
"gp_rank": 249,
"w_rank": 167,
"l_rank": 1,
"w_pct_rank": 1,
"min_rank": 1,
"fgm_rank": 2,
"fga_rank": 1,
"fg_pct_rank": 239,
"fg3_m_rank": 6,
"fg3_a_rank": 3,
"fg3_pct_rank": 216,
"ftm_rank": 5,
"fta_rank": 7,
"ft_pct_rank": 165,
"oreb_rank": 3,
"dreb_rank": 1,
"reb_rank": 1,
"ast_rank": 7,
"tov_rank": 636,
"stl_rank": 11,
"blk_rank": 1,
"blka_rank": 570,
"pf_rank": 623,
"pfd_rank": 1,
"pts_rank": 2,
"plus_minus_rank": 2,
"sum_time_played": 41800
}
],
"cached": false,
"fetched_at": "2026-11-19T12:22:32.089Z",
"credits_used": 1
}Usage and price
The price is USD 0.002 per actual credit reported in credits_used, with no fixed per-call fee. A response reporting zero credits has zero usage cost. Up to USD 0.002 is reserved for this request; the final price follows reported usage within the configured upper limit. A valid empty result or an unsuccessful lookup can still consume source credits. Cache hits also consume credits.
Coverage and limits
Coverage and update times follow the source. Use the documented field definitions when interpreting the selected result. Requests have a 120-second time budget and a 8 MiB response limit.
Use page according to the operation's parameter definitions. Each additional page requires a separate request.
Playground
Run sends a real API request. Charges follow the published API contract.
Response structure
applied_filtersobjectgroup_quantitystringmeasure_typestringper_modestringseasonstringseason_typestringteam_idstring
cachedbooleancountintegercredits_usedintegerfetched_atstringnext_pageintegerpageintegerrowsobject[]astintegerast_rankintegerblkintegerblk_rankintegerblkaintegerblka_rankintegerdrebintegerdreb_rankintegerfg3_aintegerfg3_a_rankintegerfg3_mintegerfg3_m_rankintegerfg3_pctnumberfg3_pct_rankintegerfg_pctnumberfg_pct_rankintegerfgaintegerfga_rankintegerfgmintegerfgm_rankintegerft_pctnumberft_pct_rankintegerftaintegerfta_rankintegerftmintegerftm_rankintegergpintegergp_rankintegergroup_idstringgroup_namestringgroup_setstringlintegerl_rankintegerminnumbermin_rankintegerorebintegeroreb_rankintegerpfintegerpf_rankintegerpfdintegerpfd_rankintegerplus_minusintegerplus_minus_rankintegerptsintegerpts_rankintegerrebintegerreb_rankintegerstlintegerstl_rankintegersum_time_playedintegerteam_abbreviationstringteam_idintegertovintegertov_rankintegerwintegerw_pctintegerw_pct_rankintegerw_rankinteger
totalinteger
// Inferred from response examples. Fields are optional and other fields may be returned.
export type ApiResponse = {
applied_filters?: {
group_quantity?: string;
measure_type?: string;
per_mode?: string;
season?: string;
season_type?: string;
team_id?: string;
};
cached?: boolean;
count?: number;
credits_used?: number;
fetched_at?: string;
next_page?: number;
page?: number;
rows?: Array<{
ast?: number;
ast_rank?: number;
blk?: number;
blk_rank?: number;
blka?: number;
blka_rank?: number;
dreb?: number;
dreb_rank?: number;
fg3_a?: number;
fg3_a_rank?: number;
fg3_m?: number;
fg3_m_rank?: number;
fg3_pct?: number;
fg3_pct_rank?: number;
fg_pct?: number;
fg_pct_rank?: number;
fga?: number;
fga_rank?: number;
fgm?: number;
fgm_rank?: number;
ft_pct?: number;
ft_pct_rank?: number;
fta?: number;
fta_rank?: number;
ftm?: number;
ftm_rank?: number;
gp?: number;
gp_rank?: number;
group_id?: string;
group_name?: string;
group_set?: string;
l?: number;
l_rank?: number;
min?: number;
min_rank?: number;
oreb?: number;
oreb_rank?: number;
pf?: number;
pf_rank?: number;
pfd?: number;
pfd_rank?: number;
plus_minus?: number;
plus_minus_rank?: number;
pts?: number;
pts_rank?: number;
reb?: number;
reb_rank?: number;
stl?: number;
stl_rank?: number;
sum_time_played?: number;
team_abbreviation?: string;
team_id?: number;
tov?: number;
tov_rank?: number;
w?: number;
w_pct?: number;
w_pct_rank?: number;
w_rank?: number;
}>;
total?: number;
};Sellers
| Seller | Pricing | Requests · 30d | Performance | Access |
|---|---|---|---|---|
apishCurrent NBA lineup stats API · GET · View API reference | $0.002 / billing credit | — | —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: 2. Price update time: not supplied.
API
- Method
- GET
- Endpoint
https://api.openany.si/v1/agent-apis/apish/nba/v1/stats/lineups- Content type
- application/json
- Authentication
Authorization: Bearer $OPENANY_API_KEY
curl \
'https://api.openany.si/v1/agent-apis/apish/nba/v1/stats/lineups?limit=1&output=json&raw=0&season=2025-26&team=LAL' \
-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`, `fourfactors`, `opponent`. |
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. |
group_size | URL query parametersquery | integer | No | Players per lineup, 2-5 (default 5). |
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": {
"group_quantity": "5",
"measure_type": "Base",
"per_mode": "PerGame",
"season": "2025-26",
"season_type": "Regular Season",
"team_id": "1610612747"
},
"cached": false,
"count": 1,
"credits_used": 1,
"fetched_at": "2026-11-19T12:22:32.089Z",
"next_page": 2,
"page": 1,
"rows": [
{
"ast": 6,
"ast_rank": 7,
"blk": 3,
"blk_rank": 1,
"blka": 1,
"blka_rank": 570,
"dreb": 13,
"dreb_rank": 1,
"fg3_a": 8,
"fg3_a_rank": 3,
"fg3_m": 3,
"fg3_m_rank": 6,
"fg3_pct": 0.375,
"fg3_pct_rank": 216,
"fg_pct": 0.52,
"fg_pct_rank": 239,
"fga": 25,
"fga_rank": 1,
"fgm": 13,
"fgm_rank": 2,
"ft_pct": 0.857,
"ft_pct_rank": 165,
"fta": 7,
"fta_rank": 7,
"ftm": 6,
"ftm_rank": 5,
"gp": 1,
"gp_rank": 249,
"group_id": "-2544-1628379-1629020-1629637-1642355-",
"group_name": "L. James - L. Kennard - J. Vanderbilt - J. Hayes - B. James",
"group_set": "Lineups",
"l": 0,
"l_rank": 1,
"min": 13.9,
"min_rank": 1,
"oreb": 5,
"oreb_rank": 3,
"pf": 4,
"pf_rank": 623,
"pfd": 7,
"pfd_rank": 1,
"plus_minus": 12,
"plus_minus_rank": 2,
"pts": 35,
"pts_rank": 2,
"reb": 18,
"reb_rank": 1,
"stl": 2,
"stl_rank": 11,
"sum_time_played": 41800,
"team_abbreviation": "LAL",
"team_id": 1610612747,
"tov": 5,
"tov_rank": 636,
"w": 1,
"w_pct": 1,
"w_pct_rank": 1,
"w_rank": 167
}
],
"total": 641
}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 lineup stats API
Use the NBA lineup stats 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 inspect player positions and compare how the competing sides set up for an event. 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.
## Available implementations
apish · NBA lineup stats API: https://openany.si/markets/apis/capabilities/nba-lineup-stats-api?offering=b8d9eac0-3078-43b2-9b37-1c1b1f8c9188 · $0.002 / billing credit
## Selected API contract
Documentation: https://openany.si/apis/b8d9eac0-3078-43b2-9b37-1c1b1f8c9188
Method: GET
Endpoint: https://api.openany.si/v1/agent-apis/apish/nba/v1/stats/lineups
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/lineups?limit=1&output=json&raw=0&season=2025-26&team=LAL' \
-X GET \
-H "Authorization: Bearer $OPENANY_API_KEY" \
-H 'Content-Type: application/json'
```
## API contract
```json
{
"resource_type": "api",
"name": "NBA lineup stats API",
"endpoint": "https://api.openany.si/v1/agent-apis/apish/nba/v1/stats/lineups",
"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`, `fourfactors`, `opponent`.",
"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": "Players per lineup, 2-5 (default 5).",
"location": "query",
"name": "group_size",
"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",
"output": "json",
"raw": "0",
"season": "2025-26",
"team": "LAL"
}
},
"response_body": {
"applied_filters": {
"group_quantity": "5",
"measure_type": "Base",
"per_mode": "PerGame",
"season": "2025-26",
"season_type": "Regular Season",
"team_id": "1610612747"
},
"cached": false,
"count": 1,
"credits_used": 1,
"fetched_at": "2026-11-19T12:22:32.089Z",
"next_page": 2,
"page": 1,
"rows": [
{
"ast": 6,
"ast_rank": 7,
"blk": 3,
"blk_rank": 1,
"blka": 1,
"blka_rank": 570,
"dreb": 13,
"dreb_rank": 1,
"fg3_a": 8,
"fg3_a_rank": 3,
"fg3_m": 3,
"fg3_m_rank": 6,
"fg3_pct": 0.375,
"fg3_pct_rank": 216,
"fg_pct": 0.52,
"fg_pct_rank": 239,
"fga": 25,
"fga_rank": 1,
"fgm": 13,
"fgm_rank": 2,
"ft_pct": 0.857,
"ft_pct_rank": 165,
"fta": 7,
"fta_rank": 7,
"ftm": 6,
"ftm_rank": 5,
"gp": 1,
"gp_rank": 249,
"group_id": "-2544-1628379-1629020-1629637-1642355-",
"group_name": "L. James - L. Kennard - J. Vanderbilt - J. Hayes - B. James",
"group_set": "Lineups",
"l": 0,
"l_rank": 1,
"min": 13.9,
"min_rank": 1,
"oreb": 5,
"oreb_rank": 3,
"pf": 4,
"pf_rank": 623,
"pfd": 7,
"pfd_rank": 1,
"plus_minus": 12,
"plus_minus_rank": 2,
"pts": 35,
"pts_rank": 2,
"reb": 18,
"reb_rank": 1,
"stl": 2,
"stl_rank": 11,
"sum_time_played": 41800,
"team_abbreviation": "LAL",
"team_id": 1610612747,
"tov": 5,
"tov_rank": 636,
"w": 1,
"w_pct": 1,
"w_pct_rank": 1,
"w_rank": 167
}
],
"total": 641
}
}
]
}
```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 30
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.
group_size- Players per lineup, 2-5 (default 5).
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/lineups?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": { "group_quantity": "5", "measure_type": "Base", "per_mode": "PerGame", "season": "2025-26", "season_type": "Regular Season", "team_id": "1610612747" }, "cached": false, "count": 1, "credits_used": 1, "fetched_at": "2026-11-19T12:22:32.089Z", "next_page": 2, "page": 1, "rows": [ { "ast": 6, "ast_rank": 7, "blk": 3, "blk_rank": 1, "blka": 1, "blka_rank": 570, "dreb": 13, "dreb_rank": 1, "fg3_a": 8, "fg3_a_rank": 3, "fg3_m": 3, "fg3_m_rank": 6, "fg3_pct": 0.375, "fg3_pct_rank": 216, "fg_pct": 0.52, "fg_pct_rank": 239, "fga": 25, "fga_rank": 1, "fgm": 13, "fgm_rank": 2, "ft_pct": 0.857, "ft_pct_rank": 165, "fta": 7, "fta_rank": 7, "ftm": 6, "ftm_rank": 5, "gp": 1, "gp_rank": 249, "group_id": "-2544-1628379-1629020-1629637-1642355-", "group_name": "L. James - L. Kennard - J. Vanderbilt - J. Hayes - B. James", "group_set": "Lineups", "l": 0, "l_rank": 1, "min": 13.9, "min_rank": 1, "oreb": 5, "oreb_rank": 3, "pf": 4, "pf_rank": 623, "pfd": 7, "pfd_rank": 1, "plus_minus": 12, "plus_minus_rank": 2, "pts": 35, "pts_rank": 2, "reb": 18, "reb_rank": 1, "stl": 2, "stl_rank": 11, "sum_time_played": 41800, "team_abbreviation": "LAL", "team_id": 1610612747, "tov": 5, "tov_rank": 636, "w": 1, "w_pct": 1, "w_pct_rank": 1, "w_rank": 167 } ], "total": 641 }