# NBA Game Schedule

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

Returns the NBA game schedule, optionally filtered by a specific date.

## Facts

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

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-b6df15c4
```

Example prompt: What NBA games are scheduled for December 25, 2025?

## When to prefer this

Use this endpoint when you need NBA game schedule data for a specific date or the current schedule. Prefer this over MLB, NFL, or NHL schedule endpoints specifically for NBA basketball games. It supports optional date filtering, making it suitable for day-specific lookups or fetching the general upcoming schedule.

## Known failure modes

- Invalid date format returns an error — must use YYYY-MM-DD
- No games on the requested date returns an empty schedule
- Date out of current season range may return empty or error
- Network/server unavailability returns 5xx error

## How this service works

NBA game schedule. Optional: date (YYYY-MM-DD).

## Output

A list of NBA games for the requested date (or current/upcoming schedule if no date provided), including team matchups, game times, and related schedule details.

## Example request

```json
{
 "input": {
  "type": "http",
  "method": "GET",
  "queryParams": {
   "date": "2025-12-25"
  }
 }
}
```

## 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": {
      "date": {
       "type": "string",
       "description": "Game date (YYYY-MM-DD)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "data",
  "sport",
  "errors",
  "league",
  "warnings",
  "request_id",
  "retrieved_at"
 ],
 "properties": {
  "data": {
   "type": "array",
   "items": {
    "type": "object",
    "required": [
     "id",
     "clock",
     "score",
     "sport",
     "venue",
     "league",
     "period",
     "season",
     "status",
     "date_utc",
     "away_team",
     "home_team"
    ],
    "properties": {
     "id": {
      "type": "string"
     },
     "clock": {
      "type": "null"
     },
     "score": {
      "type": "object",
      "required": [
       "away",
       "home",
       "quarters"
      ],
      "properties": {
       "away": {
        "type": "number"
       },
       "home": {
        "type": "number"
       },
       "quarters": {
        "type": "array",
        "items": {
         "type": "object",
         "required": [
          "away",
          "home",
          "quarter"
         ],
         "properties": {
          "away": {
           "type": "number"
          },
          "home": {
           "type": "number"
          },
          "quarter": {
           "type": "number"
          }
         }
        }
       }
      }
     },
     "sport": {
      "type": "string"
     },
     "venue": {
      "type": "object",
      "required": [
       "city",
       "name",
       "state",
       "surface",
       "roof_type"
      ],
      "properties": {
       "city": {
        "type": "string"
       },
       "name": {
        "type": "string"
       },
       "state": {
        "type": "string"
       },
       "surface": {
        "type": "null"
       },
       "roof_type": {
        "type": "string"
       }
      }
     },
     "league": {
      "type": "string"
     },
     "period": {
      "type": "number"
     },
     "season": {
      "type": "string"
     },
     "status": {
      "type": "string"
     },
     "date_utc": {
      "type": "string"
     },
     "away_team": {
      "type": "object",
      "required": [
       "id",
       "city",
       "name",
       "division",
       "full_name",
       "conference",
       "abbreviation"
      ],
      "properties": {
       "id": {
        "type": "string"
       },
       "city": {
        "type": "string"
       },
       "name": {
        "type": "string"
       },
       "division": {
        "type": "null"
       },
       "full_name": {
        "type": "string"
       },
       "conference": {
        "type": "null"
       },
  
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/mlb-stats-api-fly-dev-b6df15c4/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)
