# MLB Venue Weather

> MLB Venue Weather 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 current weather conditions at a specific MLB ballpark by venue ID

## Facts

- Endpoint: GET https://mlb-stats-api.fly.dev/mlb/venue-weather
- 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-6146845e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_UGMZT1GKgQC-8qcyJA9VQ

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-6146845e
```

Example prompt: What are the current weather conditions at Yankee Stadium — venue ID 3313 — right now?

## When to prefer this

Use this endpoint when you need real-time or current weather specifically tied to an MLB ballpark location, especially for game-day planning, rain-out predictions, or fan preparation. Prefer over generic weather APIs when you already have an MLB venueId and want stadium-specific conditions.

## Known failure modes

- Missing or invalid venueId returns an error — venueId is required and must be a valid MLB integer venue ID
- Unknown venue ID may return 404 or empty result if the ID does not correspond to an active MLB venue
- Payment failure (x402) if USDC microtransaction is not completed before the request

## How this service works

Current weather conditions at an MLB venue. Required: venueId.

## Output

Current weather conditions at the specified MLB ballpark, including temperature, humidity, wind, and sky conditions at game time or current moment

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

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "data",
  "sport",
  "errors",
  "league",
  "warnings",
  "request_id",
  "retrieved_at"
 ],
 "properties": {
  "data": {
   "type": "object",
   "required": [
    "current",
    "latitude",
    "timezone",
    "venue_id",
    "longitude",
    "venue_name"
   ],
   "properties": {
    "current": {
     "type": "object",
     "required": [
      "condition",
      "feels_like_c",
      "temperature_c",
      "wind_speed_kmh",
      "humidity_percent",
      "precipitation_mm"
     ],
     "properties": {
      "condition": {
       "type": "string"
      },
      "feels_like_c": {
       "type": "number"
      },
      "temperature_c": {
       "type": "number"
      },
      "wind_speed_kmh": {
       "type": "number"
      },
      "humidity_percent": {
       "type": "number"
      },
      "precipitation_mm": {
       "type": "number"
      }
     }
    },
    "latitude": {
     "type": "number"
    },
    "timezone": {
     "type": "string"
    },
    "venue_id": {
     "type": "string"
    },
    "longitude": {
     "type": "number"
    },
    "venue_name": {
     "type": "string"
    }
   }
  },
  "sport": {
   "type": "string"
  },
  "errors": {
   "type": "array",
   "items": {
    "type": "unknown"
   }
  },
  "league": {
   "type": "string"
  },
  "warnings": {
   "type": "array",
   "items": {
    "type": "unknown"
   }
  },
  "request_id": {
   "type": "string"
  },
  "retrieved_at": {
   "type": "string"
  }
 }
}
```

## More

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