# MLB Venues / Stadium Info

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

Returns MLB stadium information, optionally filtered to a specific venue by venueId.

## Facts

- Endpoint: GET https://mlb-stats-api.fly.dev/mlb/venues
- 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/mlb-stats-api-fly-dev-8f8c3d8a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_a32DhGXU6yM6ymuspjAI0

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-8f8c3d8a
```

Example prompt: Can you pull up the stadium info for MLB venue ID 3313 — I want to know the details about that ballpark?

## When to prefer this

Use this endpoint when you need MLB stadium or ballpark metadata such as venue names, IDs, or location details. Prefer over general web search when structured, machine-readable venue data is needed, or when you need to resolve a venueId for use in other MLB API calls (e.g. weather at a venue).

## Known failure modes

- Invalid or non-existent venueId returns empty or error response
- Network timeout from fly.dev hosting
- Payment failure for x402 micropayment ($0.001 USDC)
- Malformed query parameter type (venueId must be integer)

## How this service works

Retrieves MLB venue data, including ballpark details and related stats.

## Output

Returns structured information about MLB stadiums including venue name, location, and other stadium details. If a venueId is provided, returns data for that specific venue; otherwise returns info for all MLB venues.

## Example request

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

## 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": {
      "venueId": {
       "type": "integer",
       "description": "MLB venue 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-8f8c3d8a/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)
