{"uid":"cap_XZE3X5F517utigmcRz0Xb","slug":"fanfare-api-fly-dev-fa74ad05","name":"Fanfare MLB Game Schedule","description":"Returns upcoming and current MLB game schedules.","url":"https://fanfare-api.fly.dev/mlb/schedule","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":{"date":{"type":"string","description":"Game date (YYYY-MM-DD)"},"teamId":{"type":"integer","description":"MLB team 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":{"date":"2025-07-15"}}},"response":{"data":[{"id":"778566","score":{"away":6,"home":7,"innings":null},"sport":"baseball","venue":{"id":"4705","city":null,"name":"Truist Park","state":null,"country":null,"surface":null,"capacity":null,"latitude":null,"longitude":null,"roof_type":null},"inning":null,"league":"mlb","season":"2025","status":"final","date_utc":"2025-07-16T00:00:00Z","away_team":{"id":"159","city":"Philadelphia","name":"AL All-Stars","full_name":"American League All-Stars","abbreviation":"AL","league_division":null},"home_team":{"id":"160","city":"Philadelphia","name":"NL All-Stars","full_name":"National League All-Stars","abbreviation":"NL","league_division":null},"inning_half":null}],"sport":"baseball","errors":[],"league":"mlb","warnings":[],"request_id":"e9a59039-f219-48b5-bb9e-aa066a56a851","retrieved_at":"2026-05-30T00:29:49.391142+00:00"}},"exampleRequest":{"date":"2025-07-15"},"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_CygA8beKjrk5ROPzRbB6t","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns MLB game schedules including matchups, scores, venues, and game status, filterable by date or team ID.","exampleAgentPrompt":"What MLB games are scheduled for July 15, 2025, and can you also pull up the schedule for the New York Yankees (team ID 147) on that day?","exampleUseCases":null,"resultDescription":"Returns a list of MLB games for the queried date or team, including matchup details (home/away teams), game scores, venue name, game time, and current game status (scheduled, in progress, final, etc.).","failureModes":["Invalid date format returns an error — must use YYYY-MM-DD","Unknown or invalid teamId returns no results or an error","No games scheduled for the given date returns an empty schedule","Service downtime on fanfare-api.fly.dev returns a 5xx error","Payment failure (x402) prevents access if USDC balance is insufficient"],"whenToPreferThis":"Use this endpoint when you need MLB-specific game scheduling data including matchups, scores, venues, and statuses for a specific date or team. Prefer this over generic sports APIs when you need quick, cheap per-call lookups filtered by date or MLB team ID. Ideal for building fan-facing applications, fantasy sports tools, or sports chatbots needing real-time MLB schedule context.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T12:53:41.788Z","isFirstParty":false}