# NBA Game Detail (Live Scores & Period)

> NBA Game Detail (Live Scores & Period) is a paid API for AI agents from mlb-stats-api.fly.dev, paid per call via x402, $0.005000/call, status unknown (last checked 2026-09-14).

Returns live score, period, and game details for a specific NBA game by ESPN game ID

## Facts

- Endpoint: GET https://mlb-stats-api.fly.dev/nba/game/:game_id
- Price: $0.005000/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/mlb-stats-api-fly-dev-72a707fc
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_7ifa-i37_0KxF_5MxLgne

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-72a707fc
```

Example prompt: What's the current score and period for NBA game ID 401585518 — is it still live?

## When to prefer this

Use this endpoint when you need real-time or recent NBA game scores and period information for a specific game identified by its ESPN game ID. Prefer this over general sports data providers when you already have the ESPN game ID and need quick, structured game detail.

## Known failure modes

- Invalid or non-existent game_id returns a 404 or empty result
- Game ID from a non-NBA sport will return incorrect or no data
- Network or upstream ESPN data unavailability may cause 5xx errors
- Payment failure (402) if USDC balance is insufficient

## How this service works

NBA game detail including live scores and period.

## Output

Returns NBA game details including current live score for both teams, the current period, game status (live/final/scheduled), and other game metadata sourced via ESPN game ID.

## 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"
    },
    "pathParams": {
     "type": "object",
     "required": [
      "game_id"
     ],
     "properties": {
      "game_id": {
       "type": "string",
       "description": "ESPN game ID"
      }
     }
    },
    "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-72a707fc/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)
