# fanfare.run MLB Lineups

> fanfare.run MLB Lineups is a paid API for AI agents from fanfare.run, paid per call via x402, $0.050000/call, status unknown (last checked 2026-09-14).

Returns confirmed batting orders, probable pitchers, and late scratches for MLB games on a given date

## Facts

- Endpoint: GET https://fanfare.run/v1/fantasy/mlb/lineups
- Price: $0.050000/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/fanfare-run-mlb-lineups-f1734782
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_QSJ_62jBuxIcHL3oJVc0N

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-run-mlb-lineups-f1734782
```

Example prompt: Pull up the confirmed batting orders and probable pitchers for all MLB games on June 15, 2025 — I need to check for any late scratches before I lock my fantasy lineup.

## When to prefer this

Use this endpoint when you need confirmed, real-time MLB lineup data including batting order positions, probable pitchers, and late scratches for fantasy sports decisions. Prefer this over generic sports APIs when you specifically need DFS-ready lineup confirmation with scratch intelligence for a particular date or game.

## Known failure modes

- Missing required 'date' parameter returns a 400 validation error
- Lineups not yet released for a future game may return empty or partial data
- Invalid team_id or game_pk returns empty results or 404
- Date format not matching YYYY-MM-DD causes a parsing error
- Service may have delays if upstream MLB Stats API is slow or unavailable

## How this service works

Confirmed batting orders + probable pitchers + late scratches per MLB game for a date. The single biggest fantasy lever. Params: date (YYYY-MM-DD), team_id, game_pk.

## Output

A structured response per MLB game containing confirmed batting orders, probable starting pitchers, and any late scratches, filtered optionally by team_id or game_pk for the requested date.

## Example request

```json
{
 "input": {
  "type": "http",
  "method": "GET",
  "queryParams": {
   "date": "2025-06-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",
     "required": [
      "date"
     ],
     "properties": {
      "date": {
       "type": "string",
       "description": "Calendar date YYYY-MM-DD"
      },
      "game_pk": {
       "type": "integer",
       "description": "MLB game_pk (optional filter)"
      },
      "team_id": {
       "type": "integer",
       "description": "MLB Stats API team_id (optional filter)"
      }
     }
    }
   },
   "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-run-mlb-lineups-f1734782/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from fanfare.run](https://www.zero.xyz/host/fanfare.run/llms.txt)
