# Fanfare MLB Game Schedule

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

Returns MLB game schedules including matchups, scores, venues, and game status, filterable by date or team ID.

## Facts

- Endpoint: GET https://fanfare-api.fly.dev/mlb/schedule
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/fanfare-api-fly-dev-fa74ad05
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_XZE3X5F517utigmcRz0Xb

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

Example prompt: What MLB games are scheduled for July 15, 2025, and can you also pull up the schedule for the New York Yankees (team ID 147) on that day?

## When to prefer this

Use this endpoint when you need MLB-specific game scheduling data including matchups, scores, venues, and statuses for a specific date or team. Prefer this over generic sports APIs when you need quick, cheap per-call lookups filtered by date or MLB team ID. Ideal for building fan-facing applications, fantasy sports tools, or sports chatbots needing real-time MLB schedule context.

## Known failure modes

- Invalid date format returns an error — must use YYYY-MM-DD
- Unknown or invalid teamId returns no results or an error
- No games scheduled for the given date returns an empty schedule
- Service downtime on fanfare-api.fly.dev returns a 5xx error
- Payment failure (x402) prevents access if USDC balance is insufficient

## How this service works

Returns upcoming and current MLB game schedules.

## Output

Returns a list of MLB games for the queried date or team, including matchup details (home/away teams), game scores, venue name, game time, and current game status (scheduled, in progress, final, etc.).

## Example request

```json
{
 "input": {
  "type": "http",
  "method": "GET",
  "queryParams": {
   "date": "2025-07-15"
  }
 }
}
```

## 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/fanfare-api-fly-dev-fa74ad05/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)
