# Fanfare MLB Live Game Feed

> Fanfare MLB Live 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, lineup, and scoring data for a specific MLB game by game PK.

## Facts

- Endpoint: GET https://fanfare-api.fly.dev/mlb/game/:game_pk
- 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-07073671
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_dC2YssGrTYtdt5M8EvZda

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

Example prompt: What's happening right now in the Cubs vs Cardinals game — give me the live play-by-play, current score, and lineups for MLB game 716463.

## When to prefer this

Use this endpoint when you need real-time or in-progress MLB game data including play-by-play narration, live scoring, and lineup information for a specific game identified by its MLB game PK. Prefer this over standings or schedule endpoints when you need granular live game events rather than summary stats.

## Known failure modes

- Invalid or non-existent game_pk returns 404 or empty result
- Game not yet started returns pre-game state with lineups but no play-by-play
- Network or upstream data provider latency may delay real-time updates
- Payment failure (402) if x402 payment header is missing or insufficient

## How this service works

Real-time live game feed with play-by-play, lineups, and scoring.

## Output

Returns a real-time game feed for the specified MLB game including current score, inning, play-by-play events, starting and current lineups, and a box score summary.

## Example request

```json
{
 "input": {
  "type": "http",
  "method": "GET",
  "pathParams": {
   "game_pk": 716463
  }
 }
}
```

## 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_pk"
     ],
     "properties": {
      "game_pk": {
       "type": "string",
       "description": "MLB game PK"
      }
     }
    },
    "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",
    "score",
    "sport",
    "venue",
    "inning",
    "league",
    "season",
    "status",
    "date_utc",
    "away_team",
    "home_team",
    "inning_half"
   ],
   "properties": {
    "id": {
     "type": "string"
    },
    "score": {
     "type": "object",
     "required": [
      "away",
      "home",
      "innings"
     ],
     "properties": {
      "away": {
       "type": "number"
      },
      "home": {
       "type": "number"
      },
      "innings": {
       "type": "array",
       "items": {
        "type": "object",
        "required": [
         "away",
         "home",
         "inning"
        ],
        "properties": {
         "away": {
          "type": "number"
         },
         "home": {
          "type": "number"
         },
         "inning": {
          "type": "number"
         }
        }
       }
      }
     }
    },
    "sport": {
     "type": "string"
    },
    "venue": {
     "type": "object",
     "required": [
      "id",
      "city",
      "name",
      "state",
      "country",
      "surface",
      "capacity",
      "latitude",
      "longitude",
      "roof_type"
     ],
     "properties": {
      "id": {
       "type": "string"
      },
      "city": {
       "type": "string"
      },
      "name": {
       "type": "string"
      },
      "state": {
       "type": "string"
      },
      "country": {
       "type": "string"
      },
      "surface": {
       "type": "string"
      },
      "capacity": {
       "type": "number"
      },
      "latitude": {
       "type": "number"
      },
      "longitude": {
       "type": "number"
      },
      "roof_type": {
       "type": "string"
      }
     }
    },
    "inning": {
     "type": "number"
    },
    "league": {
     "type": "string"
    },
    "season": {
     "type": "string"
    },
    "status": {
     "type": "string"
    },
    "date_utc": {
     "type": "string"
    },
    "away_team": {
     "type": "object",
     "required": [
      "id",
      "city",
      "name",
      "full_name",
      "abbreviation",
      "league_division"
     ],
     "properties": {
      "id": {
       "type": "string"
      },
      "city": {
       "type": "string"
      },
      "name": {
       "type": "string"
      },
      "full_name": {
       "type": "
… (truncated)
```

## More

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