OpenAny
Get API keyAPI Key
APIData

nba logo
NBA Team Details API

Get NBA Team Details 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 team identifier, team nickname, team home city, three-letter team abbreviation, and conference membership to build franchise header modules, show team statistical rank badges, and populate historical season pickers.

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 Details 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 Details API

NBA Team Details API

Query an NBA franchise's profile and season rankings using the required team parameter (abbreviation like LAL, BOS or GSW, nickname like lakers, team ID or nba.com team URL), plus optional season and season_type (regular, playoffs, preseason, play-in, cup or all-star).

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), season_type, raw=0, fields, fresh=1.
Selected implementation apish · NBA team details API
Billing See the pricing area for the selected implementation and request options

What You Can Build

  • Build franchise header modules: Display team logo, city, conference, division, W-L record and conf_rank/div_rank in one call.
  • Show team statistical rank badges: Read season_ranks.pts_rank, reb_rank, ast_rank and opp_pts_rank for matchup comparison strips.
  • Populate historical season pickers: Use seasons_available[] together with min_year and max_year to drive season dropdown selectors.

Returned Data

Field Meaning
team_id Unique NBA team identifier
team_name Team nickname
team_city Team home city
team_abbreviation Three-letter team abbreviation
team_conference Conference membership
team_division Division membership
w Season wins
l Season losses
conf_rank Conference rank for the season
season_ranks.pts_pg Team points per game with league rank

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/team \
  -H "Authorization: Bearer ${OPENANY_API_KEY}" \
  --data-urlencode output=json \
  --data-urlencode raw=0 \
  --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 Team Details 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 (7)
Season as `2025-26` or its first year `2025`; the current season by default.
`regular` (default), `playoffs`, `preseason`, `play-in`, `cup` (NBA Cup) or `all-star`.
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 details API · GET · View API reference
$0.002 / billing credit1
100.00%successP505.1s
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/team
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.

season_typeURL query parametersquerystringNo

`regular` (default), `playoffs`, `preseason`, `play-in`, `cup` (NBA Cup) or `all-star`.

enum: "regular", "playoffs", "preseason", "play-in", "cup", "all-star"

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
  • conf_rankinteger
  • credits_usedinteger
  • div_rankinteger
  • fetched_atstring
  • linteger
  • logostring
  • max_yearstring
  • min_yearstring
  • pctnumber
  • seasonstring
  • season_ranksobject
    • ast_pgnumber
    • ast_rankinteger
    • league_idstring
    • opp_pts_pgnumber
    • opp_pts_rankinteger
    • pts_pgnumber
    • pts_rankinteger
    • reb_pgnumber
    • reb_rankinteger
    • season_idstring
    • team_idinteger
  • season_typestring
  • season_yearstring
  • seasons_availablestring[]
  • team_abbreviationstring
  • team_citystring
  • team_codestring
  • team_conferencestring
  • team_divisionstring
  • team_idinteger
  • team_namestring
  • team_slugstring
  • urlstring
  • winteger

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 8

    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.
    season_type
    `regular` (default), `playoffs`, `preseason`, `play-in`, `cup` (NBA Cup) or `all-star`.
    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/team?output=json&raw=0&team=LAL' \
      -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,
      "conf_rank": 1,
      "credits_used": 1,
      "div_rank": 1,
      "fetched_at": "2026-11-19T12:22:32.647Z",
      "l": 3,
      "logo": "https://cdn.nba.com/logos/nba/1610612747/primary/L/logo.svg",
      "max_year": "2026",
      "min_year": "1948",
      "pct": 0.813,
      "season": "2026-27",
      "season_ranks": {
        "ast_pg": 24.4,
        "ast_rank": 25,
        "league_id": "00",
        "opp_pts_pg": 114.4,
        "opp_pts_rank": 17,
        "pts_pg": 120.9,
        "pts_rank": 2,
        "reb_pg": 41.4,
        "reb_rank": 24,
        "season_id": "22026",
        "team_id": 1610612747
      },
      "season_type": "Regular Season",
      "season_year": "2026-27",
      "seasons_available": [
        "21948",
        "41948",
        "21949",
        "41949",
        "21950",
        "41950",
        "21951",
        "41951",
        "21952",
        "41952",
        "21953",
        "41953",
        "21954",
        "41954",
        "21955",
        "41955",
        "21956",
        "41956",
        "21957",
        "21958",
        "41958",
        "21959",
        "41959",
        "21960",
        "41960",
        "21961",
        "41961",
        "21962",
        "41962",
        "21963",
        "41963",
        "21964",
        "41964",
        "21965",
        "41965",
        "21966",
        "41966",
        "21967",
        "41967",
        "21968",
        "41968",
        "21969",
        "41969",
        "21970",
        "41970",
        "21971",
        "41971",
        "21972",
        "41972",
        "21973",
        "41973",
        "21974",
        "21975",
        "21976",
        "41976",
        "21977",
        "41977",
        "21978",
        "41978",
        "21979",
        "41979",
        "21980",
        "41980",
        "21981",
        "41981",
        "21982",
        "31982",
        "41982",
        "21983",
        "41983",
        "21984",
        "41984",
        "21985",
        "41985",
        "21986",
        "31986",
        "41986",
        "21987",
        "31987",
        "41987",
        "21988",
        "31988",
        "41988",
        "21989",
        "31989",
        "41989",
        "21990",
        "41990",
        "21991",
        "41991",
        "21992",
        "41992",
        "21993",
        "21994",
        "41994",
        "21995",
        "41995",
        "21996",
        "41996",
        "11997",
        "21997",
        "41997",
        "11998",
        "21998",
        "41998",
        "11999",
        "21999",
        "31999",
        "41999",
        "12000",
        "22000",
        "42000",
        "12001",
        "22001",
        "42001",
        "12002",
        "22002",
        "42002",
        "12003",
        "22003",
        "42003",
        "12004",
        "22004",
        "12005",
        "22005",
        "42005",
        "12006",
        "22006",
        "42006",
        "12007",
        "22007",
        "42007",
        "12008",
        "22008",
        "42008",
        "12009",
        "22009",
        "42009",
        "12010",
        "22010",
        "42010",
        "12011",
        "22011",
        "42011",
        "12012",
        "22012",
        "42012",
        "12013",
        "22013",
        "12014",
        "22014",
        "12015",
        "22015",
        "12016",
        "22016",
        "12017",
        "22017",
        "12018",
        "22018",
        "12019",
        "22019",
        "42019",
        "12020",
        "22020",
        "42020",
        "52020",
        "12021",
        "22021",
        "12022",
        "22022",
        "42022",
        "52022",
        "12023",
        "22023",
        "42023",
        "52023",
        "62023",
        "12024",
        "22024",
        "42024",
        "12025",
        "22025",
        "42025",
        "12026",
        "22026"
      ],
      "team_abbreviation": "LAL",
      "team_city": "Los Angeles",
      "team_code": "lakers",
      "team_conference": "West",
      "team_division": "Pacific",
      "team_id": 1610612747,
      "team_name": "Lakers",
      "team_slug": "lakers",
      "url": "https://www.nba.com/lakers",
      "w": 13
    }

Common questions

What team identifiers are accepted in the team parameter?

Pass a three-letter abbreviation like LAL, BOS or GSW, a nickname like lakers, a numeric team ID or an nba.com team link.

Does the response include league ranks for points, rebounds and assists?

Yes. season_ranks includes pts_pg, pts_rank, reb_pg, reb_rank, ast_pg, ast_rank, opp_pts_pg and opp_pts_rank.

Can I query a team's playoff summary instead of regular season?

Yes. Set season_type to playoffs, preseason, play-in, cup or all-star (defaults to regular).

Are team logos and official nba.com URLs returned?

Yes. Top-level logo and url fields provide the team asset and official page link.

How do I discover which historical seasons exist for a franchise?

Inspect seasons_available[], min_year and max_year in the response.

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 Details API with your agent

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