{"uid":"cap_a32DhGXU6yM6ymuspjAI0","slug":"mlb-stats-api-fly-dev-8f8c3d8a","name":"MLB Venues / Stadium Info","description":"Retrieves MLB venue data, including ballpark details and related stats.","url":"https://mlb-stats-api.fly.dev/mlb/venues","method":"GET","headers":{},"bodySchema":{"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"}}}}},"responseSchema":null,"example":{"request":{"input":{"type":"http","method":"GET","queryParams":{"venueId":3313}}},"response":{"data":{"id":"3313","city":"Bronx","name":"Yankee Stadium","state":"NY","country":"USA","surface":"grass","capacity":47309,"latitude":40.82919482,"longitude":-73.9264977,"roof_type":"open"},"sport":"baseball","errors":[],"league":"mlb","warnings":[],"request_id":"c81e8d3c-1dc2-4414-8694-8b0edbbf0429","retrieved_at":"2026-05-29T23:54:01.889083+00:00"}},"exampleRequest":{"venueId":3313},"tags":["x402"],"displayCostAmount":"0.001","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_wryz0oceC-yr29yYdxFDj","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns MLB stadium information, optionally filtered to a specific venue by venueId.","exampleAgentPrompt":"Can you pull up the stadium info for MLB venue ID 3313 — I want to know the details about that ballpark?","exampleUseCases":[{"title":"Find Yankees home stadium details","prompt":"What stadium do the New York Yankees play in, and can you get me all the details about that ballpark?"},{"title":"Look up Fenway Park venue ID","prompt":"I need to know the venueId for Fenway Park — can you look that up for me so I can use it in another search?"},{"title":"List all MLB stadiums","prompt":"Can you pull up a full list of all MLB stadiums with their names and locations?"}],"resultDescription":"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.","failureModes":["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)"],"whenToPreferThis":"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).","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T12:42:10.037Z","isFirstParty":false}