# NBA Teams List

> NBA Teams List is a paid API for AI agents from mlb-stats-api.fly.dev, paid per call via x402, $0.001000/call, status unknown (last checked 2026-09-13).

Returns all NBA teams with their id, name, abbreviation, city, conference, and division.

## Facts

- Endpoint: GET https://mlb-stats-api.fly.dev/nba/teams
- Price: $0.001000/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/mlb-stats-api-fly-dev-b9f769e0
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_kHLPA7tGyQqmm9CRHslrr

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability mlb-stats-api-fly-dev-b9f769e0
```

Example prompt: Can you give me a list of all NBA teams along with their abbreviations, cities, conferences, and divisions?

## When to prefer this

Use this endpoint when you need a complete directory of all NBA teams including their IDs, abbreviations, conferences, and divisions — especially useful as a reference to map team names to IDs before making further NBA stats queries on this same API.

## Known failure modes

- Service unavailable or 5xx error if the fly.dev host is down
- Payment required (402) if x402 micropayment of 0.001 USDC is not provided
- Empty or malformed response if upstream NBA data source is unavailable

## How this service works

Returns NBA team data for use in apps and analytics.

## Output

A list of all NBA teams, each with a numeric team ID, full team name, short abbreviation (e.g. LAL), city, conference (Eastern/Western), and division name.

## Example request

```json
{
 "input": {
  "type": "http",
  "method": "GET",
  "queryParams": {}
 }
}
```

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {}
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/mlb-stats-api-fly-dev-b9f769e0/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from mlb-stats-api.fly.dev](https://www.zero.xyz/host/mlb-stats-api.fly.dev/llms.txt)
