Get live game status.
This endpoint allows comparison of game files and shows any differences/discrepancies between the two<br/><br/><b>Diff/Patch System:</b> startTimecode and endTimecode can be used for getting diffs.<br/>Expected usage: <br/> 1) Request full payload by not passing startTimecode or endTimecode. This will return the most recent game state.<br/> 2) Find the latest timecode in this response. <br/> 3) Wait X seconds<br/> 4) Use the timecode from 2 as the startTimecode. This will give you a diff of everything that has happened since startTimecode. <br/> 5) If no data is returned, wait X seconds and do the same request. <br/> 6) If data is returned, get a new timeStamp from the response, and use that for the next call as startTimecode.
Request
- Base URL: https://statsapi.mlb.com
- URL: https://statsapi.mlb.com/api/v1.1/game/{game_pk}/feed/live/diffPatch
- Auth: none declared
Path parameters
Unique Primary Key Representing a Game
Query parameters
Start time code will give you everything since that time. Format: MMDDYYYY_HHMMSS
End time code will give you a snapshot at that specific time. Format: MMDDYYYY_HHMMSS
Response
OK
Changes
No recorded changes to this operation across all 1 revision of this API.