# 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.

Documentation: https://openany.si/market/apis/nba/nba-team-details-api/?offering=db2fd047-0631-4a30-8367-d9f4b59ce0dd
API ID: db2fd047-0631-4a30-8367-d9f4b59ce0dd
Provider: apish
Contract revision: 3
Method: GET
Endpoint: https://api.openany.si/v1/agent-apis/apish/nba/v1/team
Page update time: 2026-12-03T02:55:47.343Z
Access: OpenAny REST
OpenAny MCP: availability is not supplied by this REST contract. Check get_api on the configured OpenAny MCP server before execution.
Request content type: none
Execution mode: sync
Authentication: Authorization: Bearer $OPENANY_API_KEY

## Billing
Price: $0.002 / billing credit
API-key calls use your shared balance. Review the published billing rules before making a paid request.
Price source: OpenAny public API contract. Price update time: not supplied.
Contract update time: 2026-12-03T02:55:46.529Z. This is not a price-change timestamp.
```json
{
  "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": []
  }
}
```

## Request parameters
```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "NBA team details API request inputs",
  "$comment": "Declared input types grouped by HTTP location. Path, query and header values describe decoded inputs and are serialized as text on the wire; body is the payload. This is not an exhaustive provider contract or a schema for the raw HTTP request.",
  "type": "object",
  "properties": {
    "path": {
      "type": "object",
      "properties": {}
    },
    "query": {
      "type": "object",
      "properties": {
        "team": {
          "type": "string",
          "description": "Team abbreviation (`LAL`, `BOS`, `GSW` ...), nickname (`lakers`), team id or an nba.com team link."
        },
        "season": {
          "type": "string",
          "description": "Season as `2025-26` or its first year `2025`; the current season by default."
        },
        "season_type": {
          "type": "string",
          "description": "`regular` (default), `playoffs`, `preseason`, `play-in`, `cup` (NBA Cup) or `all-star`.",
          "enum": [
            "regular",
            "playoffs",
            "preseason",
            "play-in",
            "cup",
            "all-star"
          ]
        },
        "raw": {
          "type": "string",
          "description": "0 leaves out the bulky `raw` source blocks (often 10-30x smaller).",
          "enum": [
            "0",
            "1"
          ]
        },
        "fields": {
          "type": "string",
          "description": "Comma-separated fields to return, e.g. `posts.id,posts.title`. Call metadata is always included."
        },
        "fresh": {
          "type": "string",
          "description": "1 skips the 24-hour cache and fetches live.",
          "enum": [
            "1"
          ]
        },
        "output": {
          "type": "string",
          "description": "JSON only for this OpenAny product. Omit output or use json; CSV and NDJSON are not supported.",
          "enum": [
            "json"
          ]
        },
        "records": {
          "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."
        }
      },
      "required": [
        "team"
      ]
    },
    "headers": {
      "type": "object",
      "properties": {}
    }
  },
  "required": [
    "path",
    "query",
    "headers"
  ]
}
```

## Response fields
Source: Inferred from examples; not an exhaustive provider schema.
```json
{
  "type": "object",
  "properties": {
    "cached": {
      "type": "boolean"
    },
    "conf_rank": {
      "type": "integer"
    },
    "credits_used": {
      "type": "integer"
    },
    "div_rank": {
      "type": "integer"
    },
    "fetched_at": {
      "type": "string"
    },
    "l": {
      "type": "integer"
    },
    "logo": {
      "type": "string"
    },
    "max_year": {
      "type": "string"
    },
    "min_year": {
      "type": "string"
    },
    "pct": {
      "type": "number"
    },
    "season": {
      "type": "string"
    },
    "season_ranks": {
      "type": "object",
      "properties": {
        "ast_pg": {
          "type": "number"
        },
        "ast_rank": {
          "type": "integer"
        },
        "league_id": {
          "type": "string"
        },
        "opp_pts_pg": {
          "type": "number"
        },
        "opp_pts_rank": {
          "type": "integer"
        },
        "pts_pg": {
          "type": "number"
        },
        "pts_rank": {
          "type": "integer"
        },
        "reb_pg": {
          "type": "number"
        },
        "reb_rank": {
          "type": "integer"
        },
        "season_id": {
          "type": "string"
        },
        "team_id": {
          "type": "integer"
        }
      }
    },
    "season_type": {
      "type": "string"
    },
    "season_year": {
      "type": "string"
    },
    "seasons_available": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "team_abbreviation": {
      "type": "string"
    },
    "team_city": {
      "type": "string"
    },
    "team_code": {
      "type": "string"
    },
    "team_conference": {
      "type": "string"
    },
    "team_division": {
      "type": "string"
    },
    "team_id": {
      "type": "integer"
    },
    "team_name": {
      "type": "string"
    },
    "team_slug": {
      "type": "string"
    },
    "url": {
      "type": "string"
    },
    "w": {
      "type": "integer"
    }
  }
}
```

## Request example
Scenario: Official example · Live API.SH response · Minimal request
```bash
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'
```

## Response example
Example from the provider's documentation. Field values in your results will differ.
Sample response · Documented HTTP 200
```json
{
  "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
}
```

## Error handling
400: Check the request fields.
401 / 403: Verify credentials and access permissions.
402: Inspect payment requirements and balance.
429: Respect returned retry guidance.
5xx: Inspect the error and usage record before retrying a paid operation.

## Available implementations
- apish: https://openany.si/market/apis/nba/nba-team-details-api/?offering=db2fd047-0631-4a30-8367-d9f4b59ce0dd

Integration guide: https://openany.si/docs/
Agent setup: https://openany.si/SKILL.md
