# MLB Venue Nearby Places

> MLB Venue Nearby Places 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-13).

Returns restaurants, bars, parking, and attractions near a specific MLB ballpark using Google Places data

## Facts

- Endpoint: GET https://fanfare-api.fly.dev/mlb/venue-nearby
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/fanfare-api-fly-dev-436bf2bb
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_yuW4gs0CylI9gEnY5ht3b

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-436bf2bb
```

Example prompt: What restaurants are near Yankee Stadium? The venue ID is 3313 — show me places to eat before the game.

## When to prefer this

Use this endpoint when an agent needs to help a user plan activities around an MLB baseball game — finding places to eat, drink, park, or explore near a specific ballpark. Prefer this over generic location search when the user already has an MLB venue context and wants curated nearby options filtered by place type.

## Known failure modes

- Invalid or missing venueId returns an error or empty result
- Unsupported Google Places type filter returns an error
- No nearby results found for the requested type returns an empty list
- Network or upstream Google Places API failure returns a 5xx error
- Payment not provided or insufficient returns 402 Payment Required

## How this service works

Live sports intelligence for agents building fan experiences across major North American leagues — teams, schedules, standings, players, stats, venues, and things to do nearby.

## Output

A list of nearby places matching the requested type (restaurant, bar, cafe, parking, tourist_attraction, or lodging) around the specified MLB ballpark, sourced from Google Places, including place names, addresses, ratings, and relevant details for pre-game or game-day planning.

## Example request

```json
{
 "input": {
  "type": "http",
  "method": "GET",
  "queryParams": {
   "type": "restaurant",
   "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": {
      "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/fanfare-api-fly-dev-436bf2bb/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)
