# MLB Live Game Feed

> MLB Live Game Feed 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-15).

Returns real-time live game data including play-by-play, lineups, and scoring for a specific MLB game by game PK.

## Facts

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

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

Example prompt: What's happening right now in the Dodgers game? Pull up the live play-by-play, current score, and lineups — the game PK is 716463.

## When to prefer this

Use this endpoint when you need real-time, granular game data for a specific MLB game — including live play-by-play, lineup cards, and inning-by-inning scoring. Prefer this over standings or schedule endpoints when the user wants live in-game updates rather than historical stats or upcoming schedules.

## Known failure modes

- Invalid or non-existent game_pk returns a 404 or empty response
- Game not yet started may return a pre-game state with no play-by-play
- Game PK for a non-MLB sport or wrong league returns an error
- Network latency on fly.dev may occasionally cause slow responses
- Payment failure (402) if USDC balance is insufficient

## How this service works

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

## Output

A live game feed object containing current score by inning, play-by-play event log, starting and current lineups for both teams, game status (in progress, final, etc.), current inning and outs, and other real-time game state details.

## Example request

```json
{
 "game_pk": 716463
}
```

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "game_pk"
 ],
 "properties": {
  "game_pk": {
   "type": "integer",
   "description": "MLB game PK (numeric identifier)"
  }
 },
 "additionalProperties": false
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "request_id",
  "sport",
  "league",
  "retrieved_at",
  "data",
  "warnings",
  "errors"
 ],
 "properties": {
  "data": {
   "type": "object",
   "required": [
    "id",
    "sport",
    "league",
    "season",
    "date_utc",
    "status",
    "inning",
    "inning_half",
    "home_team",
    "away_team",
    "score",
    "venue"
   ],
   "properties": {
    "id": {
     "type": "string"
    },
    "score": {
     "type": "object",
     "required": [
      "home",
      "away",
      "innings"
     ],
     "properties": {
      "away": {
       "type": "number"
      },
      "home": {
       "type": "number"
      },
      "innings": {
       "type": "array",
       "items": {
        "type": "object",
        "required": [
         "inning",
         "home",
         "away"
        ],
        "properties": {
         "away": {
          "type": "number"
         },
         "home": {
          "type": "number"
         },
         "inning": {
          "type": "number"
         }
        }
       }
      }
     }
    },
    "sport": {
     "type": "string"
    },
    "venue": {
     "type": "object",
     "required": [
      "id",
      "name",
      "city",
      "state",
      "country",
      "capacity",
      "surface",
      "roof_type",
      "latitude",
      "longitude"
     ],
     "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",
      "name",
      "full_name",
      "abbreviation",
      "city",
      "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/mlb-stats-api-fly-dev-e72c84ab/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)
