# MLB Active Players Roster

> MLB Active Players Roster 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 all active MLB players for the current season, including name, position, jersey number, and team assignment.

## Facts

- Endpoint: GET https://fanfare-api.fly.dev/mlb/players
- 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-3d37ffbe
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_uTQQLf7LeVtKGtEKh9snc

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-3d37ffbe
```

Example prompt: Can you pull up the full list of active MLB players this season — I want to see each player's name, position, jersey number, and which team they're on?

## When to prefer this

Use this endpoint when you need a comprehensive, current-season snapshot of all active MLB players across all 30 teams, including their positions, jersey numbers, and team affiliations. Ideal for building rosters, powering player lookups, or cross-referencing player stats with team data.

## Known failure modes

- Season data not yet loaded or updated — may return empty or stale roster
- Service unavailable (fly.dev cold start or downtime) — returns 5xx error
- Payment not processed (x402) — returns 402 Payment Required
- No players match current season — returns empty array

## How this service works

All active MLB players for the current season — name, position, jersey number, and team assignment.

## Output

A list of all active MLB players for the current season, each entry containing the player's full name, position (e.g. SP, SS, OF), jersey number, and team assignment.

## Example request

```json
{
 "input": {
  "type": "http",
  "method": "GET",
  "queryParams": {}
 }
}
```

## 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": {}
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "_truncated",
  "_originalSize"
 ],
 "properties": {
  "_truncated": {
   "type": "boolean"
  },
  "_originalSize": {
   "type": "number"
  }
 }
}
```

## More

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