# MLB Game Schedule

> MLB Game Schedule is a paid API for AI agents from mlb-stats-api.fly.dev, paid per call via x402, $0.001000/call, status unknown (last checked 2026-09-15).

Returns MLB game schedule, optionally filtered by date or team ID

## Facts

- Endpoint: GET https://mlb-stats-api.fly.dev/mlb/schedule
- Price: $0.001000/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-655a6357
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_j08IrG5RPLkd9HPqlU_0s

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-655a6357
```

Example prompt: What MLB games are scheduled for July 15, 2025? Also, can you filter it to just show games for the Yankees (team ID 147)?

## When to prefer this

Use this endpoint when you need MLB game schedule data filtered by a specific date or team. Prefer this over generic sports APIs when you specifically need MLB game listings and optionally want to scope results to a single team.

## Known failure modes

- Invalid date format returns error — must be YYYY-MM-DD
- Unknown or invalid teamId returns empty or error response
- No games scheduled for the requested date returns empty schedule
- Service unavailable if mlb-stats-api.fly.dev is down
- Rate limiting or payment failure (x402) if USDC balance is insufficient

## How this service works

MLB game schedule. Optional: date (YYYY-MM-DD), teamId.

## Output

A list of MLB games scheduled for the queried date and/or team, including teams playing, game times, venues, and other scheduling details.

## 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"
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "date": {
       "type": "string",
       "description": "Game date (YYYY-MM-DD)"
      },
      "teamId": {
       "type": "integer",
       "description": "MLB team ID"
      }
     }
    }
   },
   "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-655a6357/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)
