# MLB Venue Nearby Places

> MLB Venue Nearby Places 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 restaurants, bars, and other nearby places of interest around a specific MLB ballpark using Google Places data

## Facts

- Endpoint: GET https://mlb-stats-api.fly.dev/mlb/venue-nearby
- 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-9081d296
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_5O39_ZOTnCgXZGGAOZi0-

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-9081d296
```

Example prompt: What restaurants are near Dodger Stadium (venue ID 22)? Also show me any bars in the area.

## When to prefer this

Use this endpoint when a user wants to discover food, drink, parking, or activity options near a specific MLB ballpark — ideal for pre-game or post-game planning tied to a known MLB venue ID.

## Known failure modes

- Invalid or unknown venueId returns an error or empty result
- Unsupported place type string may return no results or an error
- Network timeout if Google Places API is slow
- No places found if the venue is in a remote location with few nearby businesses

## How this service works

Restaurants, bars, and activities near an MLB venue via Google Places. Required: venueId. Optional: type (default: restaurant). Common types: restaurant, bar, cafe, parking, tourist_attraction, lodging.

## Output

A list of nearby places around the specified MLB venue, filtered by the requested type (e.g. restaurant, bar, cafe), including place names, addresses, ratings, and other Google Places details.

## Example request

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

## 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": {
      "type": {
       "type": "string",
       "default": "restaurant",
       "description": "Google Places type filter (restaurant, bar, cafe, parking, tourist_attraction, lodging)"
      },
      "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": [
    "places",
    "category",
    "latitude",
    "venue_id",
    "longitude",
    "venue_name",
    "radius_meters"
   ],
   "properties": {
    "places": {
     "type": "array",
     "items": {
      "type": "object",
      "required": [
       "name",
       "types",
       "rating",
       "address",
       "place_id",
       "user_ratings_total"
      ],
      "properties": {
       "name": {
        "type": "string"
       },
       "types": {
        "type": "array",
        "items": {
         "type": "string"
        }
       },
       "rating": {
        "type": "number"
       },
       "address": {
        "type": "string"
       },
       "place_id": {
        "type": "string"
       },
       "user_ratings_total": {
        "type": "number"
       }
      }
     }
    },
    "category": {
     "type": "string"
    },
    "latitude": {
     "type": "number"
    },
    "venue_id": {
     "type": "string"
    },
    "longitude": {
     "type": "number"
    },
    "venue_name": {
     "type": "string"
    },
    "radius_meters": {
     "type": "number"
    }
   }
  },
  "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-9081d296/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)
