# Fanfare NHL Game Feed

> Fanfare NHL Game Feed is a paid API for AI agents from fanfare-api.fly.dev, paid per call via x402, $0.005000/call, status unknown (last checked 2026-09-13).

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

## Facts

- Endpoint: GET https://fanfare-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/fanfare-api-fly-dev-4603709c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_4qEVnVhrez5Vzf-F39ZaA

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 fanfare-api-fly-dev-4603709c
```

Example prompt: What's happening right now in NHL game 2024020512 — can you pull up the live play-by-play and current score?

## When to prefer this

Use this endpoint when you need real-time, play-by-play NHL game data for a specific game. Ideal for live game tracking, score monitoring, or building game-day experiences. Best when you already have the NHL game ID from a schedule or scoreboard endpoint.

## Known failure modes

- Invalid or non-existent game_id returns a 404 or error response
- Game not yet started may return empty or pre-game state
- Network latency on fly.dev infrastructure could cause timeouts
- Payment failure (x402) if USDC balance is insufficient

## How this service works

Live NHL game feed — period, clock, play-by-play, and real-time scoring. Use game_id from the schedule endpoint.

## Output

Returns a live game feed for the specified NHL game including play-by-play events, current score, period, game clock, team lineups, and other real-time game state information.

## Example request

```json
{
 "game_id": 2024020512
}
```

## 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/fanfare-api-fly-dev-4603709c/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from fanfare-api.fly.dev](https://www.zero.xyz/host/fanfare-api.fly.dev/llms.txt)
