{"uid":"cap_lA5MULS7cAXkSjm6Gf1rP","slug":"mlb-stats-api-fly-dev-e72c84ab","name":"MLB Live Game Feed","description":"Real-time live game feed with play-by-play, lineups, and scoring.","url":"https://mlb-stats-api.fly.dev/mlb/game/:game_pk","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["game_pk"],"properties":{"game_pk":{"type":"integer","description":"MLB game PK (numeric identifier)"}},"additionalProperties":false},"responseSchema":{"type":"object","required":["request_id","sport","league","retrieved_at","data","warnings","errors"],"properties":{"data":{"type":"object","required":["id","sport","league","season","date_utc","status","inning","inning_half","home_team","away_team","score","venue"],"properties":{"id":{"type":"string"},"score":{"type":"object","required":["home","away","innings"],"properties":{"away":{"type":"number"},"home":{"type":"number"},"innings":{"type":"array","items":{"type":"object","required":["inning","home","away"],"properties":{"away":{"type":"number"},"home":{"type":"number"},"inning":{"type":"number"}}}}}},"sport":{"type":"string"},"venue":{"type":"object","required":["id","name","city","state","country","capacity","surface","roof_type","latitude","longitude"],"properties":{"id":{"type":"string"},"city":{"type":"string"},"name":{"type":"string"},"state":{"type":"string"},"country":{"type":"string"},"surface":{"type":"string"},"capacity":{"type":"number"},"latitude":{"type":"number"},"longitude":{"type":"number"},"roof_type":{"type":"string"}}},"inning":{"type":"number"},"league":{"type":"string"},"season":{"type":"string"},"status":{"type":"string"},"date_utc":{"type":"string"},"away_team":{"type":"object","required":["id","name","full_name","abbreviation","city","league_division"],"properties":{"id":{"type":"string"},"city":{"type":"string"},"name":{"type":"string"},"full_name":{"type":"string"},"abbreviation":{"type":"string"},"league_division":{"type":"string"}}},"home_team":{"type":"object","required":["id","name","full_name","abbreviation","city","league_division"],"properties":{"id":{"type":"string"},"city":{"type":"string"},"name":{"type":"string"},"full_name":{"type":"string"},"abbreviation":{"type":"string"},"league_division":{"type":"string"}}},"inning_half":{"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"}}},"example":{"request":{"game_pk":716463},"response":{"data":{"id":"716463","score":{"away":6,"home":7,"innings":[{"away":0,"home":4,"inning":1},{"away":0,"home":0,"inning":2},{"away":0,"home":0,"inning":3},{"away":0,"home":1,"inning":4},{"away":0,"home":0,"inning":5},{"away":4,"home":0,"inning":6},{"away":0,"home":0,"inning":7},{"away":2,"home":0,"inning":8},{"away":0,"home":2,"inning":9}]},"sport":"baseball","venue":{"id":"12","city":"St. Petersburg","name":"Tropicana Field","state":"FL","country":"USA","surface":"turf","capacity":25025,"latitude":27.767778,"longitude":-82.6525,"roof_type":"dome"},"inning":9,"league":"mlb","season":"2023","status":"final","date_utc":"2023-09-23T20:10:00Z","away_team":{"id":"141","city":"Toronto","name":"Blue Jays","full_name":"Toronto Blue Jays","abbreviation":"TOR","league_division":"AL East"},"home_team":{"id":"139","city":"St. Petersburg","name":"Rays","full_name":"Tampa Bay Rays","abbreviation":"TB","league_division":"AL East"},"inning_half":"bottom"},"sport":"baseball","errors":[],"league":"mlb","warnings":[],"request_id":"e33be07b-de85-43e0-b1fe-cbcf87550c01","retrieved_at":"2026-05-29T04:40:18.888300+00:00"}},"exampleRequest":{"game_pk":716463},"tags":["x402"],"displayCostAmount":"0.005000","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.005000/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_uQu6dStdzZS6uuwqqfzmE","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns real-time live game data including play-by-play, lineups, and scoring for a specific MLB game by game PK.","exampleAgentPrompt":"What's happening right now in the Dodgers game? Pull up the live play-by-play, current score, and lineups — the game PK is 716463.","exampleUseCases":[{"title":"Live game commentary for sports broadcast","prompt":"I'm streaming the Yankees-Red Sox game tonight and need real-time updates. Can you pull the current score, who's batting right now, and the last few plays that just happened? The game PK is 716463."},{"title":"Fantasy baseball lineup optimization during games","prompt":"I'm managing my fantasy team and three of my guys are playing today. Show me who's currently in the lineup for the Dodgers and Giants games, plus the current score and what inning they're in. The game PKs are 716463 and 716464."},{"title":"Sports bar order taking during live games","prompt":"A customer wants to know if the Cubs are winning right now and how many runs they're up by. Can you check the live score and last couple plays for their game? Let me know the game PK if you need it and I'll grab it from the screen."}],"resultDescription":"A live game feed object containing current score by inning, play-by-play event log, starting and current lineups for both teams, game status (in progress, final, etc.), current inning and outs, and other real-time game state details.","failureModes":["Invalid or non-existent game_pk returns a 404 or empty response","Game not yet started may return a pre-game state with no play-by-play","Game PK for a non-MLB sport or wrong league returns an error","Network latency on fly.dev may occasionally cause slow responses","Payment failure (402) if USDC balance is insufficient"],"whenToPreferThis":"Use this endpoint when you need real-time, granular game data for a specific MLB game — including live play-by-play, lineup cards, and inning-by-inning scoring. Prefer this over standings or schedule endpoints when the user wants live in-game updates rather than historical stats or upcoming schedules.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T12:48:36.937Z","isFirstParty":false}