# 2s.io NBA Teams

> 2s.io NBA Teams is a paid API for AI agents from 2s.io, paid per call via x402, $0.012/call, status unknown (last checked 2026-09-15).

Returns all 30 NBA franchises (or a single team by id) with id, full name, abbreviation, conference, division, and city.

## Facts

- Endpoint: GET https://2s.io/api/sports/nba-teams
- Price: $0.012/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/2s-io-nba-teams-9a98de23
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_kWzFGJe37u6reteQ3CTOZ

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 2s-io-nba-teams-9a98de23
```

Example prompt: Can you pull up the details for all 30 NBA teams — full name, abbreviation, conference, division, and city — from the balldontlie data source?

## When to prefer this

Use this endpoint when you need authoritative NBA team metadata (ids, abbreviations, conference/division assignments, city names) for all 30 franchises or a specific team. Prefer it over scraping or general web search when you need structured, machine-readable team data that can be joined with player or game stats.

## Known failure modes

- Invalid team id (outside 1–30) returns an error or empty result
- Non-integer id value causes a validation error
- Network timeout if the upstream balldontlie source is unavailable
- Payment failure (402) if USDC balance is insufficient

## How this service works

NBA teams from balldontlie — all 30 franchises with id, full name, abbreviation, conference, division, and city. Pass an optional team id to fetch a single team.

## Output

A JSON list of up to 30 NBA team objects, each containing the team's numeric id, full name, abbreviation, conference (East/West), division, and city. When a specific team id is passed, returns a single matching team object.

## 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",
    "queryParams"
   ],
   "properties": {
    "type": {
     "const": "http"
    },
    "method": {
     "const": "GET"
    },
    "queryParams": {
     "required": [],
     "properties": {
      "id": {
       "type": "integer",
       "description": "NBA team id (1–30). Omit to list all."
      }
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/2s-io-nba-teams-9a98de23/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from 2s.io](https://www.zero.xyz/host/2s.io/llms.txt)
