# NHL Game Feed – Play-by-Play & Live Scoring

> NHL Game Feed – Play-by-Play & Live Scoring 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-13).

Returns real-time play-by-play data and scoring for a specific NHL game by game ID

## Facts

- Endpoint: GET https://mlb-stats-api.fly.dev/nhl/game/:game_id
- Price: $0.005000/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-56cac627
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_2rOyt29c4GRVFcaaOOSi_

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-56cac627
```

Example prompt: What's the live play-by-play and current score for NHL game 2024020500? Pull the full game feed so I can see all the scoring events.

## When to prefer this

Use this endpoint when you need granular, real-time or historical play-by-play data for a specific NHL game, including scoring events, penalties, and period breakdowns. Prefer this over a standings or schedule endpoint when the user wants game-level detail rather than aggregated stats.

## Known failure modes

- Invalid or non-existent game_id returns a 404 or empty response
- Game not yet started may return minimal feed data
- Future-scheduled game ID may lack play-by-play events
- Malformed game_id format may return a 400 error
- Payment failure (402) if USDC balance is insufficient

## How this service works

Real-time NHL game feed with play-by-play and scoring.

## Output

A structured game feed containing real-time play-by-play events, period-by-period scoring, goal details, penalties, and overall game status for the requested NHL game ID.

## Example request

```json
{
 "input": {
  "type": "http",
  "method": "GET",
  "pathParams": {
   "game_id": "2023020001"
  },
  "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"
    },
    "pathParams": {
     "type": "object",
     "required": [
      "game_id"
     ],
     "properties": {
      "game_id": {
       "type": "string",
       "description": "NHL game ID"
      }
     }
    },
    "queryParams": {
     "type": "object",
     "properties": {}
    }
   },
   "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": "object",
   "required": [
    "id",
    "clock",
    "score",
    "sport",
    "league",
    "period",
    "season",
    "status",
    "date_utc",
    "away_team",
    "home_team",
    "venue_name"
   ],
   "properties": {
    "id": {
     "type": "string"
    },
    "clock": {
     "type": "null"
    },
    "score": {
     "type": "object",
     "required": [
      "away",
      "home",
      "periods"
     ],
     "properties": {
      "away": {
       "type": "number"
      },
      "home": {
       "type": "number"
      },
      "periods": {
       "type": "null"
      }
     }
    },
    "sport": {
     "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"
      },
      "abbreviation": {
       "type": "string"
      }
     }
    },
    "home_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"
      },
      "abbreviation": {
       "type": "string"
      }
     }
    },
    "venue_name": {
     "type": "string"
    }
   }
  },
  "sport": {
   "type": "string"
  },
  "errors": {
   "type": "array",
   "items": {
    "type": "unknown"
   }
  },
  "league": {
   "type": "string"
  },
  "warnings": {
   "type": "array",
   "items": {
    "type": "unknown"
   }
  },

… (truncated)
```

## More

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