# Fanfare MLB Teams

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

Returns all 30 MLB teams with their IDs, city names, abbreviations, and division assignments for use in further sports queries.

## Facts

- Endpoint: GET https://fanfare.run/mlb/teams
- Price: $0.001000/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-82a6ddbf
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_dcd97FaqV9rgCxLBnJI2b

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-82a6ddbf
```

Example prompt: Can you give me a list of all 30 MLB teams with their IDs, abbreviations, cities, and divisions? I need the team IDs so I can look up the Dodgers' schedule.

## When to prefer this

Use this endpoint when you need a canonical list of all MLB teams with their IDs before querying downstream Fanfare endpoints like schedules, standings, or player stats. This is the starting point for any MLB data workflow on the Fanfare platform.

## Known failure modes

- Service unavailable (503) if Fanfare backend is down
- Payment failure if x402 micropayment is not processed correctly
- Empty or malformed response if API is in maintenance

## How this service works

All 30 MLB teams with ID, city, abbreviation, and division. Use team IDs to query schedules, standings, and players.

## Output

A structured list of all 30 MLB teams, each including a unique team ID, full team name, city, two-to-three letter abbreviation, and division assignment (e.g. AL East, NL West). The team IDs can be used as inputs to other Fanfare endpoints for schedules, standings, and player data.

## 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"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/fanfare-run-82a6ddbf/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)
