MLB API

API ID 15957

Baseball data: games and live scores, boxscores, pitch-by-pitch play by play, win probability, teams, rosters, player statistics, standings, leaders, draft and news.

API Documentation

Endpoints

Request
Returns the boxscore of each team: team batting, pitching and fielding totals, every player with their position, batting order and game and season statistics, the batters, pitchers, bench and bullpen, the batting and fielding notes, and the game info (umpires, weather, time, attendance).
Endpoint ID: 44465
GET https://zylalabs.com/api/15957/mlb+api/44465/get+mlb+game+boxscore
INPUT PARAMETERS

Get MLB game boxscore — Endpoint Features

Object Description
game_id Required Game id (e.g. "849815"). Use the /game/list endpoint to list valid values.

Free test requests remaining: 3 of 3.


INPUT PARAMETERS

game_id
API EXAMPLE RESPONSE
JSON
{
    "teams": {
        "away": {
            "team": {
                "springLeague": {
                    "id": 114,
                    "name": "Cactus League",
                    "abbreviation": "CL"
                },
                "allStarStatus": "N",
                "id": 114,
                "name": "Cleveland Guardians"
            },
            "teamStats": {
                "batting": {
                    "flyOuts": 10,
                    "groundOuts": 6,
                    "airOuts": 16,
                    "runs": 3,
                    "doubles": 2,
                    "triples": 0,
                    "homeRuns": 0,
                    "strikeOuts": 4,
                    "baseOnBalls": 5,
                    "intentionalWalks": 0,
                    "hits": 7,
                    "hitByPitch": 1,
                    "avg": ".234",
                    "atBats": 33,
                    "obp": ".298",
                    "slg": ".325",
                    "ops": ".623",
                    "caughtStealing": 0,
                    "stolenBases": 0,
                    "stolenBasePercentage": ".---",
                    "groundIntoDoublePlay": 1,
                    "groundIntoTriplePlay": 0,
                    "plateAppearances": 39,
                    "totalBases": 9,
                    "rbi": 3,
                    "leftOnBase": 18,
                    "sacBunts": 0,
                    "sacFlies": 0,
                    "catchersInterference": 0,
                    "pickoffs": 0,
                    "atBatsPerHomeRun": "-.--",
                    "popOuts": 4,
                    "lineOuts": 2
                },
                "pitching": {
                    "flyOuts": 5,
                    "groundOuts": 11,
                    "airOuts": 10,
                    "runs": 7,
                    "doubles": 1,
                    "triples": 0,
                    "homeRuns": 2,
                    "strikeOuts": 3,
                    "baseOnBalls": 6,
                    "intentionalWalks": 0,
                    "hits": 7,
                    "hitByPitch": 2,
                    "atBats": 30,
                    "obp": ".385",
                    "caughtStealing": 0,
                    "stolenBases": 2,
                    "stolenBasePercentage": "1.000",
                    "caughtStealingPercentage": ".000",
                    "numberOfPitches": 124,
                    "era": "3.63",
                    "inningsPitched": "8.0",
                    "saveOpportunities": 0,
                    "earnedRuns": 7,
                    "whip": "1.21",
                    "battersFaced": 39,
                    "outs": 24,
                    "completeGames": 0,
                    "shutouts": 0,
                    "pitchesThrown": 124,
                    "balls": 53,
                    "strikes": 71,
                    "strikePercentage": ".570",
                    "hitBatsmen": 2,
                    "balks": 0,
                    "wildPitches": 0,
                    "pickoffs": 0,
                    "groundOutsToAirouts": "1.10",
                    "rbi": 7,
                    "pitchesPerInning": "15.50",
                    "runsScoredPer9": "7.88",
                    "homeRunsPer9": "2.25",
                    "inheritedRunners": 0,
                    "inheritedRunnersScored": 0,
                    "catchersInterference": 0,
                    "sacBunts": 0,
                    "sacFlies": 1,
                    "passedBall": 0,
                    "popOuts": 2,
                    "lineOuts": 3
                },
                "fielding": {
                    "caughtStealing": 0,
                    "stolenBases": 2,
                    "stolenBasePercentage": "1.000",
                    "caughtStealingPercentage": ".---",
                    "assists": 7,
                    "putOuts": 24,
                    "errors": 0,
                    "chances": 31,
                    "passedBall": 0,
                    "pickoffs": 0
                }
            }
        }
    }
}
Get MLB game boxscore — CODE SNIPPETS

curl --location --request GET 'https://zylalabs.com/api/15957/mlb+api/44465/get+mlb+game+boxscore?game_id=849815' --header 'Authorization: Bearer YOUR_API_KEY' 


    
Request
Returns the plate appearance going on in a live game (or the last one of a game over): batter, pitcher, count, runners, every pitch so far and the hot and cold zones of the batter and pitcher.
Endpoint ID: 44466
GET https://zylalabs.com/api/15957/mlb+api/44466/get+mlb+game+current+play
INPUT PARAMETERS

Get MLB game current play — Endpoint Features

Object Description
game_id Required Game id (e.g. "849815"). Use the /game/list endpoint to list valid values.

Free test requests remaining: 3 of 3.


INPUT PARAMETERS

game_id
API EXAMPLE RESPONSE
JSON
{
    "result": {
        "type": "atBat",
        "event": "Pop Out",
        "eventType": "field_out",
        "description": "Chase DeLauter pops out softly to catcher Liam Hicks in foul territory.",
        "rbi": 0,
        "awayScore": 3,
        "homeScore": 7,
        "isOut": true
    },
    "about": {
        "atBatIndex": 77,
        "halfInning": "top",
        "isTopInning": true,
        "inning": 9,
        "startTime": "2026-10-20T03:02:15.267Z",
        "endTime": "2026-10-20T03:03:39.174Z",
        "isComplete": true,
        "isScoringPlay": false,
        "hasReview": false,
        "hasOut": true,
        "captivatingIndex": 0
    },
    "count": {
        "balls": 0,
        "strikes": 2,
        "outs": 3
    },
    "matchup": {
        "batter": {
            "id": 800050,
            "fullName": "Chase DeLauter",
            "nameSlug": "chase-delauter-800050"
        },
        "batSide": {
            "code": "L",
            "description": "Left"
        },
        "pitcher": {
            "id": 641329,
            "fullName": "Bryan Baker",
            "nameSlug": "bryan-baker-641329"
        },
        "pitchHand": {
            "code": "R",
            "description": "Right"
        },
        "batterHotColdZones": [],
        "pitcherHotColdZones": [],
        "splits": {
            "batter": "vs_RHP",
            "pitcher": "vs_LHB",
            "menOnBase": "Empty"
        }
    },
    "pitchIndex": [
        0,
        1,
        2
    ],
    "actionIndex": [],
    "runnerIndex": [
        0
    ],
    "runners": [
        {
            "movement": {
                "originBase": null,
                "start": null,
                "end": null,
                "outBase": "1B",
                "isOut": true,
                "outNumber": 3
            },
            "details": {
                "event": "Pop Out",
                "eventType": "field_out",
                "movementReason": null,
                "runner": {
                    "id": 800050,
                    "fullName": "Chase DeLauter",
                    "nameSlug": "chase-delauter-800050"
                },
                "responsiblePitcher": null,
                "isScoringEvent": false,
                "rbi": false,
                "earned": false,
                "teamUnearned": false,
                "playIndex": 2
            },
            "credits": [
                {
                    "player": {
                        "id": 689414
                    },
                    "position": {
                        "code": "2",
                        "name": "Catcher",
                        "type": "Catcher",
                        "abbreviation": "C"
                    },
                    "credit": "f_putout"
                }
            ]
        }
    ],
    "playEvents": [
        {
            "details": {
                "call": {
                    "code": "C",
                    "description": "Called Strike"
                },
                "description": "Called Strike",
                "code": "C",
                "ballColor": "rgba(170, 21, 11, 1.0)",
                "trailColor": "rgba(0, 85, 254, 1.0)",
                "isInPlay": false,
                "isStrike": true,
                "isBall": false,
                "type": {
                    "code": "CH",
                    "description": "Changeup"
                },
                "isOut": false,
                "hasReview": false
            },
            "count": {
                "balls": 0,
                "strikes": 1,
                "outs": 2
            },
            "pitchData": {
                "startSpeed": 79.2,
                "endSpeed": 72.9,
                "strikeZoneTop": 3.339,
                "strikeZoneBottom": 1.685,
                "strikeZoneWidth": 17,
                "strikeZoneDepth": 8.5,
                "coordinates": {
                    "aY": 21.154104751131893,
                    "aZ": -25.126737597686223,
                    "pfxX": -9.222351329673671,
                    "pfxZ": 5.221373342189565,
                    "pX": -0.05967200775100452,
                    "pZ": 3.224783576142939,
                    "vX0": 4.6822524941621415,
                    "vY0": -115.34921997758086,
                    "vZ0": -1.9925222359698949,
                    "x": 119.27,
                    "y": 151.71,
                    "x0": -0.916073438510844,
                    "y0": 50.003353744596076,
                    "z0": 6.5189296726770865,
                    "aX": -12.446539232435025
                },
                "breaks": {
                    "breakAngle": 24,
                    "breakLength": 8.4,
                    "breakY": 24,
                    "breakVertical": -34.2,
                    "breakVerticalInduced": 9.2,
                    "breakHorizontal": 15.6,
                    "spinRate": 1644,
                    "spinDirection": 218
                },
                "zone": 2,
                "typeConfidence": 0.91,
                "plateTime": 0.47458668681512783,
                "extension": 6.2009809193839
            },
            "index": 0,
            "playId": "5935a1be-8658-3970-8752-14d151d9ffd0",
            "pitchNumber": 1,
            "startTime": "2026-10-20T03:02:34.242Z",
            "endTime": "2026-10-20T03:02:38.252Z",
            "isPitch": true,
            "type": "pitch"
        }
    ],
    "playEndTime": "2026-10-20T03:03:39.174Z",
    "atBatIndex": 77
}
Get MLB game current play — CODE SNIPPETS

curl --location --request GET 'https://zylalabs.com/api/15957/mlb+api/44466/get+mlb+game+current+play?game_id=849815' --header 'Authorization: Bearer YOUR_API_KEY' 


    
Request
Returns a game with its type, series, date and time, status, teams, venue, weather, attendance and duration, probable pitchers, official scorer, review and challenge counts, the linescore, the winning, losing and saving pitchers and the game leaders.
Endpoint ID: 44467
GET https://zylalabs.com/api/15957/mlb+api/44467/get+mlb+game+details
INPUT PARAMETERS

Get MLB game details — Endpoint Features

Object Description
game_id Required Game id (e.g. "849815"). Use the /game/list endpoint to list valid values.

Free test requests remaining: 3 of 3.


INPUT PARAMETERS

game_id
API EXAMPLE RESPONSE
JSON
{
    "game": {
        "pk": 849815,
        "type": "L",
        "doubleHeader": "N",
        "id": "2026/10/19/clemlb-tbamlb-1",
        "gamedayType": "P",
        "tiebreaker": "N",
        "gameNumber": 1,
        "calendarEventID": "14-849815-2026-10-19",
        "season": "2026",
        "seasonDisplay": "2026"
    },
    "datetime": {
        "dateTime": "2026-10-20T00:08:00Z",
        "originalDate": "2026-10-19",
        "officialDate": "2026-10-19",
        "dayNight": "night",
        "time": "8:08",
        "ampm": "PM"
    },
    "status": {
        "abstractGameState": "Final",
        "codedGameState": "F",
        "detailedState": "Final",
        "statusCode": "F",
        "startTimeTBD": false,
        "abstractGameCode": "F"
    },
    "teams": {
        "away": {
            "springLeague": {
                "id": 114,
                "name": "Cactus League",
                "abbreviation": "CL"
            },
            "allStarStatus": "N",
            "id": 114,
            "name": "Cleveland Guardians",
            "season": 2026,
            "venue": {
                "id": 5,
                "name": "Progressive Field"
            },
            "springVenue": {
                "id": 3834
            },
            "teamCode": "cle",
            "fileCode": "cle",
            "abbreviation": "CLE",
            "teamName": "Guardians",
            "locationName": "Cleveland",
            "firstYearOfPlay": "1901",
            "league": {
                "id": 103,
                "name": "American League"
            },
            "division": {
                "id": 202,
                "name": "American League Central"
            },
            "sport": {
                "id": 1,
                "name": "Major League Baseball"
            },
            "shortName": "Cleveland",
            "record": {
                "gamesPlayed": 6,
                "wildCardGamesBack": "-",
                "leagueGamesBack": "-",
                "springLeagueGamesBack": "-",
                "sportGamesBack": "-",
                "divisionGamesBack": "-",
                "conferenceGamesBack": "-",
                "leagueRecord": {
                    "wins": 2,
                    "losses": 4,
                    "ties": 0,
                    "pct": ".333"
                },
                "records": [],
                "divisionLeader": false,
                "wins": 2,
                "losses": 4,
                "winningPercentage": ".333"
            },
            "franchiseName": "Cleveland",
            "clubName": "Guardians",
            "active": true
        },
        "home": {
            "springLeague": {
                "id": 115,
                "name": "Grapefruit League",
                "abbreviation": "GL"
            },
            "allStarStatus": "N",
            "id": 139,
            "name": "Tampa Bay Rays",
            "season": 2026,
            "venue": {
                "id": 12,
                "name": "Tropicana Field"
            },
            "springVenue": {
                "id": 2534
            },
            "teamCode": "tba",
            "fileCode": "tb",
            "abbreviation": "TB",
            "teamName": "Rays",
            "locationName": "St. Petersburg",
            "firstYearOfPlay": "1996",
            "league": {
                "id": 103,
                "name": "American League"
            },
            "division": {
                "id": 201,
                "name": "American League East"
            },
            "sport": {
                "id": 1,
                "name": "Major League Baseball"
            },
            "shortName": "Tampa Bay",
            "record": {
                "gamesPlayed": 6,
                "wildCardGamesBack": "-",
                "leagueGamesBack": "-",
                "springLeagueGamesBack": "-",
                "sportGamesBack": "-",
                "divisionGamesBack": "-",
                "conferenceGamesBack": "-",
                "leagueRecord": {
                    "wins": 4,
                    "losses": 2,
                    "ties": 0,
                    "pct": ".667"
                },
                "records": [],
                "divisionLeader": false,
                "wins": 4,
                "losses": 2,
                "winningPercentage": ".667"
            },
            "franchiseName": "Tampa Bay",
            "clubName": "Rays",
            "active": true
        }
    },
    "venue": {
        "id": 12,
        "name": "Tropicana Field",
        "location": {
            "address1": "One Tropicana Drive",
            "city": "St. Petersburg",
            "state": "Florida",
            "stateAbbrev": "FL",
            "postalCode": "33705",
            "defaultCoordinates": {
                "latitude": 27.767778,
                "longitude": -82.6525
            },
            "azimuthAngle": 359,
            "elevation": 15,
            "country": "USA",
            "phone": "(727) 825-3137"
        },
        "timeZone": {
            "tz": "EST",
            "id": "America/New_York",
            "offset": -5,
            "offsetAtGameTime": -4
        },
        "fieldInfo": {
            "capacity": 25025,
            "turfType": "Artificial Turf",
            "roofType": "Dome",
            "leftLine": 315,
            "left": 370,
            "leftCenter": 410,
            "center": 404,
            "rightCenter": 404,
            "right": 370,
            "rightLine": 322
        },
        "active": true,
        "season": "2026"
    },
    "officialVenue": {
        "id": 12
    },
    "weather": {
        "condition": "Dome",
        "temp": "72",
        "wind": "0 mph, None"
    },
    "gameInfo": {
        "attendance": 40230,
        "firstPitch": "2026-10-20T00:08:00.000Z",
        "gameDurationMinutes": 175
    },
    "review": {
        "hasChallenges": true,
        "away": {
            "used": 1,
            "remaining": 2
        },
        "home": {
            "used": 0,
            "remaining": 2
        }
    }
}
Get MLB game details — CODE SNIPPETS

curl --location --request GET 'https://zylalabs.com/api/15957/mlb+api/44467/get+mlb+game+details?game_id=849815' --header 'Authorization: Bearer YOUR_API_KEY' 


    
Request
Returns the video highlights of a game, each with its headline, description, date, duration, image, MP4 and HLS links and tags, and the game recap story.
Endpoint ID: 44468
GET https://zylalabs.com/api/15957/mlb+api/44468/get+mlb+game+highlights
INPUT PARAMETERS

Get MLB game highlights — Endpoint Features

Object Description
game_id Required Game id (e.g. "849815"). Use the /game/list endpoint to list valid values.

Free test requests remaining: 3 of 3.


INPUT PARAMETERS

game_id
API EXAMPLE RESPONSE
JSON
{
    "recap": {
        "headline": "Rays finish off Guards to set up World Series clash vs. Crew",
        "subhead": null,
        "blurb": "ST. PETERSBURG -- The Rays are headed to the World Series, champions of the American League after a night this team and these fans will never forget.\nIt was 18 years ago on this exact date -- Oct. 19, 2008 -- when the Rays punched their ticket to their first",
        "date": "2026-10-20T05:23:00Z",
        "url": "https://www.mlb.com/news/rays-win-alcs-2026",
        "slug": "rays-win-alcs-2026"
    },
    "videos": [
        {
            "id": "69931119-17a357d3-9c870837-csvm-diamondgcp-asset",
            "slug": "guardians-vs-rays-game-6-highlights",
            "url": "https://www.mlb.com/video/guardians-vs-rays-game-6-highlights",
            "headline": "Guardians vs. Rays Game 6 Highlights",
            "description": "Junior Caminero and Yandy Díaz homer, and Freddy Peralta allows one run over 5 1/3 innings to help the Rays win Game 6 and advance to the World Series",
            "date": "2026-10-20T05:04:11.239Z",
            "duration": "00:02:54",
            "image": "https://img.mlbstatic.com/mlb-images/image/upload/w_1920,h_1080,f_jpg,c_fill,g_auto/mlb/mvjllui1gaza2delu2nu.jpg",
            "mp4": "https://mlb-cuts-diamond.mlb.com/FORGE/2026/2026-10/19/69931119-17a357d3-9c870837-csvm-diamondgcp-asset_1280x720_59_4000K.mp4",
            "hls": "https://mlb-cuts-diamond.mlb.com/FORGE/2026/2026-10/19/69931119-17a357d3-9c870837-csvm-diamondgcp-asset.m3u8",
            "tags": [
                "Game Recap",
                "MLBCOM_GAME_RECAP"
            ]
        },
        {
            "id": "9b5c54dc-82e37c30-e3315b39-csvm-diamondgcp-asset",
            "slug": "condensed-game-cle-tb-game-6",
            "url": "https://www.mlb.com/video/condensed-game-cle-tb-game-6",
            "headline": "Condensed Game: CLE@TB - Game 6",
            "description": "Condensed Game: Nathaniel Lowe and the Guardians take on Junior Caminero and the Rays in Game 6 of the ALCS",
            "date": "2026-10-20T04:25:10.811Z",
            "duration": "00:21:17",
            "image": "https://img.mlbstatic.com/mlb-images/image/upload/w_1920,h_1080,f_jpg,c_fill,g_auto/mlb/bfgmqyobqtnw4heeh8e6.jpg",
            "mp4": "https://mlb-cuts-diamond.mlb.com/FORGE/2026/2026-10/19/9b5c54dc-82e37c30-e3315b39-csvm-diamondgcp-asset_1280x720_59_4000K.mp4",
            "hls": "https://mlb-cuts-diamond.mlb.com/FORGE/2026/2026-10/19/9b5c54dc-82e37c30-e3315b39-csvm-diamondgcp-asset.m3u8",
            "tags": [
                "Condensed Game",
                "MLBCOM_CONDENSED_GAME"
            ]
        },
        {
            "id": "e3679ce2-cf65945d-5b4baa44-csvm-diamondgcp-asset",
            "slug": "rays-advance-to-the-world-series",
            "url": "https://www.mlb.com/video/rays-advance-to-the-world-series",
            "headline": "Rays advance to the 2026 World Series!",
            "description": "Bryan Baker secures the Rays' 7-3 win over the Guardians as Tampa Bay clinches the 2026 AL pennant and advances to the World Series",
            "date": "2026-10-20T03:05:36.043Z",
            "duration": "00:00:45",
            "image": "https://img.mlbstatic.com/mlb-images/image/upload/w_1920,h_1080,f_jpg,c_fill,g_auto/mlb/mmgzpzp3uqi5apzukjxz.jpg",
            "mp4": "https://mlb-cuts-diamond.mlb.com/FORGE/2026/2026-10/19/e3679ce2-cf65945d-5b4baa44-csvm-diamondgcp-asset_1280x720_59_4000K.mp4",
            "hls": "https://mlb-cuts-diamond.mlb.com/FORGE/2026/2026-10/19/e3679ce2-cf65945d-5b4baa44-csvm-diamondgcp-asset.m3u8",
            "tags": []
        },
        {
            "id": "96da69e6-814dd836-d0329b44-csvm-diamondgcp-asset",
            "slug": "junior-caminero-homers-1-on-a-fly-ball-to-left-field-liam-hicks-scores",
            "url": "https://www.mlb.com/video/junior-caminero-homers-1-on-a-fly-ball-to-left-field-liam-hicks-scores",
            "headline": "Junior Caminero's two-run homer",
            "description": "Junior Caminero lifts a two-run home run to left field, extending the Rays' lead to 5-1 in the 7th",
            "date": "2026-10-20T02:22:32.034Z",
            "duration": "00:00:32",
            "image": "https://img.mlbstatic.com/mlb-images/image/upload/w_1920,h_1080,f_jpg,c_fill,g_auto/mlb/szs8wtkdtckfpmytl6f1.jpg",
            "mp4": "https://mlb-cuts-diamond.mlb.com/FORGE/2026/2026-10/19/96da69e6-814dd836-d0329b44-csvm-diamondgcp-asset_1280x720_59_4000K.mp4",
            "hls": "https://mlb-cuts-diamond.mlb.com/FORGE/2026/2026-10/19/96da69e6-814dd836-d0329b44-csvm-diamondgcp-asset.m3u8",
            "tags": []
        },
        {
            "id": "6f9a4f14-cadfbb84-9aa68c27-csvm-diamondgcp-asset",
            "slug": "yandy-diaz-homers-2-on-a-fly-ball-to-left-field-taylor-walls-scores",
            "url": "https://www.mlb.com/video/yandy-diaz-homers-2-on-a-fly-ball-to-left-field-taylor-walls-scores",
            "headline": "Yandy Díaz's two-run homer",
            "description": "Yandy Díaz launches a two-run home run in the bottom of the 8th inning to extend the Rays' lead to 7-3 over the Guardians",
            "date": "2026-10-20T02:55:10.106Z",
            "duration": "00:00:30",
            "image": "https://img.mlbstatic.com/mlb-images/image/upload/w_1920,h_1080,f_jpg,c_fill,g_auto/mlb/f5dqdlhu0vxfylkcev0m.jpg",
            "mp4": "https://mlb-cuts-diamond.mlb.com/FORGE/2026/2026-10/19/6f9a4f14-cadfbb84-9aa68c27-csvm-diamondgcp-asset_1280x720_59_4000K.mp4",
            "hls": "https://mlb-cuts-diamond.mlb.com/FORGE/2026/2026-10/19/6f9a4f14-cadfbb84-9aa68c27-csvm-diamondgcp-asset.m3u8",
            "tags": []
        }
    ]
}
Get MLB game highlights — CODE SNIPPETS

curl --location --request GET 'https://zylalabs.com/api/15957/mlb+api/44468/get+mlb+game+highlights?game_id=849815' --header 'Authorization: Bearer YOUR_API_KEY' 


    
Request
Returns the runs, hits, errors and runners left on base of each team, inning by inning and in total, with the current inning, count, outs, batter, pitcher and runners on base.
Endpoint ID: 44469
GET https://zylalabs.com/api/15957/mlb+api/44469/get+mlb+game+linescore
INPUT PARAMETERS

Get MLB game linescore — Endpoint Features

Object Description
game_id Required Game id (e.g. "849815"). Use the /game/list endpoint to list valid values.

Free test requests remaining: 3 of 3.


INPUT PARAMETERS

game_id
API EXAMPLE RESPONSE
JSON
{
    "currentInning": 9,
    "currentInningOrdinal": "9th",
    "inningState": "Top",
    "inningHalf": "Top",
    "isTopInning": true,
    "scheduledInnings": 9,
    "innings": [
        {
            "num": 1,
            "ordinalNum": "1st",
            "home": {
                "runs": 0,
                "hits": 0,
                "errors": 0,
                "leftOnBase": 0
            },
            "away": {
                "runs": 0,
                "hits": 1,
                "errors": 0,
                "leftOnBase": 1
            }
        },
        {
            "num": 2,
            "ordinalNum": "2nd",
            "home": {
                "runs": 2,
                "hits": 2,
                "errors": 0,
                "leftOnBase": 3
            },
            "away": {
                "runs": 0,
                "hits": 0,
                "errors": 0,
                "leftOnBase": 0
            }
        },
        {
            "num": 3,
            "ordinalNum": "3rd",
            "home": {
                "runs": 1,
                "hits": 2,
                "errors": 0,
                "leftOnBase": 2
            },
            "away": {
                "runs": 0,
                "hits": 1,
                "errors": 0,
                "leftOnBase": 2
            }
        },
        {
            "num": 4,
            "ordinalNum": "4th",
            "home": {
                "runs": 0,
                "hits": 0,
                "errors": 0,
                "leftOnBase": 2
            },
            "away": {
                "runs": 0,
                "hits": 1,
                "errors": 0,
                "leftOnBase": 1
            }
        },
        {
            "num": 5,
            "ordinalNum": "5th",
            "home": {
                "runs": 0,
                "hits": 0,
                "errors": 0,
                "leftOnBase": 0
            },
            "away": {
                "runs": 0,
                "hits": 0,
                "errors": 0,
                "leftOnBase": 1
            }
        },
        {
            "num": 6,
            "ordinalNum": "6th",
            "home": {
                "runs": 0,
                "hits": 1,
                "errors": 0,
                "leftOnBase": 1
            },
            "away": {
                "runs": 1,
                "hits": 2,
                "errors": 0,
                "leftOnBase": 1
            }
        },
        {
            "num": 7,
            "ordinalNum": "7th",
            "home": {
                "runs": 2,
                "hits": 1,
                "errors": 0,
                "leftOnBase": 0
            },
            "away": {
                "runs": 0,
                "hits": 0,
                "errors": 0,
                "leftOnBase": 0
            }
        },
        {
            "num": 8,
            "ordinalNum": "8th",
            "home": {
                "runs": 2,
                "hits": 1,
                "errors": 0,
                "leftOnBase": 0
            },
            "away": {
                "runs": 2,
                "hits": 2,
                "errors": 0,
                "leftOnBase": 3
            }
        },
        {
            "num": 9,
            "ordinalNum": "9th",
            "home": {
                "hits": 0,
                "errors": 0,
                "leftOnBase": 0
            },
            "away": {
                "runs": 0,
                "hits": 0,
                "errors": 0,
                "leftOnBase": 0
            }
        }
    ],
    "teams": {
        "home": {
            "runs": 7,
            "hits": 7,
            "errors": 0,
            "leftOnBase": 8
        },
        "away": {
            "runs": 3,
            "hits": 7,
            "errors": 0,
            "leftOnBase": 9
        }
    },
    "defense": {
        "pitcher": {
            "id": 641329,
            "fullName": "Bryan Baker",
            "nameSlug": "bryan-baker-641329"
        },
        "catcher": {
            "id": 689414,
            "fullName": "Liam Hicks",
            "nameSlug": "liam-hicks-689414"
        },
        "first": {
            "id": 666018,
            "fullName": "Jonathan Aranda",
            "nameSlug": "jonathan-aranda-666018"
        },
        "second": {
            "id": 680700,
            "fullName": "Richie Palacios",
            "nameSlug": "richie-palacios-680700"
        },
        "third": {
            "id": 691406,
            "fullName": "Junior Caminero",
            "nameSlug": "junior-caminero-691406"
        },
        "shortstop": {
            "id": 670764,
            "fullName": "Taylor Walls",
            "nameSlug": "taylor-walls-670764"
        },
        "left": {
            "id": 802415,
            "fullName": "Chandler Simpson",
            "nameSlug": "chandler-simpson-802415"
        },
        "center": {
            "id": 676356,
            "fullName": "Jonny DeLuca",
            "nameSlug": "jonny-deluca-676356"
        },
        "right": {
            "id": 683748,
            "fullName": "Victor Mesa Jr.",
            "nameSlug": "victor-mesa-jr-683748"
        },
        "batter": {
            "id": 691406,
            "fullName": "Junior Caminero",
            "nameSlug": "junior-caminero-691406"
        },
        "onDeck": {
            "id": 802415,
            "fullName": "Chandler Simpson",
            "nameSlug": "chandler-simpson-802415"
        },
        "inHole": {
            "id": 683748,
            "fullName": "Victor Mesa Jr.",
            "nameSlug": "victor-mesa-jr-683748"
        },
        "battingOrder": 4,
        "team": {
            "id": 139,
            "name": "Tampa Bay Rays"
        }
    },
    "offense": {
        "batter": {
            "id": 800050,
            "fullName": "Chase DeLauter",
            "nameSlug": "chase-delauter-800050"
        },
        "onDeck": {
            "id": 666176,
            "fullName": "Jo Adell",
            "nameSlug": "jo-adell-666176"
        },
        "inHole": {
            "id": 663993,
            "fullName": "Nathaniel Lowe",
            "nameSlug": "nathaniel-lowe-663993"
        },
        "pitcher": {
            "id": 683769,
            "fullName": "Hunter Gaddis",
            "nameSlug": "hunter-gaddis-683769"
        },
        "battingOrder": 3,
        "team": {
            "id": 114,
            "name": "Cleveland Guardians"
        }
    },
    "balls": 0,
    "strikes": 2,
    "outs": 3
}
Get MLB game linescore — CODE SNIPPETS

curl --location --request GET 'https://zylalabs.com/api/15957/mlb+api/44469/get+mlb+game+linescore?game_id=849815' --header 'Authorization: Bearer YOUR_API_KEY' 


    
Request
Returns the games of a day with their status, teams and records, score, linescore with the inning, count and runners on base, probable pitchers, winning, losing and saving pitchers, venue, TV and radio broadcasts and the series status.
Endpoint ID: 44470
GET https://zylalabs.com/api/15957/mlb+api/44470/get+mlb+games+by+date
INPUT PARAMETERS

Get MLB games by date — Endpoint Features

Object Description
date Optional Optional date in the YYYY-MM-DD format, US Eastern time (e.g. "2026-09-15"; defaults to today).
sport Optional Optional sport: "mlb", "aaa", "aa", "high_a", "single_a", "rookie" or "winter" (defaults to "mlb"). Use the /general/sports endpoint to list valid values.
team_id Optional Optional team id, for the games of one team only (e.g. "147"). Use the /team/list endpoint to list valid values.
game_type Optional Optional game type (e.g. "regular_season"; every type when left out). Use the /general/game-types endpoint to list valid values.

Free test requests remaining: 3 of 3.


INPUT PARAMETERS

date
sport
team_id
game_type
API EXAMPLE RESPONSE
JSON
{
    "date": "2026-09-15"
}
Get MLB games by date — CODE SNIPPETS

curl --location --request GET 'https://zylalabs.com/api/15957/mlb+api/44470/get+mlb+games+by+date?date=2026-09-15&sport=mlb&team_id=147&game_type=regular_season' --header 'Authorization: Bearer YOUR_API_KEY' 


    
Request
Returns the games in progress right now, with what the /game/list endpoint gives for each.
Endpoint ID: 44471
GET https://zylalabs.com/api/15957/mlb+api/44471/get+mlb+live+games
INPUT PARAMETERS

Get MLB live games — Endpoint Features

Object Description
sport Optional Optional sport: "mlb", "aaa", "aa", "high_a", "single_a", "rookie" or "winter" (defaults to "mlb"). Use the /general/sports endpoint to list valid values.

Free test requests remaining: 3 of 3.


INPUT PARAMETERS

sport
API EXAMPLE RESPONSE
JSON
[]
Get MLB live games — CODE SNIPPETS

curl --location --request GET 'https://zylalabs.com/api/15957/mlb+api/44471/get+mlb+live+games?sport=mlb' --header 'Authorization: Bearer YOUR_API_KEY' 


    
Request
Returns every plate appearance of a game in order: the result and its description, score, inning, count, batter and pitcher, runners and their movement, fielding credits, and every pitch with its type, speed, spin, break, location and call, and for balls in play the launch speed, angle, distance and trajectory.
Endpoint ID: 44472
GET https://zylalabs.com/api/15957/mlb+api/44472/get+mlb+game+play+by+play
INPUT PARAMETERS

Get MLB game play by play — Endpoint Features

Object Description
game_id Required Game id (e.g. "849815"). Use the /game/list endpoint to list valid values.
inning Optional Optional inning number, for the plays of one inning only (e.g. "9").

Free test requests remaining: 3 of 3.


INPUT PARAMETERS

game_id
inning
API EXAMPLE RESPONSE
JSON
[
    {
        "result": {
            "type": "atBat",
            "event": "Groundout",
            "eventType": "field_out",
            "description": "Steven Kwan grounds out, first baseman Jonathan Aranda to pitcher Bryan Baker.",
            "rbi": 0,
            "awayScore": 3,
            "homeScore": 7,
            "isOut": true
        },
        "about": {
            "atBatIndex": 75,
            "halfInning": "top",
            "isTopInning": true,
            "inning": 9,
            "startTime": "2026-10-20T03:00:12.646Z",
            "endTime": "2026-10-20T03:00:39.626Z",
            "isComplete": true,
            "isScoringPlay": false,
            "hasReview": false,
            "hasOut": true,
            "captivatingIndex": 0
        },
        "count": {
            "balls": 0,
            "strikes": 1,
            "outs": 1
        },
        "matchup": {
            "batter": {
                "id": 680757,
                "fullName": "Steven Kwan",
                "nameSlug": "steven-kwan-680757"
            },
            "batSide": {
                "code": "L",
                "description": "Left"
            },
            "pitcher": {
                "id": 641329,
                "fullName": "Bryan Baker",
                "nameSlug": "bryan-baker-641329"
            },
            "pitchHand": {
                "code": "R",
                "description": "Right"
            },
            "batterHotColdZones": [],
            "pitcherHotColdZones": [],
            "splits": {
                "batter": "vs_RHP",
                "pitcher": "vs_LHB",
                "menOnBase": "Empty"
            }
        },
        "pitchIndex": [
            1,
            2
        ],
        "actionIndex": [
            0
        ],
        "runnerIndex": [
            0
        ],
        "runners": [
            {
                "movement": {
                    "originBase": null,
                    "start": null,
                    "end": null,
                    "outBase": "1B",
                    "isOut": true,
                    "outNumber": 1
                },
                "details": {
                    "event": "Groundout",
                    "eventType": "field_out",
                    "movementReason": null,
                    "runner": {
                        "id": 680757,
                        "fullName": "Steven Kwan",
                        "nameSlug": "steven-kwan-680757"
                    },
                    "responsiblePitcher": null,
                    "isScoringEvent": false,
                    "rbi": false,
                    "earned": false,
                    "teamUnearned": false,
                    "playIndex": 2
                },
                "credits": [
                    {
                        "player": {
                            "id": 666018
                        },
                        "position": {
                            "code": "3",
                            "name": "First Base",
                            "type": "Infielder",
                            "abbreviation": "1B"
                        },
                        "credit": "f_assist"
                    },
                    {
                        "player": {
                            "id": 641329
                        },
                        "position": {
                            "code": "1",
                            "name": "Pitcher",
                            "type": "Pitcher",
                            "abbreviation": "P"
                        },
                        "credit": "f_putout"
                    }
                ]
            }
        ],
        "playEvents": [
            {
                "details": {
                    "description": "Pitching Change: Bryan Baker replaces Kevin Kelly.",
                    "event": "Pitching Substitution",
                    "eventType": "pitching_substitution",
                    "awayScore": 3,
                    "homeScore": 7,
                    "isScoringPlay": false,
                    "isOut": false,
                    "hasReview": false
                },
                "count": {
                    "balls": 0,
                    "strikes": 0,
                    "outs": 0
                },
                "index": 0,
                "startTime": "2026-10-20T02:57:25.802Z",
                "endTime": "2026-10-20T03:00:14.728Z",
                "isPitch": false,
                "isSubstitution": true,
                "type": "action",
                "player": {
                    "id": 641329
                },
                "position": {
                    "code": "1",
                    "name": "Pitcher",
                    "type": "Pitcher",
                    "abbreviation": "P"
                }
            }
        ],
        "playEndTime": "2026-10-20T03:00:39.626Z",
        "atBatIndex": 75
    }
]
Get MLB game play by play — CODE SNIPPETS

curl --location --request GET 'https://zylalabs.com/api/15957/mlb+api/44472/get+mlb+game+play+by+play?game_id=849815&inning=9' --header 'Authorization: Bearer YOUR_API_KEY' 


    
Request
Returns everyone on the two rosters of a game with their bio: name, number, birth date and place, height, weight, position, bats and throws, debut and strike zone.
Endpoint ID: 44473
GET https://zylalabs.com/api/15957/mlb+api/44473/get+mlb+game+players
INPUT PARAMETERS

Get MLB game players — Endpoint Features

Object Description
game_id Required Game id (e.g. "849815"). Use the /game/list endpoint to list valid values.

Free test requests remaining: 3 of 3.


INPUT PARAMETERS

game_id
API EXAMPLE RESPONSE
JSON
[
    {
        "id": 670764,
        "fullName": "Taylor Walls",
        "firstName": "Taylor",
        "lastName": "Walls",
        "primaryNumber": "6",
        "birthDate": "1996-07-10",
        "currentAge": 30,
        "birthCity": "Cordele",
        "birthStateProvince": "GA",
        "birthCountry": "USA",
        "height": "5' 9\"",
        "weight": 185,
        "active": true,
        "primaryPosition": {
            "code": "6",
            "name": "Shortstop",
            "type": "Infielder",
            "abbreviation": "SS"
        },
        "useName": "Taylor",
        "useLastName": "Walls",
        "boxscoreName": "Walls",
        "gender": "M",
        "isPlayer": true,
        "isVerified": true,
        "draftYear": 2017,
        "mlbDebutDate": "2021-05-22",
        "batSide": {
            "code": "S",
            "description": "Switch"
        },
        "pitchHand": {
            "code": "R",
            "description": "Right"
        },
        "nameFirstLast": "Taylor Walls",
        "nameSlug": "taylor-walls-670764",
        "firstLastName": "Taylor Walls",
        "lastFirstName": "Walls, Taylor",
        "lastInitName": "Walls, T",
        "initLastName": "T Walls",
        "fullFMLName": "Taylor Walls",
        "fullLFMName": "Walls, Taylor",
        "strikeZoneTop": 3.056,
        "strikeZoneBottom": 1.542
    },
    {
        "id": 542888,
        "fullName": "Shawn Armstrong",
        "firstName": "Shawn",
        "lastName": "Armstrong",
        "primaryNumber": "43",
        "birthDate": "1990-09-11",
        "currentAge": 36,
        "birthCity": "New Bern",
        "birthStateProvince": "NC",
        "birthCountry": "USA",
        "height": "6' 2\"",
        "weight": 225,
        "active": true,
        "primaryPosition": {
            "code": "1",
            "name": "Pitcher",
            "type": "Pitcher",
            "abbreviation": "P"
        },
        "useName": "Shawn",
        "useLastName": "Armstrong",
        "middleName": "Michael",
        "boxscoreName": "Armstrong",
        "nickName": "Armie",
        "gender": "M",
        "isPlayer": true,
        "isVerified": true,
        "draftYear": 2011,
        "mlbDebutDate": "2015-08-08",
        "batSide": {
            "code": "R",
            "description": "Right"
        },
        "pitchHand": {
            "code": "R",
            "description": "Right"
        },
        "nameFirstLast": "Shawn Armstrong",
        "nameSlug": "shawn-armstrong-542888",
        "firstLastName": "Shawn Armstrong",
        "lastFirstName": "Armstrong, Shawn",
        "lastInitName": "Armstrong, S",
        "initLastName": "S Armstrong",
        "fullFMLName": "Shawn Michael Armstrong",
        "fullLFMName": "Armstrong, Shawn Michael",
        "strikeZoneTop": 3.299,
        "strikeZoneBottom": 1.665
    },
    {
        "id": 669330,
        "fullName": "Tyler Wells",
        "firstName": "Tyler",
        "lastName": "Wells",
        "primaryNumber": "68",
        "birthDate": "1994-08-26",
        "currentAge": 32,
        "birthCity": "Tulsa",
        "birthStateProvince": "OK",
        "birthCountry": "USA",
        "height": "6' 8\"",
        "weight": 270,
        "active": true,
        "primaryPosition": {
            "code": "1",
            "name": "Pitcher",
            "type": "Pitcher",
            "abbreviation": "P"
        },
        "useName": "Tyler",
        "useLastName": "Wells",
        "middleName": "Austin",
        "boxscoreName": "Wells, T",
        "gender": "M",
        "isPlayer": true,
        "isVerified": false,
        "draftYear": 2016,
        "mlbDebutDate": "2021-04-04",
        "batSide": {
            "code": "R",
            "description": "Right"
        },
        "pitchHand": {
            "code": "R",
            "description": "Right"
        },
        "nameFirstLast": "Tyler Wells",
        "nameSlug": "tyler-wells-669330",
        "firstLastName": "Tyler Wells",
        "lastFirstName": "Wells, Tyler",
        "lastInitName": "Wells, T",
        "initLastName": "T Wells",
        "fullFMLName": "Tyler Austin Wells",
        "fullLFMName": "Wells, Tyler Austin",
        "strikeZoneTop": 3.567,
        "strikeZoneBottom": 1.8
    },
    {
        "id": 571927,
        "fullName": "Steven Matz",
        "firstName": "Steven",
        "lastName": "Matz",
        "primaryNumber": "32",
        "birthDate": "1991-05-29",
        "currentAge": 35,
        "birthCity": "Stony Brook",
        "birthStateProvince": "NY",
        "birthCountry": "USA",
        "height": "6' 2\"",
        "weight": 205,
        "active": true,
        "primaryPosition": {
            "code": "1",
            "name": "Pitcher",
            "type": "Pitcher",
            "abbreviation": "P"
        },
        "useName": "Steven",
        "useLastName": "Matz",
        "middleName": "Jakob",
        "boxscoreName": "Matz",
        "nickName": "Matzy",
        "gender": "M",
        "isPlayer": true,
        "isVerified": true,
        "draftYear": 2009,
        "pronunciation": "Mats",
        "mlbDebutDate": "2015-06-28",
        "batSide": {
            "code": "R",
            "description": "Right"
        },
        "pitchHand": {
            "code": "L",
            "description": "Left"
        },
        "nameFirstLast": "Steven Matz",
        "nameSlug": "steven-matz-571927",
        "firstLastName": "Steven Matz",
        "lastFirstName": "Matz, Steven",
        "lastInitName": "Matz, S",
        "initLastName": "S Matz",
        "fullFMLName": "Steven Jakob Matz",
        "fullLFMName": "Matz, Steven Jakob",
        "strikeZoneTop": 3.299,
        "strikeZoneBottom": 1.665
    },
    {
        "id": 622761,
        "fullName": "Jorge Mateo",
        "firstName": "Jorge",
        "lastName": "Mateo",
        "primaryNumber": "3",
        "birthDate": "1995-06-23",
        "currentAge": 31,
        "birthCity": "Santo Domingo Oeste",
        "birthCountry": "Dominican Republic",
        "height": "6' 0\"",
        "weight": 200,
        "active": true,
        "primaryPosition": {
            "code": "6",
            "name": "Shortstop",
            "type": "Infielder",
            "abbreviation": "SS"
        },
        "useName": "Jorge",
        "useLastName": "Mateo",
        "middleName": "Luis",
        "boxscoreName": "Mateo",
        "gender": "M",
        "isPlayer": true,
        "isVerified": false,
        "pronunciation": "mah-TAY-oh",
        "mlbDebutDate": "2020-08-13",
        "batSide": {
            "code": "R",
            "description": "Right"
        },
        "pitchHand": {
            "code": "R",
            "description": "Right"
        },
        "nameFirstLast": "Jorge Mateo",
        "nameSlug": "jorge-mateo-622761",
        "firstLastName": "Jorge Mateo",
        "lastFirstName": "Mateo, Jorge",
        "lastInitName": "Mateo, J",
        "initLastName": "J Mateo",
        "fullFMLName": "Jorge Luis Mateo",
        "fullLFMName": "Mateo, Jorge Luis",
        "strikeZoneTop": 3.2,
        "strikeZoneBottom": 1.61
    },
    {
        "id": 668723,
        "fullName": "Ryan Vilade",
        "firstName": "Ryan",
        "lastName": "Vilade",
        "primaryNumber": "26",
        "birthDate": "1999-02-18",
        "currentAge": 27,
        "birthCity": "Grapevine",
        "birthStateProvince": "TX",
        "birthCountry": "USA",
        "height": "6' 1\"",
        "weight": 226,
        "active": true,
        "primaryPosition": {
            "code": "9",
            "name": "Outfielder",
            "type": "Outfielder",
            "abbreviation": "RF"
        },
        "useName": "Ryan",
        "useLastName": "Vilade",
        "middleName": "James",
        "boxscoreName": "Vilade",
        "gender": "M",
        "isPlayer": true,
        "isVerified": false,
        "draftYear": 2017,
        "pronunciation": "vill-AID",
        "mlbDebutDate": "2021-09-18",
        "batSide": {
            "code": "R",
            "description": "Right"
        },
        "pitchHand": {
            "code": "R",
            "description": "Right"
        },
        "nameFirstLast": "Ryan Vilade",
        "nameSlug": "ryan-vilade-668723",
        "firstLastName": "Ryan Vilade",
        "lastFirstName": "Vilade, Ryan",
        "lastInitName": "Vilade, R",
        "initLastName": "R Vilade",
        "fullFMLName": "Ryan James Vilade",
        "fullLFMName": "Vilade, Ryan James",
        "strikeZoneTop": 3.28,
        "strikeZoneBottom": 1.65
    }
]
Get MLB game players — CODE SNIPPETS

curl --location --request GET 'https://zylalabs.com/api/15957/mlb+api/44473/get+mlb+game+players?game_id=849815' --header 'Authorization: Bearer YOUR_API_KEY' 


    
Request
Returns the plays of a game that scored a run, with what the /game/play-by-play endpoint gives for each.
Endpoint ID: 44474
GET https://zylalabs.com/api/15957/mlb+api/44474/get+mlb+game+scoring+plays
INPUT PARAMETERS

Get MLB game scoring plays — Endpoint Features

Object Description
game_id Required Game id (e.g. "849815"). Use the /game/list endpoint to list valid values.

Free test requests remaining: 3 of 3.


INPUT PARAMETERS

game_id
API EXAMPLE RESPONSE
JSON
[
    {
        "result": {
            "type": "atBat",
            "event": "Double",
            "eventType": "double",
            "description": "Richie Palacios doubles (3) on a fly ball to right fielder Chase DeLauter. Chandler Simpson scores. Victor Mesa Jr. scores.",
            "rbi": 2,
            "awayScore": 0,
            "homeScore": 2,
            "isOut": false
        },
        "about": {
            "atBatIndex": 14,
            "halfInning": "bottom",
            "isTopInning": false,
            "inning": 2,
            "startTime": "2026-10-20T00:41:49.421Z",
            "endTime": "2026-10-20T00:44:52.353Z",
            "isComplete": true,
            "isScoringPlay": true,
            "hasReview": false,
            "hasOut": false,
            "captivatingIndex": 71
        },
        "count": {
            "balls": 1,
            "strikes": 2,
            "outs": 2
        },
        "matchup": {
            "batter": {
                "id": 680700,
                "fullName": "Richie Palacios",
                "nameSlug": "richie-palacios-680700"
            },
            "batSide": {
                "code": "L",
                "description": "Left"
            },
            "pitcher": {
                "id": 682120,
                "fullName": "Tim Herrin",
                "nameSlug": "tim-herrin-682120"
            },
            "pitchHand": {
                "code": "L",
                "description": "Left"
            },
            "postOnSecond": {
                "id": 680700,
                "fullName": "Richie Palacios",
                "nameSlug": "richie-palacios-680700"
            },
            "batterHotColdZones": [],
            "pitcherHotColdZones": [],
            "splits": {
                "batter": "vs_LHP",
                "pitcher": "vs_LHB",
                "menOnBase": "RISP"
            }
        },
        "pitchIndex": [
            0,
            1,
            3,
            4,
            5,
            6,
            7
        ],
        "actionIndex": [
            2
        ],
        "runnerIndex": [
            0,
            1,
            2,
            3,
            4
        ],
        "runners": [
            {
                "movement": {
                    "originBase": "1B",
                    "start": "1B",
                    "end": "2B",
                    "outBase": null,
                    "isOut": false,
                    "outNumber": null
                },
                "details": {
                    "event": "Stolen Base 2B",
                    "eventType": "stolen_base_2b",
                    "movementReason": "r_stolen_base_2b",
                    "runner": {
                        "id": 683748,
                        "fullName": "Victor Mesa Jr.",
                        "nameSlug": "victor-mesa-jr-683748"
                    },
                    "responsiblePitcher": null,
                    "isScoringEvent": false,
                    "rbi": false,
                    "earned": false,
                    "teamUnearned": false,
                    "playIndex": 2
                },
                "credits": []
            },
            {
                "movement": {
                    "originBase": null,
                    "start": null,
                    "end": "2B",
                    "outBase": null,
                    "isOut": false,
                    "outNumber": null
                },
                "details": {
                    "event": "Double",
                    "eventType": "double",
                    "movementReason": null,
                    "runner": {
                        "id": 680700,
                        "fullName": "Richie Palacios",
                        "nameSlug": "richie-palacios-680700"
                    },
                    "responsiblePitcher": null,
                    "isScoringEvent": false,
                    "rbi": false,
                    "earned": false,
                    "teamUnearned": false,
                    "playIndex": 7
                },
                "credits": [
                    {
                        "player": {
                            "id": 800050
                        },
                        "position": {
                            "code": "9",
                            "name": "Outfielder",
                            "type": "Outfielder",
                            "abbreviation": "RF"
                        },
                        "credit": "f_fielded_ball"
                    }
                ]
            }
        ],
        "playEvents": [
            {
                "details": {
                    "call": {
                        "code": "C",
                        "description": "Called Strike"
                    },
                    "description": "Called Strike",
                    "code": "C",
                    "ballColor": "rgba(170, 21, 11, 1.0)",
                    "trailColor": "rgba(50, 0, 221, 1.0)",
                    "isInPlay": false,
                    "isStrike": true,
                    "isBall": false,
                    "type": {
                        "code": "SI",
                        "description": "Sinker"
                    },
                    "isOut": false,
                    "hasReview": false
                },
                "count": {
                    "balls": 0,
                    "strikes": 1,
                    "outs": 2
                },
                "pitchData": {
                    "startSpeed": 92.9,
                    "endSpeed": 83.6,
                    "strikeZoneTop": 3.04,
                    "strikeZoneBottom": 1.534,
                    "strikeZoneWidth": 17,
                    "strikeZoneDepth": 8.5,
                    "coordinates": {
                        "aY": 34.121471670416554,
                        "aZ": -21.87960988852847,
                        "pfxX": 11.370426013530588,
                        "pfxZ": 5.678506178507723,
                        "pX": -0.17109552615336734,
                        "pZ": 2.4706131408424836,
                        "vX0": -8.089706927335753,
                        "vY0": -134.95416026932435,
                        "vZ0": -4.163831076986757,
                        "x": 123.52,
                        "y": 172.07,
                        "x0": 1.4146241367318784,
                        "y0": 50.00257446334647,
                        "z0": 5.608725007302935,
                        "aX": 20.6092696630227
                    },
                    "breaks": {
                        "breakAngle": 39.6,
                        "breakLength": 7.2,
                        "breakY": 24,
                        "breakVertical": -22.8,
                        "breakVerticalInduced": 9.4,
                        "breakHorizontal": -18.5,
                        "spinRate": 2160,
                        "spinDirection": 132
                    },
                    "zone": 5,
                    "typeConfidence": 0.9,
                    "plateTime": 0.4085979818374095,
                    "extension": 6.376597401756617
                },
                "index": 0,
                "playId": "ee095448-5e94-3fc4-8167-3c6d2ca26d01",
                "pitchNumber": 1,
                "startTime": "2026-10-20T00:42:14.613Z",
                "endTime": "2026-10-20T00:42:18.657Z",
                "isPitch": true,
                "type": "pitch"
            }
        ],
        "playEndTime": "2026-10-20T00:44:52.353Z",
        "atBatIndex": 14
    }
]
Get MLB game scoring plays — CODE SNIPPETS

curl --location --request GET 'https://zylalabs.com/api/15957/mlb+api/44474/get+mlb+game+scoring+plays?game_id=849815' --header 'Authorization: Bearer YOUR_API_KEY' 


    
Request
Returns the win probability of each team after every plate appearance, with the probability it added, the leverage index, the inning, the event, its description, the score, the batter and the pitcher.
Endpoint ID: 44475
GET https://zylalabs.com/api/15957/mlb+api/44475/get+mlb+game+win+probability
INPUT PARAMETERS

Get MLB game win probability — Endpoint Features

Object Description
game_id Required Game id (e.g. "849815"). Use the /game/list endpoint to list valid values.

Free test requests remaining: 3 of 3.


INPUT PARAMETERS

game_id
API EXAMPLE RESPONSE
JSON
[
    {
        "atBatIndex": 0,
        "inning": 1,
        "halfInning": "top",
        "event": "Single",
        "description": "Steven Kwan singles on a ground ball to shortstop Taylor Walls.",
        "awayScore": 0,
        "homeScore": 0,
        "batter": {
            "id": 680757,
            "fullName": "Steven Kwan",
            "nameSlug": "steven-kwan-680757"
        },
        "pitcher": {
            "id": 642547,
            "fullName": "Freddy Peralta",
            "nameSlug": "freddy-peralta-642547"
        },
        "homeTeamWinProbability": 46.4,
        "awayTeamWinProbability": 53.6,
        "homeTeamWinProbabilityAdded": -3.6,
        "leverageIndex": null
    },
    {
        "atBatIndex": 1,
        "inning": 1,
        "halfInning": "top",
        "event": "Flyout",
        "description": "José Ramírez flies out to left fielder Chandler Simpson.",
        "awayScore": 0,
        "homeScore": 0,
        "batter": {
            "id": 608070,
            "fullName": "José Ramírez",
            "nameSlug": "jose-ramirez-608070"
        },
        "pitcher": {
            "id": 642547,
            "fullName": "Freddy Peralta",
            "nameSlug": "freddy-peralta-642547"
        },
        "homeTeamWinProbability": 49.8,
        "awayTeamWinProbability": 50.2,
        "homeTeamWinProbabilityAdded": 3.4,
        "leverageIndex": 1.46
    },
    {
        "atBatIndex": 2,
        "inning": 1,
        "halfInning": "top",
        "event": "Flyout",
        "description": "Chase DeLauter flies out to center fielder Jonny DeLuca.",
        "awayScore": 0,
        "homeScore": 0,
        "batter": {
            "id": 800050,
            "fullName": "Chase DeLauter",
            "nameSlug": "chase-delauter-800050"
        },
        "pitcher": {
            "id": 642547,
            "fullName": "Freddy Peralta",
            "nameSlug": "freddy-peralta-642547"
        },
        "homeTeamWinProbability": 52.6,
        "awayTeamWinProbability": 47.4,
        "homeTeamWinProbabilityAdded": 2.8,
        "leverageIndex": 1.21
    },
    {
        "atBatIndex": 3,
        "inning": 1,
        "halfInning": "top",
        "event": "Pop Out",
        "description": "Jo Adell pops out softly to first baseman Jonathan Aranda in foul territory.",
        "awayScore": 0,
        "homeScore": 0,
        "batter": {
            "id": 666176,
            "fullName": "Jo Adell",
            "nameSlug": "jo-adell-666176"
        },
        "pitcher": {
            "id": 642547,
            "fullName": "Freddy Peralta",
            "nameSlug": "freddy-peralta-642547"
        },
        "homeTeamWinProbability": 54.8,
        "awayTeamWinProbability": 45.2,
        "homeTeamWinProbabilityAdded": 2.2,
        "leverageIndex": 0.88
    },
    {
        "atBatIndex": 4,
        "inning": 1,
        "halfInning": "bottom",
        "event": "Groundout",
        "description": "Yandy Díaz grounds out, shortstop Brayan Rocchio to first baseman Nathaniel Lowe.",
        "awayScore": 0,
        "homeScore": 0,
        "batter": {
            "id": 650490,
            "fullName": "Yandy Díaz",
            "nameSlug": "yandy-diaz-650490"
        },
        "pitcher": {
            "id": 542888,
            "fullName": "Shawn Armstrong",
            "nameSlug": "shawn-armstrong-542888"
        },
        "homeTeamWinProbability": 52.6,
        "awayTeamWinProbability": 47.4,
        "homeTeamWinProbabilityAdded": -2.2,
        "leverageIndex": 0.86
    },
    {
        "atBatIndex": 5,
        "inning": 1,
        "halfInning": "bottom",
        "event": "Pop Out",
        "description": "Jonathan Aranda pops out to second baseman Travis Bazzana.",
        "awayScore": 0,
        "homeScore": 0,
        "batter": {
            "id": 666018,
            "fullName": "Jonathan Aranda",
            "nameSlug": "jonathan-aranda-666018"
        },
        "pitcher": {
            "id": 542888,
            "fullName": "Shawn Armstrong",
            "nameSlug": "shawn-armstrong-542888"
        },
        "homeTeamWinProbability": 51,
        "awayTeamWinProbability": 49,
        "homeTeamWinProbabilityAdded": -1.6,
        "leverageIndex": 0.63
    },
    {
        "atBatIndex": 6,
        "inning": 1,
        "halfInning": "bottom",
        "event": "Pop Out",
        "description": "Liam Hicks pops out softly to pitcher Shawn Armstrong.",
        "awayScore": 0,
        "homeScore": 0,
        "batter": {
            "id": 689414,
            "fullName": "Liam Hicks",
            "nameSlug": "liam-hicks-689414"
        },
        "pitcher": {
            "id": 542888,
            "fullName": "Shawn Armstrong",
            "nameSlug": "shawn-armstrong-542888"
        },
        "homeTeamWinProbability": 50,
        "awayTeamWinProbability": 50,
        "homeTeamWinProbabilityAdded": -1,
        "leverageIndex": 0.41
    },
    {
        "atBatIndex": 7,
        "inning": 2,
        "halfInning": "top",
        "event": "Strikeout",
        "description": "Nathaniel Lowe strikes out swinging.",
        "awayScore": 0,
        "homeScore": 0,
        "batter": {
            "id": 663993,
            "fullName": "Nathaniel Lowe",
            "nameSlug": "nathaniel-lowe-663993"
        },
        "pitcher": {
            "id": 642547,
            "fullName": "Freddy Peralta",
            "nameSlug": "freddy-peralta-642547"
        },
        "homeTeamWinProbability": 52.3,
        "awayTeamWinProbability": 47.7,
        "homeTeamWinProbabilityAdded": 2.3,
        "leverageIndex": 0.92
    },
    {
        "atBatIndex": 8,
        "inning": 2,
        "halfInning": "top",
        "event": "Flyout",
        "description": "Travis Bazzana flies out sharply to right fielder Victor Mesa Jr.",
        "awayScore": 0,
        "homeScore": 0,
        "batter": {
            "id": 683953,
            "fullName": "Travis Bazzana",
            "nameSlug": "travis-bazzana-683953"
        },
        "pitcher": {
            "id": 642547,
            "fullName": "Freddy Peralta",
            "nameSlug": "freddy-peralta-642547"
        },
        "homeTeamWinProbability": 54,
        "awayTeamWinProbability": 46,
        "homeTeamWinProbabilityAdded": 1.7,
        "leverageIndex": 0.67
    }
]
Get MLB game win probability — CODE SNIPPETS

curl --location --request GET 'https://zylalabs.com/api/15957/mlb+api/44475/get+mlb+game+win+probability?game_id=849815' --header 'Authorization: Bearer YOUR_API_KEY' 


    
Request
Returns every award with its id, name, description and sport (MVP, Cy Young, Rookie of the Year, Gold Glove, Silver Slugger, Hall of Fame, players of the week and month…), as accepted by the "award_id" parameter of the /league/award-winners endpoint.
Endpoint ID: 44476
GET https://zylalabs.com/api/15957/mlb+api/44476/get+mlb+awards
INPUT PARAMETERS

Free test requests remaining: 3 of 3.

This endpoint does not require any input parameters.

API EXAMPLE RESPONSE
JSON
[
    {
        "id": "MLBHOF",
        "name": "Hall Of Fame",
        "description": "Member of Hall of Fame",
        "sortOrder": 1,
        "sport": {
            "id": 1
        },
        "active": true
    },
    {
        "id": "RETIREDUNI_108",
        "name": "Uniform number retired",
        "sortOrder": 4,
        "sport": {
            "id": 1
        },
        "active": true
    },
    {
        "id": "RETIREDUNI_109",
        "name": "Uniform number retired",
        "sortOrder": 4,
        "sport": {
            "id": 1
        },
        "active": true
    },
    {
        "id": "RETIREDUNI_110",
        "name": "Uniform number retired",
        "sortOrder": 4,
        "sport": {
            "id": 1
        },
        "active": true
    },
    {
        "id": "RETIREDUNI_111",
        "name": "Uniform number retired",
        "sortOrder": 4,
        "sport": {
            "id": 1
        },
        "active": true
    },
    {
        "id": "RETIREDUNI_112",
        "name": "Uniform number retired",
        "sortOrder": 4,
        "sport": {
            "id": 1
        },
        "active": true
    },
    {
        "id": "RETIREDUNI_113",
        "name": "Uniform number retired",
        "sortOrder": 4,
        "sport": {
            "id": 1
        },
        "active": true
    },
    {
        "id": "RETIREDUNI_114",
        "name": "Uniform number retired",
        "sortOrder": 4,
        "sport": {
            "id": 1
        },
        "active": true
    },
    {
        "id": "RETIREDUNI_115",
        "name": "Uniform number retired",
        "sortOrder": 4,
        "sport": {
            "id": 1
        },
        "active": true
    },
    {
        "id": "RETIREDUNI_116",
        "name": "Uniform number retired",
        "sortOrder": 4,
        "sport": {
            "id": 1
        },
        "active": true
    },
    {
        "id": "RETIREDUNI_117",
        "name": "Uniform number retired",
        "sortOrder": 4,
        "sport": {
            "id": 1
        },
        "active": true
    },
    {
        "id": "RETIREDUNI_118",
        "name": "Uniform number retired",
        "sortOrder": 4,
        "sport": {
            "id": 1
        },
        "active": true
    },
    {
        "id": "RETIREDUNI_119",
        "name": "Uniform number retired",
        "sortOrder": 4,
        "sport": {
            "id": 1
        },
        "active": true
    },
    {
        "id": "RETIREDUNI_120",
        "name": "Uniform number retired",
        "sortOrder": 4,
        "sport": {
            "id": 1
        },
        "active": true
    },
    {
        "id": "RETIREDUNI_121",
        "name": "Uniform number retired",
        "sortOrder": 4,
        "sport": {
            "id": 1
        },
        "active": true
    },
    {
        "id": "RETIREDUNI_133",
        "name": "Uniform number retired",
        "sortOrder": 4,
        "sport": {
            "id": 1
        },
        "active": true
    },
    {
        "id": "RETIREDUNI_134",
        "name": "Uniform number retired",
        "sortOrder": 4,
        "sport": {
            "id": 1
        },
        "active": true
    },
    {
        "id": "RETIREDUNI_135",
        "name": "Uniform number retired",
        "sortOrder": 4,
        "sport": {
            "id": 1
        },
        "active": true
    },
    {
        "id": "RETIREDUNI_136",
        "name": "Uniform number retired",
        "sortOrder": 4,
        "sport": {
            "id": 1
        },
        "active": true
    },
    {
        "id": "RETIREDUNI_137",
        "name": "Uniform number retired",
        "sortOrder": 4,
        "sport": {
            "id": 1
        },
        "active": true
    },
    {
        "id": "RETIREDUNI_138",
        "name": "Uniform number retired",
        "sortOrder": 4,
        "sport": {
            "id": 1
        },
        "active": true
    },
    {
        "id": "RETIREDUNI_139",
        "name": "Uniform number retired",
        "sortOrder": 4,
        "sport": {
            "id": 1
        },
        "active": true
    },
    {
        "id": "RETIREDUNI_140",
        "name": "Uniform number retired",
        "sortOrder": 4,
        "sport": {
            "id": 1
        },
        "active": true
    },
    {
        "id": "RETIREDUNI_141",
        "name": "Uniform number retired",
        "sortOrder": 4,
        "sport": {
            "id": 1
        },
        "active": true
    },
    {
        "id": "RETIREDUNI_142",
        "name": "Uniform number retired",
        "sortOrder": 4,
        "sport": {
            "id": 1
        },
        "active": true
    },
    {
        "id": "RETIREDUNI_143",
        "name": "Uniform number retired",
        "sortOrder": 4,
        "sport": {
            "id": 1
        },
        "active": true
    },
    {
        "id": "RETIREDUNI_144",
        "name": "Uniform number retired",
        "sortOrder": 4,
        "sport": {
            "id": 1
        },
        "active": true
    },
    {
        "id": "RETIREDUNI_145",
        "name": "Uniform number retired",
        "sortOrder": 4,
        "sport": {
            "id": 1
        },
        "active": true
    },
    {
        "id": "RETIREDUNI_146",
        "name": "Uniform number retired",
        "sortOrder": 4,
        "sport": {
            "id": 1
        },
        "active": true
    },
    {
        "id": "RETIREDUNI_147",
        "name": "Uniform number retired",
        "sortOrder": 4,
        "sport": {
            "id": 1
        },
        "active": true
    },
    {
        "id": "RETIREDUNI_158",
        "name": "Uniform number retired",
        "sortOrder": 4,
        "sport": {
            "id": 1
        },
        "active": true
    },
    {
        "id": "ALMVP",
        "name": "AL MVP",
        "sortOrder": 7,
        "league": {
            "id": 103
        },
        "active": true
    },
    {
        "id": "NLMVP",
        "name": "NL MVP",
        "sortOrder": 7,
        "league": {
            "id": 104
        },
        "active": true
    },
    {
        "id": "ALAWARD",
        "name": "The American League Award",
        "sortOrder": 8,
        "league": {
            "id": 103
        },
        "active": false
    },
    {
        "id": "ALCHALM",
        "name": "The Chalmers Award (AL)",
        "sortOrder": 8,
        "league": {
            "id": 103
        },
        "active": false
    },
    {
        "id": "NLCHALM",
        "name": "The Chalmers Award (NL)",
        "sortOrder": 8,
        "league": {
            "id": 104
        },
        "active": false
    },
    {
        "id": "NLAWARD",
        "name": "The National League Award",
        "sortOrder": 8,
        "league": {
            "id": 104
        },
        "active": false
    },
    {
        "id": "ALCY",
        "name": "AL Cy Young",
        "sortOrder": 11,
        "league": {
            "id": 103
        },
        "active": true
    },
    {
        "id": "NLCY",
        "name": "NL Cy Young",
        "sortOrder": 11,
        "league": {
            "id": 104
        },
        "active": true
    },
    {
        "id": "MLBCY",
        "name": "MLB Cy Young",
        "sortOrder": 12,
        "sport": {
            "id": 1
        },
        "active": false
    },
    {
        "id": "ALROY",
        "name": "Jackie Robinson AL Rookie of the Year",
        "sortOrder": 14,
        "league": {
            "id": 103
        },
        "active": true
    },
    {
        "id": "NLROY",
        "name": "Jackie Robinson NL Rookie of the Year",
        "sortOrder": 14,
        "league": {
            "id": 104
        },
        "active": true
    }
]
Get MLB awards — CODE SNIPPETS

curl --location --request GET 'https://zylalabs.com/api/15957/mlb+api/44476/get+mlb+awards' --header 'Authorization: Bearer YOUR_API_KEY' 


    
Request
Returns the divisions of a sport with their name, abbreviation and league.
Endpoint ID: 44477
GET https://zylalabs.com/api/15957/mlb+api/44477/get+mlb+divisions
INPUT PARAMETERS

Get MLB divisions — Endpoint Features

Object Description
sport Optional Optional sport: "mlb", "aaa", "aa", "high_a", "single_a", "rookie" or "winter" (defaults to "mlb"). Use the /general/sports endpoint to list valid values.

Free test requests remaining: 3 of 3.


INPUT PARAMETERS

sport
API EXAMPLE RESPONSE
JSON
[
    {
        "id": 200,
        "name": "American League West",
        "season": "2026",
        "nameShort": "AL West",
        "abbreviation": "ALW",
        "league": {
            "id": 103
        },
        "sport": {
            "id": 1
        },
        "hasWildcard": false,
        "sortOrder": 24,
        "numPlayoffTeams": 1,
        "active": true
    },
    {
        "id": 201,
        "name": "American League East",
        "season": "2026",
        "nameShort": "AL East",
        "abbreviation": "ALE",
        "league": {
            "id": 103
        },
        "sport": {
            "id": 1
        },
        "hasWildcard": false,
        "sortOrder": 22,
        "numPlayoffTeams": 1,
        "active": true
    },
    {
        "id": 202,
        "name": "American League Central",
        "season": "2026",
        "nameShort": "AL Central",
        "abbreviation": "ALC",
        "league": {
            "id": 103
        },
        "sport": {
            "id": 1
        },
        "hasWildcard": false,
        "sortOrder": 23,
        "numPlayoffTeams": 1,
        "active": true
    },
    {
        "id": 203,
        "name": "National League West",
        "season": "2026",
        "nameShort": "NL West",
        "abbreviation": "NLW",
        "league": {
            "id": 104
        },
        "sport": {
            "id": 1
        },
        "hasWildcard": false,
        "sortOrder": 34,
        "numPlayoffTeams": 1,
        "active": true
    },
    {
        "id": 204,
        "name": "National League East",
        "season": "2026",
        "nameShort": "NL East",
        "abbreviation": "NLE",
        "league": {
            "id": 104
        },
        "sport": {
            "id": 1
        },
        "hasWildcard": false,
        "sortOrder": 32,
        "numPlayoffTeams": 1,
        "active": true
    },
    {
        "id": 205,
        "name": "National League Central",
        "season": "2026",
        "nameShort": "NL Central",
        "abbreviation": "NLC",
        "league": {
            "id": 104
        },
        "sport": {
            "id": 1
        },
        "hasWildcard": false,
        "sortOrder": 33,
        "numPlayoffTeams": 1,
        "active": true
    }
]
Get MLB divisions — CODE SNIPPETS

curl --location --request GET 'https://zylalabs.com/api/15957/mlb+api/44477/get+mlb+divisions?sport=mlb' --header 'Authorization: Bearer YOUR_API_KEY' 


    
Request
Lists the values accepted by the "category" parameter of the /league/leaders and /team/leaders endpoints (home runs, batting average, ERA, strikeouts, saves, stolen bases…).
Endpoint ID: 44478
GET https://zylalabs.com/api/15957/mlb+api/44478/get+mlb+leader+categories
INPUT PARAMETERS

Free test requests remaining: 3 of 3.

This endpoint does not require any input parameters.

API EXAMPLE RESPONSE
JSON
[
    "assists",
    "shutouts",
    "homeRuns",
    "sacrificeBunts",
    "sacrificeFlies",
    "runs",
    "groundoutToFlyoutRatio",
    "stolenBases",
    "battingAverage",
    "groundOuts",
    "numberOfPitches",
    "onBasePercentage",
    "caughtStealing",
    "groundIntoDoublePlays",
    "totalBases",
    "earnedRunAverage",
    "fieldingPercentage",
    "walksAndHitsPerInningPitched",
    "flyouts",
    "hitByPitches",
    "gamesPlayed",
    "walks",
    "sluggingPercentage",
    "onBasePlusSlugging",
    "runsBattedIn",
    "triples",
    "extraBaseHits",
    "hits",
    "atBats",
    "strikeouts",
    "doubles",
    "totalPlateAppearances",
    "intentionalWalks",
    "wins",
    "losses",
    "saves",
    "wildPitch",
    "airOuts",
    "balk",
    "blownSaves",
    "catcherEarnedRunAverage",
    "catchersInterference",
    "chances",
    "completeGames",
    "doublePlays",
    "earnedRun",
    "errors",
    "gamesFinished",
    "gamesStarted",
    "hitBatsman",
    "hitsPer9Inn",
    "holds",
    "innings",
    "inningsPitched",
    "outfieldAssists",
    "passedBalls",
    "pickoffs",
    "pitchesPerInning",
    "putOuts",
    "rangeFactorPerGame",
    "rangeFactorPer9Inn",
    "saveOpportunities",
    "stolenBasePercentage",
    "strikeoutsPer9Inn",
    "strikeoutWalkRatio",
    "throwingErrors",
    "totalBattersFaced",
    "triplePlays",
    "walksPer9Inn",
    "winPercentage"
]
Get MLB leader categories — CODE SNIPPETS

curl --location --request GET 'https://zylalabs.com/api/15957/mlb+api/44478/get+mlb+leader+categories' --header 'Authorization: Bearer YOUR_API_KEY' 


    
Request
Returns the leagues of a sport with their abbreviation, season dates, number of games, divisions and wild card setup.
Endpoint ID: 44479
GET https://zylalabs.com/api/15957/mlb+api/44479/get+mlb+leagues
INPUT PARAMETERS

Get MLB leagues — Endpoint Features

Object Description
sport Optional Optional sport: "mlb", "aaa", "aa", "high_a", "single_a", "rookie" or "winter" (defaults to "mlb"). Use the /general/sports endpoint to list valid values.

Free test requests remaining: 3 of 3.


INPUT PARAMETERS

sport
API EXAMPLE RESPONSE
JSON
[
    {
        "id": 103,
        "name": "American League",
        "abbreviation": "AL",
        "nameShort": "American",
        "seasonState": "offseason",
        "hasWildCard": true,
        "hasSplitSeason": false,
        "numGames": 162,
        "hasPlayoffPoints": false,
        "numTeams": 15,
        "numWildcardTeams": 3,
        "seasonDateInfo": {
            "seasonId": "2026",
            "preSeasonStartDate": "2026-01-01",
            "preSeasonEndDate": "2026-02-19",
            "seasonStartDate": "2026-02-20",
            "springStartDate": "2026-02-20",
            "springEndDate": "2026-03-24",
            "regularSeasonStartDate": "2026-03-25",
            "lastDate1stHalf": "2026-07-12",
            "allStarDate": "2026-07-14",
            "firstDate2ndHalf": "2026-07-16",
            "regularSeasonEndDate": "2026-09-27",
            "postSeasonStartDate": "2026-09-28",
            "postSeasonEndDate": "2026-10-31",
            "seasonEndDate": "2026-10-31",
            "offseasonStartDate": "2026-11-01",
            "offSeasonEndDate": "2026-12-31",
            "seasonLevelGamedayType": "P",
            "gameLevelGamedayType": "P",
            "qualifierPlateAppearances": 3.1,
            "qualifierOutsPitched": 3
        },
        "season": "2026",
        "orgCode": "AL",
        "conferencesInUse": false,
        "divisionsInUse": true,
        "sport": {
            "id": 1
        },
        "sortOrder": 21,
        "active": true
    },
    {
        "id": 104,
        "name": "National League",
        "abbreviation": "NL",
        "nameShort": "National",
        "seasonState": "offseason",
        "hasWildCard": true,
        "hasSplitSeason": false,
        "numGames": 162,
        "hasPlayoffPoints": false,
        "numTeams": 15,
        "numWildcardTeams": 3,
        "seasonDateInfo": {
            "seasonId": "2026",
            "preSeasonStartDate": "2026-01-01",
            "preSeasonEndDate": "2026-02-19",
            "seasonStartDate": "2026-02-20",
            "springStartDate": "2026-02-20",
            "springEndDate": "2026-03-24",
            "regularSeasonStartDate": "2026-03-25",
            "lastDate1stHalf": "2026-07-12",
            "allStarDate": "2026-07-14",
            "firstDate2ndHalf": "2026-07-16",
            "regularSeasonEndDate": "2026-09-27",
            "postSeasonStartDate": "2026-09-28",
            "postSeasonEndDate": "2026-10-31",
            "seasonEndDate": "2026-10-31",
            "offseasonStartDate": "2026-11-01",
            "offSeasonEndDate": "2026-12-31",
            "seasonLevelGamedayType": "P",
            "gameLevelGamedayType": "P",
            "qualifierPlateAppearances": 3.1,
            "qualifierOutsPitched": 3
        },
        "season": "2026",
        "orgCode": "NL",
        "conferencesInUse": false,
        "divisionsInUse": true,
        "sport": {
            "id": 1
        },
        "sortOrder": 31,
        "active": true
    },
    {
        "id": 114,
        "name": "Cactus League",
        "abbreviation": "CL",
        "nameShort": "Cactus",
        "seasonState": "offseason",
        "hasWildCard": false,
        "hasSplitSeason": false,
        "hasPlayoffPoints": false,
        "seasonDateInfo": {
            "seasonId": "2026",
            "preSeasonStartDate": "2026-01-01",
            "preSeasonEndDate": "2026-02-19",
            "seasonStartDate": "2026-02-20",
            "springStartDate": "2026-02-20",
            "springEndDate": "2026-03-24",
            "offseasonStartDate": "2026-03-25",
            "offSeasonEndDate": "2026-12-31",
            "seasonLevelGamedayType": "F",
            "gameLevelGamedayType": "F"
        },
        "season": "2026",
        "orgCode": "CL",
        "conferencesInUse": false,
        "divisionsInUse": false,
        "sortOrder": 51,
        "active": true
    },
    {
        "id": 115,
        "name": "Grapefruit League",
        "abbreviation": "GL",
        "nameShort": "Grapefruit",
        "seasonState": "offseason",
        "hasWildCard": false,
        "hasSplitSeason": false,
        "hasPlayoffPoints": false,
        "seasonDateInfo": {
            "seasonId": "2026",
            "preSeasonStartDate": "2026-01-01",
            "preSeasonEndDate": "2026-02-19",
            "seasonStartDate": "2026-02-20",
            "springStartDate": "2026-02-20",
            "springEndDate": "2026-03-24",
            "offseasonStartDate": "2026-03-25",
            "offSeasonEndDate": "2026-12-31",
            "seasonLevelGamedayType": "F",
            "gameLevelGamedayType": "F"
        },
        "season": "2026",
        "orgCode": "GL",
        "conferencesInUse": false,
        "divisionsInUse": false,
        "sortOrder": 52,
        "active": true
    },
    {
        "id": 431,
        "name": "Negro National League (II)",
        "abbreviation": "NN2",
        "nameShort": "Negro National (II)",
        "seasonState": "offseason",
        "hasWildCard": false,
        "hasSplitSeason": false,
        "numGames": 59,
        "hasPlayoffPoints": false,
        "numTeams": 6,
        "seasonDateInfo": {
            "seasonId": "1948",
            "preSeasonStartDate": "1948-01-01",
            "preSeasonEndDate": "1948-04-28",
            "seasonStartDate": "1948-04-29",
            "regularSeasonStartDate": "1948-04-29",
            "lastDate1stHalf": "1948-07-05",
            "allStarDate": "1948-07-13",
            "firstDate2ndHalf": "1948-07-06",
            "regularSeasonEndDate": "1948-09-12",
            "postSeasonStartDate": "1948-10-06",
            "postSeasonEndDate": "1948-10-11",
            "seasonEndDate": "1948-10-11",
            "offseasonStartDate": "1948-09-13",
            "offSeasonEndDate": "1948-12-31",
            "seasonLevelGamedayType": "N",
            "gameLevelGamedayType": "N",
            "qualifierPlateAppearances": 3.1,
            "qualifierOutsPitched": 3
        },
        "season": "1948",
        "orgCode": "NN2",
        "conferencesInUse": false,
        "divisionsInUse": false,
        "sport": {
            "id": 1
        },
        "sortOrder": 2411,
        "active": false
    },
    {
        "id": 430,
        "name": "Negro National League (I)",
        "abbreviation": "NNL",
        "nameShort": "Negro National (I)",
        "seasonState": "offseason",
        "hasWildCard": false,
        "hasSplitSeason": false,
        "numGames": 52,
        "hasPlayoffPoints": false,
        "numTeams": 7,
        "seasonDateInfo": {
            "seasonId": "1931",
            "preSeasonStartDate": "1931-01-01",
            "preSeasonEndDate": "1931-05-01",
            "seasonStartDate": "1931-05-02",
            "regularSeasonStartDate": "1931-05-02",
            "regularSeasonEndDate": "1931-09-03",
            "postSeasonStartDate": "1931-10-01",
            "postSeasonEndDate": "1931-10-10",
            "seasonEndDate": "1931-10-10",
            "offseasonStartDate": "1931-09-04",
            "offSeasonEndDate": "1931-12-31",
            "seasonLevelGamedayType": "N",
            "gameLevelGamedayType": "N",
            "qualifierPlateAppearances": 3.1,
            "qualifierOutsPitched": 3
        },
        "season": "1931",
        "orgCode": "NNL",
        "conferencesInUse": false,
        "divisionsInUse": false,
        "sport": {
            "id": 1
        },
        "sortOrder": 2421,
        "active": false
    },
    {
        "id": 429,
        "name": "Negro East West League",
        "abbreviation": "EWL",
        "nameShort": "Negro East West",
        "seasonState": "offseason",
        "hasWildCard": false,
        "hasSplitSeason": false,
        "numGames": 32,
        "hasPlayoffPoints": false,
        "numTeams": 8,
        "seasonDateInfo": {
            "seasonId": "1932",
            "preSeasonStartDate": "1932-01-01",
            "preSeasonEndDate": "1932-05-06",
            "seasonStartDate": "1932-05-07",
            "regularSeasonStartDate": "1932-05-07",
            "regularSeasonEndDate": "1932-09-18",
            "postSeasonStartDate": "1932-09-28",
            "postSeasonEndDate": "1932-10-02",
            "seasonEndDate": "1932-10-02",
            "offseasonStartDate": "1932-09-19",
            "offSeasonEndDate": "1932-12-31",
            "seasonLevelGamedayType": "N",
            "gameLevelGamedayType": "N",
            "qualifierPlateAppearances": 3.1,
            "qualifierOutsPitched": 3
        },
        "season": "1932",
        "orgCode": "EWL",
        "conferencesInUse": false,
        "divisionsInUse": false,
        "sport": {
            "id": 1
        },
        "sortOrder": 2431,
        "active": false
    }
]
Get MLB leagues — CODE SNIPPETS

curl --location --request GET 'https://zylalabs.com/api/15957/mlb+api/44479/get+mlb+leagues?sport=mlb' --header 'Authorization: Bearer YOUR_API_KEY' 


    
Request
Lists the values accepted by the "type" parameter of the /player/statistics endpoint.
Endpoint ID: 44480
GET https://zylalabs.com/api/15957/mlb+api/44480/get+mlb+player+stat+types
INPUT PARAMETERS

Free test requests remaining: 3 of 3.

This endpoint does not require any input parameters.

API EXAMPLE RESPONSE
JSON
[
    {
        "value": "season",
        "label": "One season"
    },
    {
        "value": "season_advanced",
        "label": "One season, advanced"
    },
    {
        "value": "career",
        "label": "Career"
    },
    {
        "value": "career_advanced",
        "label": "Career, advanced"
    },
    {
        "value": "career_regular_season",
        "label": "Career, regular season only"
    },
    {
        "value": "career_playoffs",
        "label": "Career, postseason only"
    },
    {
        "value": "year_by_year",
        "label": "Every season of the career"
    },
    {
        "value": "year_by_year_advanced",
        "label": "Every season of the career, advanced"
    },
    {
        "value": "year_by_year_playoffs",
        "label": "Every postseason of the career"
    },
    {
        "value": "by_month",
        "label": "One season, by month"
    },
    {
        "value": "by_day_of_week",
        "label": "One season, by day of the week"
    },
    {
        "value": "home_and_away",
        "label": "One season, at home and away"
    },
    {
        "value": "win_loss",
        "label": "One season, in wins and losses"
    },
    {
        "value": "sabermetrics",
        "label": "One season, sabermetrics (WAR, wOBA, FIP…)"
    },
    {
        "value": "expected_statistics",
        "label": "One season, expected statistics (xBA, xSLG, xwOBA…)"
    },
    {
        "value": "pitch_arsenal",
        "label": "One season, by pitch type (usage and speed)"
    },
    {
        "value": "hot_cold_zones",
        "label": "One season, by strike zone area"
    },
    {
        "value": "spray_chart",
        "label": "One season, where the balls in play went"
    },
    {
        "value": "last_games",
        "label": "The last games"
    },
    {
        "value": "rankings",
        "label": "One season, rank in the league"
    }
]
Get MLB player stat types — CODE SNIPPETS

curl --location --request GET 'https://zylalabs.com/api/15957/mlb+api/44480/get+mlb+player+stat+types' --header 'Authorization: Bearer YOUR_API_KEY' 


    
Request
Returns every position with its code, abbreviation, name and type, as accepted by the "position" parameter.
Endpoint ID: 44481
GET https://zylalabs.com/api/15957/mlb+api/44481/get+mlb+positions
INPUT PARAMETERS

Free test requests remaining: 3 of 3.

This endpoint does not require any input parameters.

API EXAMPLE RESPONSE
JSON
[
    {
        "shortName": "Pitcher",
        "fullName": "Pitcher",
        "abbrev": "P",
        "code": "1",
        "type": "Pitcher",
        "formalName": "Pitcher",
        "displayName": "Pitcher",
        "pitcher": true,
        "gamePosition": true,
        "fielder": false,
        "outfield": false
    },
    {
        "shortName": "Catcher",
        "fullName": "Catcher",
        "abbrev": "C",
        "code": "2",
        "type": "Catcher",
        "formalName": "Catcher",
        "displayName": "Catcher",
        "pitcher": false,
        "gamePosition": true,
        "fielder": true,
        "outfield": false
    },
    {
        "shortName": "1st Base",
        "fullName": "First Base",
        "abbrev": "1B",
        "code": "3",
        "type": "Infielder",
        "formalName": "First Baseman",
        "displayName": "First Base",
        "pitcher": false,
        "gamePosition": true,
        "fielder": true,
        "outfield": false
    },
    {
        "shortName": "2nd Base",
        "fullName": "Second Base",
        "abbrev": "2B",
        "code": "4",
        "type": "Infielder",
        "formalName": "Second Baseman",
        "displayName": "Second Base",
        "pitcher": false,
        "gamePosition": true,
        "fielder": true,
        "outfield": false
    },
    {
        "shortName": "3rd Base",
        "fullName": "Third Base",
        "abbrev": "3B",
        "code": "5",
        "type": "Infielder",
        "formalName": "Third Baseman",
        "displayName": "Third Base",
        "pitcher": false,
        "gamePosition": true,
        "fielder": true,
        "outfield": false
    },
    {
        "shortName": "Shortstop",
        "fullName": "Shortstop",
        "abbrev": "SS",
        "code": "6",
        "type": "Infielder",
        "formalName": "Shortstop",
        "displayName": "Shortstop",
        "pitcher": false,
        "gamePosition": true,
        "fielder": true,
        "outfield": false
    },
    {
        "shortName": "Left Field",
        "fullName": "Outfielder",
        "abbrev": "LF",
        "code": "7",
        "type": "Outfielder",
        "formalName": "Left Fielder",
        "displayName": "Outfielder",
        "pitcher": false,
        "gamePosition": true,
        "fielder": true,
        "outfield": true
    },
    {
        "shortName": "Center Field",
        "fullName": "Outfielder",
        "abbrev": "CF",
        "code": "8",
        "type": "Outfielder",
        "formalName": "Center Fielder",
        "displayName": "Outfielder",
        "pitcher": false,
        "gamePosition": true,
        "fielder": true,
        "outfield": true
    },
    {
        "shortName": "Right Field",
        "fullName": "Outfielder",
        "abbrev": "RF",
        "code": "9",
        "type": "Outfielder",
        "formalName": "Right Fielder",
        "displayName": "Outfielder",
        "pitcher": false,
        "gamePosition": true,
        "fielder": true,
        "outfield": true
    },
    {
        "shortName": "Designated Hitter",
        "fullName": "Designated Hitter",
        "abbrev": "DH",
        "code": "10",
        "type": "Hitter",
        "formalName": "Designated Hitter",
        "displayName": "Designated Hitter",
        "pitcher": false,
        "gamePosition": true,
        "fielder": false,
        "outfield": false
    },
    {
        "shortName": "Pinch Hitter",
        "fullName": "Pinch Hitter",
        "abbrev": "PH",
        "code": "11",
        "type": "Hitter",
        "formalName": "Pinch Hitter",
        "displayName": "Pinch Hitter",
        "pitcher": false,
        "gamePosition": true,
        "fielder": false,
        "outfield": false
    },
    {
        "shortName": "Pinch Runner",
        "fullName": "Pinch Runner",
        "abbrev": "PR",
        "code": "12",
        "type": "Runner",
        "formalName": "Pinch Runner",
        "displayName": "Pinch Runner",
        "pitcher": false,
        "gamePosition": true,
        "fielder": false,
        "outfield": false
    },
    {
        "shortName": "Extra Hitter",
        "fullName": "Extra Hitter",
        "abbrev": "EH",
        "code": "13",
        "type": "Hitter",
        "formalName": "Extra Hitter",
        "displayName": "Extra Hitter",
        "pitcher": false,
        "gamePosition": true,
        "fielder": false,
        "outfield": false
    },
    {
        "shortName": "Base Runner",
        "fullName": "Base Runner",
        "abbrev": "BR",
        "code": "BR",
        "type": "Runner",
        "formalName": "Base Runner",
        "displayName": "Base Runner",
        "pitcher": false,
        "gamePosition": false,
        "fielder": false,
        "outfield": false
    },
    {
        "shortName": "Outfield",
        "fullName": "Outfield",
        "abbrev": "OF",
        "code": "O",
        "type": "Outfielder",
        "formalName": "Outfield",
        "displayName": "Outfield",
        "pitcher": false,
        "gamePosition": false,
        "fielder": true,
        "outfield": true
    },
    {
        "shortName": "Infield",
        "fullName": "Infield",
        "abbrev": "IF",
        "code": "I",
        "type": "Infielder",
        "formalName": "Infield",
        "displayName": "Infield",
        "pitcher": false,
        "gamePosition": false,
        "fielder": true,
        "outfield": false
    },
    {
        "shortName": "Starting Pitcher",
        "fullName": "Starting Pitcher",
        "abbrev": "SP",
        "code": "S",
        "type": "Pitcher",
        "formalName": "Starting Pitcher",
        "displayName": "Starting Pitcher",
        "pitcher": true,
        "gamePosition": false,
        "fielder": false,
        "outfield": false
    },
    {
        "shortName": "Relief Pitcher",
        "fullName": "Relief Pitcher",
        "abbrev": "RP",
        "code": "E",
        "type": "Pitcher",
        "formalName": "Relief Pitcher",
        "displayName": "Relief Pitcher",
        "pitcher": true,
        "gamePosition": false,
        "fielder": false,
        "outfield": false
    }
]
Get MLB positions — CODE SNIPPETS

curl --location --request GET 'https://zylalabs.com/api/15957/mlb+api/44481/get+mlb+positions' --header 'Authorization: Bearer YOUR_API_KEY' 


    
Request
Returns every season of a sport, the latest first, with the dates of spring training, the regular season, the All-Star Game, the postseason and the offseason, and the qualifying plate appearances and innings.
Endpoint ID: 44482
GET https://zylalabs.com/api/15957/mlb+api/44482/get+mlb+seasons
INPUT PARAMETERS

Get MLB seasons — Endpoint Features

Object Description
sport Optional Optional sport: "mlb", "aaa", "aa", "high_a", "single_a", "rookie" or "winter" (defaults to "mlb"). Use the /general/sports endpoint to list valid values.

Free test requests remaining: 3 of 3.


INPUT PARAMETERS

sport
API EXAMPLE RESPONSE
JSON
[
    {
        "seasonId": "2027",
        "hasWildcard": true,
        "preSeasonStartDate": "2027-01-01",
        "preSeasonEndDate": "2027-02-18",
        "seasonStartDate": "2027-02-19",
        "springStartDate": "2027-02-19",
        "springEndDate": "2027-03-23",
        "regularSeasonStartDate": "2027-03-24",
        "lastDate1stHalf": "2027-07-11",
        "allStarDate": "2027-07-13",
        "firstDate2ndHalf": "2027-07-16",
        "regularSeasonEndDate": "2027-09-26",
        "postSeasonStartDate": "2027-09-27",
        "postSeasonEndDate": "2027-10-31",
        "seasonEndDate": "2027-10-31",
        "offseasonStartDate": "2027-11-01",
        "offSeasonEndDate": "2027-12-31",
        "seasonLevelGamedayType": "P",
        "gameLevelGamedayType": "P",
        "qualifierPlateAppearances": 3.1,
        "qualifierOutsPitched": 3
    },
    {
        "seasonId": "2026",
        "hasWildcard": true,
        "preSeasonStartDate": "2026-01-01",
        "preSeasonEndDate": "2026-02-19",
        "seasonStartDate": "2026-02-20",
        "springStartDate": "2026-02-20",
        "springEndDate": "2026-03-24",
        "regularSeasonStartDate": "2026-03-25",
        "lastDate1stHalf": "2026-07-12",
        "allStarDate": "2026-07-14",
        "firstDate2ndHalf": "2026-07-16",
        "regularSeasonEndDate": "2026-09-27",
        "postSeasonStartDate": "2026-09-28",
        "postSeasonEndDate": "2026-10-28",
        "seasonEndDate": "2026-10-28",
        "offseasonStartDate": "2026-10-29",
        "offSeasonEndDate": "2026-12-31",
        "seasonLevelGamedayType": "P",
        "gameLevelGamedayType": "P",
        "qualifierPlateAppearances": 3.1,
        "qualifierOutsPitched": 3
    },
    {
        "seasonId": "2025",
        "hasWildcard": true,
        "preSeasonStartDate": "2025-01-01",
        "preSeasonEndDate": "2025-02-19",
        "seasonStartDate": "2025-02-20",
        "springStartDate": "2025-02-20",
        "springEndDate": "2025-03-25",
        "regularSeasonStartDate": "2025-03-18",
        "lastDate1stHalf": "2025-07-14",
        "allStarDate": "2025-07-15",
        "firstDate2ndHalf": "2025-07-18",
        "regularSeasonEndDate": "2025-09-28",
        "postSeasonStartDate": "2025-09-30",
        "postSeasonEndDate": "2025-11-01",
        "seasonEndDate": "2025-11-01",
        "offseasonStartDate": "2025-11-02",
        "offSeasonEndDate": "2025-12-31",
        "seasonLevelGamedayType": "P",
        "gameLevelGamedayType": "P",
        "qualifierPlateAppearances": 3.1,
        "qualifierOutsPitched": 3
    },
    {
        "seasonId": "2024",
        "hasWildcard": true,
        "preSeasonStartDate": "2024-01-01",
        "preSeasonEndDate": "2024-02-21",
        "seasonStartDate": "2024-02-22",
        "springStartDate": "2024-02-22",
        "springEndDate": "2024-03-26",
        "regularSeasonStartDate": "2024-03-20",
        "lastDate1stHalf": "2024-07-14",
        "allStarDate": "2024-07-16",
        "firstDate2ndHalf": "2024-07-19",
        "regularSeasonEndDate": "2024-09-30",
        "postSeasonStartDate": "2024-10-01",
        "postSeasonEndDate": "2024-10-30",
        "seasonEndDate": "2024-10-30",
        "offseasonStartDate": "2024-10-31",
        "offSeasonEndDate": "2024-12-31",
        "seasonLevelGamedayType": "P",
        "gameLevelGamedayType": "P",
        "qualifierPlateAppearances": 3.1,
        "qualifierOutsPitched": 3
    },
    {
        "seasonId": "2023",
        "hasWildcard": true,
        "preSeasonStartDate": "2023-01-01",
        "preSeasonEndDate": "2023-02-23",
        "seasonStartDate": "2023-02-24",
        "springStartDate": "2023-02-24",
        "springEndDate": "2023-03-28",
        "regularSeasonStartDate": "2023-03-30",
        "lastDate1stHalf": "2023-07-09",
        "allStarDate": "2023-07-11",
        "firstDate2ndHalf": "2023-07-14",
        "regularSeasonEndDate": "2023-10-02",
        "postSeasonStartDate": "2023-10-03",
        "postSeasonEndDate": "2023-11-01",
        "seasonEndDate": "2023-11-01",
        "offseasonStartDate": "2023-11-02",
        "offSeasonEndDate": "2023-12-31",
        "seasonLevelGamedayType": "P",
        "gameLevelGamedayType": "P",
        "qualifierPlateAppearances": 3.1,
        "qualifierOutsPitched": 3
    },
    {
        "seasonId": "2022",
        "hasWildcard": true,
        "preSeasonStartDate": "2022-01-01",
        "preSeasonEndDate": "2022-02-26",
        "seasonStartDate": "2022-02-27",
        "springStartDate": "2022-02-27",
        "springEndDate": "2022-04-06",
        "regularSeasonStartDate": "2022-04-07",
        "lastDate1stHalf": "2022-07-17",
        "allStarDate": "2022-07-19",
        "firstDate2ndHalf": "2022-07-21",
        "regularSeasonEndDate": "2022-10-05",
        "postSeasonStartDate": "2022-10-07",
        "postSeasonEndDate": "2022-11-05",
        "seasonEndDate": "2022-11-05",
        "offseasonStartDate": "2022-11-06",
        "offSeasonEndDate": "2022-12-31",
        "seasonLevelGamedayType": "P",
        "gameLevelGamedayType": "P",
        "qualifierPlateAppearances": 3.1,
        "qualifierOutsPitched": 3
    },
    {
        "seasonId": "2021",
        "hasWildcard": true,
        "preSeasonStartDate": "2021-01-01",
        "preSeasonEndDate": "2021-02-25",
        "seasonStartDate": "2021-02-26",
        "springStartDate": "2021-02-26",
        "springEndDate": "2021-03-30",
        "regularSeasonStartDate": "2021-04-01",
        "lastDate1stHalf": "2021-07-11",
        "allStarDate": "2021-07-13",
        "firstDate2ndHalf": "2021-07-15",
        "regularSeasonEndDate": "2021-10-03",
        "postSeasonStartDate": "2021-10-04",
        "postSeasonEndDate": "2021-11-02",
        "seasonEndDate": "2021-11-02",
        "offseasonStartDate": "2021-11-03",
        "offSeasonEndDate": "2021-12-31",
        "seasonLevelGamedayType": "P",
        "gameLevelGamedayType": "P",
        "qualifierPlateAppearances": 3.1,
        "qualifierOutsPitched": 3
    },
    {
        "seasonId": "2020",
        "hasWildcard": true,
        "preSeasonStartDate": "2020-01-01",
        "preSeasonEndDate": "2020-02-20",
        "seasonStartDate": "2020-02-21",
        "springStartDate": "2020-02-21",
        "springEndDate": "2020-07-22",
        "regularSeasonStartDate": "2020-07-23",
        "lastDate1stHalf": "2020-08-25",
        "firstDate2ndHalf": "2020-08-26",
        "regularSeasonEndDate": "2020-09-27",
        "postSeasonStartDate": "2020-09-29",
        "postSeasonEndDate": "2020-10-28",
        "seasonEndDate": "2020-10-28",
        "offseasonStartDate": "2020-10-29",
        "offSeasonEndDate": "2020-12-31",
        "seasonLevelGamedayType": "P",
        "gameLevelGamedayType": "P",
        "qualifierPlateAppearances": 3.1,
        "qualifierOutsPitched": 3
    },
    {
        "seasonId": "2019",
        "hasWildcard": true,
        "preSeasonStartDate": "2019-01-01",
        "preSeasonEndDate": "2019-02-20",
        "seasonStartDate": "2019-02-21",
        "springStartDate": "2019-02-21",
        "springEndDate": "2019-03-26",
        "regularSeasonStartDate": "2019-03-20",
        "lastDate1stHalf": "2019-07-07",
        "allStarDate": "2019-07-09",
        "firstDate2ndHalf": "2019-07-11",
        "regularSeasonEndDate": "2019-09-29",
        "postSeasonStartDate": "2019-10-01",
        "postSeasonEndDate": "2019-10-30",
        "seasonEndDate": "2019-10-30",
        "offseasonStartDate": "2019-10-31",
        "offSeasonEndDate": "2019-12-31",
        "seasonLevelGamedayType": "P",
        "gameLevelGamedayType": "P",
        "qualifierPlateAppearances": 3.1,
        "qualifierOutsPitched": 3
    }
]
Get MLB seasons — CODE SNIPPETS

curl --location --request GET 'https://zylalabs.com/api/15957/mlb+api/44482/get+mlb+seasons?sport=mlb' --header 'Authorization: Bearer YOUR_API_KEY' 


    
Request
Lists the values accepted by the "sport" parameter: Major League Baseball and the levels of its minor leagues (Triple-A, Double-A, High-A, Single-A, Rookie) and the winter leagues.
Endpoint ID: 44483
GET https://zylalabs.com/api/15957/mlb+api/44483/get+mlb+sports
INPUT PARAMETERS

Free test requests remaining: 3 of 3.

This endpoint does not require any input parameters.

API EXAMPLE RESPONSE
JSON
[
    {
        "code": "mlb",
        "id": 1,
        "name": "Major League Baseball"
    },
    {
        "code": "aaa",
        "id": 11,
        "name": "Triple-A"
    },
    {
        "code": "aa",
        "id": 12,
        "name": "Double-A"
    },
    {
        "code": "high_a",
        "id": 13,
        "name": "High-A"
    },
    {
        "code": "single_a",
        "id": 14,
        "name": "Single-A"
    },
    {
        "code": "rookie",
        "id": 16,
        "name": "Rookie"
    },
    {
        "code": "winter",
        "id": 17,
        "name": "Winter Leagues"
    }
]
Get MLB sports — CODE SNIPPETS

curl --location --request GET 'https://zylalabs.com/api/15957/mlb+api/44483/get+mlb+sports' --header 'Authorization: Bearer YOUR_API_KEY' 


    
Request
Lists the values accepted by the "group" parameter.
Endpoint ID: 44484
GET https://zylalabs.com/api/15957/mlb+api/44484/get+mlb+stat+groups
INPUT PARAMETERS

Free test requests remaining: 3 of 3.

This endpoint does not require any input parameters.

API EXAMPLE RESPONSE
JSON
[
    {
        "value": "hitting",
        "label": "Hitting"
    },
    {
        "value": "pitching",
        "label": "Pitching"
    },
    {
        "value": "fielding",
        "label": "Fielding"
    },
    {
        "value": "catching",
        "label": "Catching"
    },
    {
        "value": "running",
        "label": "Base running"
    }
]
Get MLB stat groups — CODE SNIPPETS

curl --location --request GET 'https://zylalabs.com/api/15957/mlb+api/44484/get+mlb+stat+groups' --header 'Authorization: Bearer YOUR_API_KEY' 


    
Request
Returns the ballparks of a sport in a season with their location, coordinates, time zone, capacity, surface, roof and field dimensions.
Endpoint ID: 44485
GET https://zylalabs.com/api/15957/mlb+api/44485/get+mlb+venues
INPUT PARAMETERS

Get MLB venues — Endpoint Features

Object Description
sport Optional Optional sport: "mlb", "aaa", "aa", "high_a", "single_a", "rookie" or "winter" (defaults to "mlb"). Use the /general/sports endpoint to list valid values.
season Optional Optional season year (e.g. "2026"; defaults to the current season). Use the /general/seasons endpoint to list valid values.

Free test requests remaining: 3 of 3.


INPUT PARAMETERS

sport
season
API EXAMPLE RESPONSE
JSON
[
    {
        "id": 1,
        "name": "Angel Stadium",
        "location": {
            "address1": "2000 Gene Autry Way",
            "city": "Anaheim",
            "state": "California",
            "stateAbbrev": "CA",
            "postalCode": "92806",
            "defaultCoordinates": {
                "latitude": 33.80019044,
                "longitude": -117.8823996
            },
            "azimuthAngle": 43.61,
            "elevation": 151,
            "country": "USA",
            "phone": "(714) 940-2000"
        },
        "timeZone": {
            "tz": "PST",
            "id": "America/Los_Angeles",
            "offset": -8,
            "offsetAtGameTime": -8
        },
        "fieldInfo": {
            "capacity": 45517,
            "turfType": "Grass",
            "roofType": "Open",
            "leftLine": 330,
            "left": 347,
            "leftCenter": 389,
            "center": 396,
            "rightCenter": 365,
            "right": 348,
            "rightLine": 330
        },
        "active": true,
        "season": "2026"
    },
    {
        "id": 2,
        "name": "Oriole Park at Camden Yards",
        "location": {
            "address1": "333 West Camden Street",
            "city": "Baltimore",
            "state": "Maryland",
            "stateAbbrev": "MD",
            "postalCode": "21201",
            "defaultCoordinates": {
                "latitude": 39.283787,
                "longitude": -76.621689
            },
            "azimuthAngle": 31,
            "elevation": 33,
            "country": "USA",
            "phone": "(410) 685-9800"
        },
        "timeZone": {
            "tz": "EST",
            "id": "America/New_York",
            "offset": -5,
            "offsetAtGameTime": -5
        },
        "fieldInfo": {
            "capacity": 42455,
            "turfType": "Grass",
            "roofType": "Open",
            "leftLine": 333,
            "left": 363,
            "leftCenter": 376,
            "center": 410,
            "rightCenter": 373,
            "rightLine": 318
        },
        "active": true,
        "season": "2026"
    },
    {
        "id": 3,
        "name": "Fenway Park",
        "location": {
            "address1": "4 Yawkey Way",
            "city": "Boston",
            "state": "Massachusetts",
            "stateAbbrev": "MA",
            "postalCode": "02215",
            "defaultCoordinates": {
                "latitude": 42.346456,
                "longitude": -71.097441
            },
            "azimuthAngle": 45,
            "elevation": 21,
            "country": "USA",
            "phone": "(617) 267-9440"
        },
        "timeZone": {
            "tz": "EST",
            "id": "America/New_York",
            "offset": -5,
            "offsetAtGameTime": -5
        },
        "fieldInfo": {
            "capacity": 37755,
            "turfType": "Grass",
            "roofType": "Open",
            "leftLine": 310,
            "left": 379,
            "leftCenter": 390,
            "center": 420,
            "rightCenter": 380,
            "rightLine": 302
        },
        "active": true,
        "season": "2026"
    },
    {
        "id": 5380,
        "name": "CoolToday Park",
        "location": {
            "address1": "18800 S. West Villages Pkwy",
            "city": "North Port",
            "state": "Florida",
            "stateAbbrev": "FL",
            "postalCode": "34293",
            "defaultCoordinates": {
                "latitude": 27.04422,
                "longitude": -82.23593
            },
            "country": "USA"
        },
        "timeZone": {
            "tz": "EST",
            "id": "America/New_York",
            "offset": -5,
            "offsetAtGameTime": -5
        },
        "fieldInfo": {
            "capacity": 8500,
            "turfType": "Grass",
            "roofType": "Open",
            "leftLine": 335,
            "left": 385,
            "center": 400,
            "right": 375,
            "rightLine": 325
        },
        "active": true,
        "season": "2026"
    },
    {
        "id": 4,
        "name": "Rate Field",
        "location": {
            "address1": "333 West 35th Street",
            "city": "Chicago",
            "state": "Illinois",
            "stateAbbrev": "IL",
            "postalCode": "60616",
            "defaultCoordinates": {
                "latitude": 41.83,
                "longitude": -87.634167
            },
            "azimuthAngle": 127,
            "elevation": 595,
            "country": "USA",
            "phone": "(312) 674-1000"
        },
        "timeZone": {
            "tz": "CST",
            "id": "America/Chicago",
            "offset": -6,
            "offsetAtGameTime": -6
        },
        "fieldInfo": {
            "capacity": 40126,
            "turfType": "Grass",
            "roofType": "Open",
            "leftLine": 330,
            "leftCenter": 377,
            "center": 400,
            "rightCenter": 372,
            "rightLine": 335
        },
        "active": true,
        "season": "2026"
    },
    {
        "id": 5,
        "name": "Progressive Field",
        "location": {
            "address1": "2401 Ontario Street",
            "city": "Cleveland",
            "state": "Ohio",
            "stateAbbrev": "OH",
            "postalCode": "44115",
            "defaultCoordinates": {
                "latitude": 41.495861,
                "longitude": -81.685255
            },
            "azimuthAngle": 0,
            "elevation": 653,
            "country": "USA",
            "phone": "(216) 420-4200"
        },
        "timeZone": {
            "tz": "EST",
            "id": "America/New_York",
            "offset": -5,
            "offsetAtGameTime": -5
        },
        "fieldInfo": {
            "capacity": 34830,
            "turfType": "Grass",
            "roofType": "Open",
            "leftLine": 325,
            "left": 370,
            "leftCenter": 410,
            "center": 405,
            "rightCenter": 375,
            "rightLine": 325
        },
        "active": true,
        "season": "2026"
    },
    {
        "id": 7,
        "name": "Kauffman Stadium",
        "location": {
            "address1": "One Royal Way",
            "city": "Kansas City",
            "state": "Missouri",
            "stateAbbrev": "MO",
            "postalCode": "64129",
            "defaultCoordinates": {
                "latitude": 39.051567,
                "longitude": -94.480483
            },
            "azimuthAngle": 46,
            "elevation": 856,
            "country": "USA",
            "phone": "(816) 921-8000"
        },
        "timeZone": {
            "tz": "CST",
            "id": "America/Chicago",
            "offset": -6,
            "offsetAtGameTime": -6
        },
        "fieldInfo": {
            "capacity": 38179,
            "turfType": "Grass",
            "roofType": "Open",
            "leftLine": 347,
            "left": 364,
            "leftCenter": 379,
            "center": 410,
            "rightCenter": 379,
            "right": 364,
            "rightLine": 344
        },
        "active": true,
        "season": "2026"
    }
]
Get MLB venues — CODE SNIPPETS

curl --location --request GET 'https://zylalabs.com/api/15957/mlb+api/44485/get+mlb+venues?sport=mlb&season=2026' --header 'Authorization: Bearer YOUR_API_KEY' 


    
Request
Returns the winners of an award, the latest first, each with the season, the date, the player with their position, the team and the notes.
Endpoint ID: 44486
GET https://zylalabs.com/api/15957/mlb+api/44486/get+mlb+award+winners
INPUT PARAMETERS

Get MLB award winners — Endpoint Features

Object Description
award_id Required Award id (e.g. "ALMVP", "NLCY", "MLBHOF"). Use the /general/awards endpoint to list valid values.
season Optional Optional season year, for the winners of one season only (e.g. "2026"; every season when left out).

Free test requests remaining: 3 of 3.


INPUT PARAMETERS

award_id
season
API EXAMPLE RESPONSE
JSON
[
    {
        "id": "ALMVP",
        "name": "AL MVP",
        "date": "2026-11-12",
        "season": "2026",
        "team": {
            "id": 117
        },
        "player": {
            "id": 670541,
            "primaryPosition": {
                "code": "10",
                "name": "Designated Hitter",
                "type": "Hitter",
                "abbreviation": "DH"
            },
            "nameFirstLast": "Yordan Alvarez",
            "nameSlug": "yordan-alvarez-670541"
        }
    }
]
Get MLB award winners — CODE SNIPPETS

curl --location --request GET 'https://zylalabs.com/api/15957/mlb+api/44486/get+mlb+award+winners?award_id=ALMVP&season=2026' --header 'Authorization: Bearer YOUR_API_KEY' 


    
Request
Returns the picks of an MLB Draft by round, each with the pick number, the team, the player with their position, school, home town and bio, the signing bonus and the pick value.
Endpoint ID: 44487
GET https://zylalabs.com/api/15957/mlb+api/44487/get+mlb+draft
INPUT PARAMETERS

Get MLB draft — Endpoint Features

Object Description
year Optional Optional draft year (e.g. "2026"; defaults to the latest draft).
round Optional Optional round number, for the picks of one round only (e.g. "1").
team_id Optional Optional team id, for the picks of one team only (e.g. "147"). Use the /team/list endpoint to list valid values.

Free test requests remaining: 3 of 3.


INPUT PARAMETERS

year
round
team_id
API EXAMPLE RESPONSE
JSON
[
    {
        "round": "1",
        "picks": [
            {
                "bisPlayerId": 5025949,
                "pickRound": "1",
                "pickNumber": 35,
                "displayPickNumber": 35,
                "roundPickNumber": 27,
                "rank": 17,
                "pickValue": "2826700",
                "signingBonus": "2497500",
                "home": {
                    "city": "New Port Richey",
                    "state": "Florida",
                    "country": "USA"
                },
                "scoutingReport": "https://www.mlb.com/video/2026-draft-hunter-dietz-lhp?t=mlb-draft",
                "school": {
                    "name": "Arkansas",
                    "schoolClass": "4YR JR",
                    "city": "Fayetteville",
                    "country": "USA",
                    "state": "AR"
                },
                "blurb": "Dietz was part of a loaded rotation at Calvary Christian HS (Clearwater, Fla.) in 2023, pitching alongside Landen Maroudis (who signed for $1.5 million as a Blue Jays fourth-rounder) and Liam Peterson (now at Florida and a lock first-round pick). Dietz should join Peterson as a first-rounder in July despite totaling just 1 2/3 innings in his first two seasons at Arkansas. He had a stress fracture in his elbow that required surgery in the fall of 2023 and pitched twice the following spring but broke out this year with 131 strikeouts in 85 2/3 innings and a Southeastern Conference-best nine quality starts. His performance during fall practice was so spectacular that some evaluators believed Dietz was the best college left-hander in the 2026 Draft and he has cemented that status with a strong and healthy spring. He works at 94-96 mph and reaches 98 with his fastball, displaying impressive backspin and carry at times and natural cut at others. His mid-80s slider and upper-80s cutter play as plus offerings, and his low-80s curveball does as well even if it's less consistent. He barely uses a mid-80s changeup with depth. Dietz presents an unusual look for hitters, delivering pitches from a 6-foot-6 frame with a high three-quarters arm slot. After two years of little activity, he has filled the zone and finished his season with 14 strikeouts against Kansas in an NCAA regional game. He could continue to improve as he gains more experience.",
                "headshotLink": "https://img.mlbstatic.com/mlb-photos/image/upload/d_people:generic:headshot:silo:current.png/w_120,q_auto:best/v1/people/806059/headshot/draft/current",
                "person": {
                    "id": 806059,
                    "fullName": "Hunter Dietz",
                    "firstName": "Hunter",
                    "lastName": "Dietz",
                    "birthDate": "2005-03-03",
                    "currentAge": 21,
                    "birthCity": "Carmel",
                    "birthStateProvince": "IN",
                    "birthCountry": "USA",
                    "height": "6' 6\"",
                    "weight": 235,
                    "active": true,
                    "primaryPosition": {
                        "code": "1",
                        "name": "Pitcher",
                        "type": "Pitcher",
                        "abbreviation": "P"
                    },
                    "useName": "Hunter",
                    "useLastName": "Dietz",
                    "middleName": "Doyle",
                    "boxscoreName": "Dietz",
                    "gender": "M",
                    "isPlayer": true,
                    "isVerified": true,
                    "draftYear": 2026,
                    "batSide": {
                        "code": "R",
                        "description": "Right"
                    },
                    "pitchHand": {
                        "code": "L",
                        "description": "Left"
                    },
                    "nameFirstLast": "Hunter Dietz",
                    "nameSlug": "hunter-dietz-806059",
                    "firstLastName": "Hunter Dietz",
                    "lastFirstName": "Dietz, Hunter",
                    "lastInitName": "Dietz, H",
                    "initLastName": "H Dietz",
                    "fullFMLName": "Hunter Dietz",
                    "fullLFMName": "Dietz, Hunter",
                    "strikeZoneTop": 3.478,
                    "strikeZoneBottom": 1.755
                },
                "team": {
                    "springLeague": {
                        "id": 115,
                        "name": "Grapefruit League",
                        "abbreviation": "GL"
                    },
                    "allStarStatus": "N",
                    "id": 147,
                    "name": "New York Yankees"
                },
                "draftType": {
                    "code": "JR",
                    "description": "Rule 4 / June Amateur Draft"
                },
                "isDrafted": true,
                "isPass": false,
                "year": "2026"
            }
        ]
    }
]
Get MLB draft — CODE SNIPPETS

curl --location --request GET 'https://zylalabs.com/api/15957/mlb+api/44487/get+mlb+draft?year=2026&round=1&team_id=147' --header 'Authorization: Bearer YOUR_API_KEY' 


    
Request
Returns the free agents of an offseason, each with the player, their position, their original team, their new team once signed, the date they signed and notes.
Endpoint ID: 44488
GET https://zylalabs.com/api/15957/mlb+api/44488/get+mlb+free+agents
INPUT PARAMETERS

Get MLB free agents — Endpoint Features

Object Description
season Optional Optional season year the free agency follows (e.g. "2026"; defaults to the current season). Use the /general/seasons endpoint to list valid values.

Free test requests remaining: 3 of 3.


INPUT PARAMETERS

season
API EXAMPLE RESPONSE
JSON
[
    {
        "player": {
            "id": 691769,
            "fullName": "Philip Abner",
            "firstName": "Philip",
            "lastName": "Abner",
            "birthDate": "2002-05-05",
            "currentAge": 24,
            "birthCity": "Charlotte",
            "birthStateProvince": "NC",
            "birthCountry": "USA",
            "height": "6' 1\"",
            "weight": 230,
            "active": true,
            "primaryPosition": {
                "code": "1",
                "name": "Pitcher",
                "type": "Pitcher",
                "abbreviation": "P"
            },
            "useName": "Philip",
            "useLastName": "Abner",
            "middleName": "James",
            "boxscoreName": "Abner",
            "gender": "M",
            "isPlayer": true,
            "isVerified": true,
            "draftYear": 2023,
            "mlbDebutDate": "2025-09-19",
            "batSide": {
                "code": "L",
                "description": "Left"
            },
            "pitchHand": {
                "code": "L",
                "description": "Left"
            },
            "nameFirstLast": "Philip Abner",
            "nameSlug": "philip-abner-691769",
            "firstLastName": "Philip Abner",
            "lastFirstName": "Abner, Philip",
            "lastInitName": "Abner, P",
            "initLastName": "P Abner",
            "fullFMLName": "Philip James Abner",
            "fullLFMName": "Abner, Philip James",
            "strikeZoneTop": 3.41,
            "strikeZoneBottom": 1.57
        },
        "originalTeam": {
            "id": 110,
            "name": "Baltimore Orioles"
        },
        "newTeam": {
            "id": 120,
            "name": "Washington Nationals"
        },
        "notes": "Claimed off waivers.",
        "dateSigned": "2026-11-17",
        "dateDeclared": "2026-11-17",
        "position": {
            "code": "E",
            "name": "Relief Pitcher",
            "type": "Pitcher",
            "abbreviation": "RP"
        }
    },
    {
        "player": {
            "id": 650556,
            "fullName": "Bryan Abreu",
            "firstName": "Bryan",
            "lastName": "Abreu",
            "primaryNumber": "52",
            "birthDate": "1997-04-22",
            "currentAge": 29,
            "birthCity": "Santo Domingo Centro",
            "birthCountry": "Dominican Republic",
            "height": "6' 1\"",
            "weight": 230,
            "active": true,
            "primaryPosition": {
                "code": "1",
                "name": "Pitcher",
                "type": "Pitcher",
                "abbreviation": "P"
            },
            "useName": "Bryan",
            "useLastName": "Abreu",
            "middleName": "Enrique",
            "boxscoreName": "Abreu, B",
            "gender": "M",
            "nameMatrilineal": "Jimenez",
            "isPlayer": true,
            "isVerified": true,
            "mlbDebutDate": "2019-07-31",
            "batSide": {
                "code": "R",
                "description": "Right"
            },
            "pitchHand": {
                "code": "R",
                "description": "Right"
            },
            "nameFirstLast": "Bryan Abreu",
            "nameSlug": "bryan-abreu-650556",
            "firstLastName": "Bryan Abreu",
            "lastFirstName": "Abreu, Bryan",
            "lastInitName": "Abreu, B",
            "initLastName": "B Abreu",
            "fullFMLName": "Bryan Enrique Abreu",
            "fullLFMName": "Abreu, Bryan Enrique",
            "strikeZoneTop": 3.255,
            "strikeZoneBottom": 1.643
        },
        "originalTeam": {
            "id": 117,
            "name": "Houston Astros"
        },
        "newTeam": {
            "id": 135,
            "name": "San Diego Padres"
        },
        "notes": "Three-year Contract.",
        "dateSigned": "2026-11-30",
        "dateDeclared": "2026-10-29",
        "position": {
            "code": "1",
            "name": "Pitcher",
            "type": "Pitcher",
            "abbreviation": "P"
        }
    },
    {
        "player": {
            "id": 592094,
            "fullName": "Jason Adam",
            "firstName": "Jason",
            "lastName": "Adam",
            "primaryNumber": "40",
            "birthDate": "1991-08-04",
            "currentAge": 35,
            "birthCity": "Omaha",
            "birthStateProvince": "NE",
            "birthCountry": "USA",
            "height": "6' 3\"",
            "weight": 229,
            "active": true,
            "primaryPosition": {
                "code": "1",
                "name": "Pitcher",
                "type": "Pitcher",
                "abbreviation": "P"
            },
            "useName": "Jason",
            "useLastName": "Adam",
            "middleName": "Kendall",
            "boxscoreName": "Adam",
            "gender": "M",
            "isPlayer": true,
            "isVerified": true,
            "draftYear": 2010,
            "mlbDebutDate": "2018-05-05",
            "batSide": {
                "code": "R",
                "description": "Right"
            },
            "pitchHand": {
                "code": "R",
                "description": "Right"
            },
            "nameFirstLast": "Jason Adam",
            "nameSlug": "jason-adam-592094",
            "firstLastName": "Jason Adam",
            "lastFirstName": "Adam, Jason",
            "lastInitName": "Adam, J",
            "initLastName": "J Adam",
            "fullFMLName": "Jason Kendall Adam",
            "fullLFMName": "Adam, Jason Kendall",
            "strikeZoneTop": 3.344,
            "strikeZoneBottom": 1.688
        },
        "originalTeam": {
            "id": 135,
            "name": "San Diego Padres"
        },
        "newTeam": [],
        "dateDeclared": "2026-10-29",
        "position": {
            "code": "E",
            "name": "Relief Pitcher",
            "type": "Pitcher",
            "abbreviation": "RP"
        }
    }
]
Get MLB free agents — CODE SNIPPETS

curl --location --request GET 'https://zylalabs.com/api/15957/mlb+api/44488/get+mlb+free+agents?season=2026' --header 'Authorization: Bearer YOUR_API_KEY' 


    
Request
Returns the leaders of a statistic over a season, each with their rank, value, team and league.
Endpoint ID: 44489
GET https://zylalabs.com/api/15957/mlb+api/44489/get+mlb+league+leaders
INPUT PARAMETERS

Get MLB league leaders — Endpoint Features

Object Description
category Required Leader category (e.g. "homeRuns", "battingAverage", "earnedRunAverage", "strikeouts"). Use the /general/leader-categories endpoint to list valid values.
group Optional Optional stat group the category counts in, for a category shared by several (e.g. "pitching" for the strikeouts of pitchers; every group when left out). Use the /general/stat-groups endpoint to list valid values.
league Optional Optional league: "al" (American League) or "nl" (National League) (both when left out).
season Optional Optional season year (e.g. "2026"; defaults to the current season). Use the /general/seasons endpoint to list valid values.
game_type Optional Optional game type (defaults to "regular_season"). Use the /general/game-types endpoint to list valid values.
pool Optional Optional player pool (defaults to "qualified"). Use the /general/player-pools endpoint to list valid values.
sport Optional Optional sport: "mlb", "aaa", "aa", "high_a", "single_a", "rookie" or "winter" (defaults to "mlb"). Use the /general/sports endpoint to list valid values.
limit Optional Optional number of leaders, from 1 to 100 (defaults to 10).

Free test requests remaining: 3 of 3.


INPUT PARAMETERS

category
group
league
season
game_type
pool
sport
limit
API EXAMPLE RESPONSE
JSON
[
    {
        "leaderCategory": "homeRuns",
        "season": "2026",
        "gameType": {
            "id": "R",
            "description": "Regular Season"
        },
        "leaders": [
            {
                "rank": 1,
                "value": "43",
                "team": {
                    "id": 110,
                    "name": "Baltimore Orioles"
                },
                "league": {
                    "id": 103,
                    "name": "AL"
                },
                "person": {
                    "id": 624413,
                    "fullName": "Pete Alonso",
                    "firstName": "Pete",
                    "lastName": "Alonso",
                    "nameSlug": "pete-alonso-624413"
                },
                "sport": {
                    "id": 1,
                    "abbreviation": "MLB"
                },
                "season": "2026",
                "numTeams": 1
            },
            {
                "rank": 2,
                "value": "42",
                "team": {
                    "id": 117,
                    "name": "Houston Astros"
                },
                "league": {
                    "id": 103,
                    "name": "AL"
                },
                "person": {
                    "id": 670541,
                    "fullName": "Yordan Alvarez",
                    "firstName": "Yordan",
                    "lastName": "Alvarez",
                    "nameSlug": "yordan-alvarez-670541"
                },
                "sport": {
                    "id": 1,
                    "abbreviation": "MLB"
                },
                "season": "2026",
                "numTeams": 1
            },
            {
                "rank": 2,
                "value": "42",
                "team": {
                    "id": 139,
                    "name": "Tampa Bay Rays"
                },
                "league": {
                    "id": 103,
                    "name": "AL"
                },
                "person": {
                    "id": 691406,
                    "fullName": "Junior Caminero",
                    "firstName": "Junior",
                    "lastName": "Caminero",
                    "nameSlug": "junior-caminero-691406"
                },
                "sport": {
                    "id": 1,
                    "abbreviation": "MLB"
                },
                "season": "2026",
                "numTeams": 1
            },
            {
                "rank": 4,
                "value": "41",
                "team": {
                    "id": 147,
                    "name": "New York Yankees"
                },
                "league": {
                    "id": 103,
                    "name": "AL"
                },
                "person": {
                    "id": 700250,
                    "fullName": "Ben Rice",
                    "firstName": "Ben",
                    "lastName": "Rice",
                    "nameSlug": "ben-rice-700250"
                },
                "sport": {
                    "id": 1,
                    "abbreviation": "MLB"
                },
                "season": "2026",
                "numTeams": 1
            },
            {
                "rank": 5,
                "value": "35",
                "team": {
                    "id": 145,
                    "name": "Chicago White Sox"
                },
                "league": {
                    "id": 103,
                    "name": "AL"
                },
                "person": {
                    "id": 808959,
                    "fullName": "Munetaka Murakami",
                    "firstName": "Munetaka",
                    "lastName": "Murakami",
                    "nameSlug": "munetaka-murakami-808959"
                },
                "sport": {
                    "id": 1,
                    "abbreviation": "MLB"
                },
                "season": "2026",
                "numTeams": 1
            },
            {
                "rank": 6,
                "value": "33",
                "team": {
                    "id": 141,
                    "name": "Toronto Blue Jays"
                },
                "league": {
                    "id": 103,
                    "name": "AL"
                },
                "person": {
                    "id": 672960,
                    "fullName": "Kazuma Okamoto",
                    "firstName": "Kazuma",
                    "lastName": "Okamoto",
                    "nameSlug": "kazuma-okamoto-672960"
                },
                "sport": {
                    "id": 1,
                    "abbreviation": "MLB"
                },
                "season": "2026",
                "numTeams": 1
            },
            {
                "rank": 6,
                "value": "33",
                "team": {
                    "id": 145,
                    "name": "Chicago White Sox"
                },
                "league": {
                    "id": 103,
                    "name": "AL"
                },
                "person": {
                    "id": 678246,
                    "fullName": "Miguel Vargas",
                    "firstName": "Miguel",
                    "lastName": "Vargas",
                    "nameSlug": "miguel-vargas-678246"
                },
                "sport": {
                    "id": 1,
                    "abbreviation": "MLB"
                },
                "season": "2026",
                "numTeams": 1
            },
            {
                "rank": 8,
                "value": "31",
                "team": {
                    "id": 145,
                    "name": "Chicago White Sox"
                },
                "league": {
                    "id": 103,
                    "name": "AL"
                },
                "person": {
                    "id": 695657,
                    "fullName": "Colson Montgomery",
                    "firstName": "Colson",
                    "lastName": "Montgomery",
                    "nameSlug": "colson-montgomery-695657"
                },
                "sport": {
                    "id": 1,
                    "abbreviation": "MLB"
                },
                "season": "2026",
                "numTeams": 1
            },
            {
                "rank": 9,
                "value": "29",
                "team": {
                    "id": 117,
                    "name": "Houston Astros"
                },
                "league": {
                    "id": 103,
                    "name": "AL"
                },
                "person": {
                    "id": 572233,
                    "fullName": "Christian Walker",
                    "firstName": "Christian",
                    "lastName": "Walker",
                    "nameSlug": "christian-walker-572233"
                },
                "sport": {
                    "id": 1,
                    "abbreviation": "MLB"
                },
                "season": "2026",
                "numTeams": 1
            },
            {
                "rank": 10,
                "value": "28",
                "team": {
                    "id": 140,
                    "name": "Texas Rangers"
                },
                "league": {
                    "id": 103,
                    "name": "AL"
                },
                "person": {
                    "id": 669394,
                    "fullName": "Jake Burger",
                    "firstName": "Jake",
                    "lastName": "Burger",
                    "nameSlug": "jake-burger-669394"
                },
                "sport": {
                    "id": 1,
                    "abbreviation": "MLB"
                },
                "season": "2026",
                "numTeams": 1
            }
        ],
        "statGroup": "hitting",
        "league": {
            "id": 103,
            "name": "AL"
        },
        "totalSplits": 64
    }
]
Get MLB league leaders — CODE SNIPPETS

curl --location --request GET 'https://zylalabs.com/api/15957/mlb+api/44489/get+mlb+league+leaders?category=homeRuns&group=hitting&league=al&season=2026&game_type=regular_season&pool=qualified&sport=mlb&limit=10' --header 'Authorization: Bearer YOUR_API_KEY' 


    
Request
Returns the season statistics of every player of a sport, league, team or position, sorted by any statistic, each with their rank, team, position and full hitting, pitching or fielding line. 50 players a page.
Endpoint ID: 44490
GET https://zylalabs.com/api/15957/mlb+api/44490/get+mlb+player+statistics+leaderboard
INPUT PARAMETERS

Get MLB player statistics leaderboard — Endpoint Features

Object Description
group Optional Optional stat group (defaults to "hitting"). Use the /general/stat-groups endpoint to list valid values.
sort Optional Optional statistic to sort by, as the results name it (e.g. "homeRuns", "avg", "ops", "era", "strikeOuts", "whip"; defaults to "homeRuns" for hitting, "era" for pitching and "fielding" for fielding).
order Optional Optional sort order: "desc" or "asc" (defaults to "desc", or "asc" for "era" and "whip"). Use the /general/sort-orders endpoint to list valid values.
league Optional Optional league: "al" (American League) or "nl" (National League) (both when left out).
team_id Optional Optional team id, for the players of one team only (e.g. "147"). Use the /team/list endpoint to list valid values.
position Optional Optional position abbreviation (e.g. "SS", "C", "OF"). Use the /general/positions endpoint to list valid values.
season Optional Optional season year (e.g. "2026"; defaults to the current season). Use the /general/seasons endpoint to list valid values.
game_type Optional Optional game type (defaults to "regular_season"). Use the /general/game-types endpoint to list valid values.
pool Optional Optional player pool (defaults to "qualified"). Use the /general/player-pools endpoint to list valid values.
sport Optional Optional sport: "mlb", "aaa", "aa", "high_a", "single_a", "rookie" or "winter" (defaults to "mlb"). Use the /general/sports endpoint to list valid values.
page Optional Optional page number, from 1 to 40 (defaults to 1).

Free test requests remaining: 3 of 3.


INPUT PARAMETERS

group
sort
order
league
team_id
position
season
game_type
pool
sport
page
API EXAMPLE RESPONSE
JSON
{
    "total": 65,
    "page": 1,
    "per_page": 50,
    "has_more": true,
    "results": [
        {
            "season": "2026",
            "stat": {
                "age": 31,
                "gamesPlayed": 161,
                "groundOuts": 135,
                "airOuts": 142,
                "runs": 100,
                "doubles": 24,
                "triples": 0,
                "homeRuns": 43,
                "strikeOuts": 169,
                "baseOnBalls": 81,
                "intentionalWalks": 6,
                "hits": 161,
                "hitByPitch": 12,
                "avg": ".267",
                "atBats": 602,
                "obp": ".363",
                "slg": ".522",
                "ops": ".885",
                "caughtStealing": 1,
                "stolenBases": 5,
                "stolenBasePercentage": ".833",
                "caughtStealingPercentage": ".167",
                "groundIntoDoublePlay": 13,
                "numberOfPitches": 2861,
                "plateAppearances": 700,
                "totalBases": 314,
                "rbi": 113,
                "leftOnBase": 257,
                "sacBunts": 0,
                "sacFlies": 5,
                "babip": ".299",
                "groundOutsToAirouts": "0.95",
                "catchersInterference": 0,
                "atBatsPerHomeRun": "14.00"
            },
            "team": {
                "id": 110,
                "name": "Baltimore Orioles"
            },
            "player": {
                "id": 624413,
                "fullName": "Pete Alonso",
                "firstName": "Pete",
                "lastName": "Alonso",
                "nameSlug": "pete-alonso-624413"
            },
            "league": {
                "id": 103,
                "name": "AL"
            },
            "sport": {
                "id": 1,
                "abbreviation": "MLB"
            },
            "numTeams": 1,
            "rank": 1,
            "position": {
                "code": "3",
                "name": "First Base",
                "type": "Infielder",
                "abbreviation": "1B"
            }
        },
        {
            "season": "2026",
            "stat": {
                "age": 29,
                "gamesPlayed": 158,
                "groundOuts": 95,
                "airOuts": 178,
                "runs": 105,
                "doubles": 34,
                "triples": 1,
                "homeRuns": 42,
                "strikeOuts": 120,
                "baseOnBalls": 109,
                "intentionalWalks": 33,
                "hits": 179,
                "hitByPitch": 11,
                "avg": ".316",
                "atBats": 567,
                "obp": ".432",
                "slg": ".601",
                "ops": "1.033",
                "caughtStealing": 0,
                "stolenBases": 1,
                "stolenBasePercentage": "1.000",
                "caughtStealingPercentage": ".000",
                "groundIntoDoublePlay": 7,
                "numberOfPitches": 2628,
                "plateAppearances": 692,
                "totalBases": 341,
                "rbi": 106,
                "leftOnBase": 174,
                "sacBunts": 0,
                "sacFlies": 5,
                "babip": ".334",
                "groundOutsToAirouts": "0.53",
                "catchersInterference": 0,
                "atBatsPerHomeRun": "13.50"
            },
            "team": {
                "id": 117,
                "name": "Houston Astros"
            },
            "player": {
                "id": 670541,
                "fullName": "Yordan Alvarez",
                "firstName": "Yordan",
                "lastName": "Alvarez",
                "nameSlug": "yordan-alvarez-670541"
            },
            "league": {
                "id": 103,
                "name": "AL"
            },
            "sport": {
                "id": 1,
                "abbreviation": "MLB"
            },
            "numTeams": 1,
            "rank": 2,
            "position": {
                "code": "10",
                "name": "Designated Hitter",
                "type": "Hitter",
                "abbreviation": "DH"
            }
        },
        {
            "season": "2026",
            "stat": {
                "age": 22,
                "gamesPlayed": 162,
                "groundOuts": 183,
                "airOuts": 137,
                "runs": 100,
                "doubles": 25,
                "triples": 1,
                "homeRuns": 42,
                "strikeOuts": 129,
                "baseOnBalls": 79,
                "intentionalWalks": 14,
                "hits": 170,
                "hitByPitch": 4,
                "avg": ".276",
                "atBats": 616,
                "obp": ".360",
                "slg": ".524",
                "ops": ".884",
                "caughtStealing": 3,
                "stolenBases": 3,
                "stolenBasePercentage": ".500",
                "caughtStealingPercentage": ".500",
                "groundIntoDoublePlay": 26,
                "numberOfPitches": 2711,
                "plateAppearances": 702,
                "totalBases": 323,
                "rbi": 101,
                "leftOnBase": 257,
                "sacBunts": 0,
                "sacFlies": 3,
                "babip": ".286",
                "groundOutsToAirouts": "1.34",
                "catchersInterference": 0,
                "atBatsPerHomeRun": "14.67"
            },
            "team": {
                "id": 139,
                "name": "Tampa Bay Rays"
            },
            "player": {
                "id": 691406,
                "fullName": "Junior Caminero",
                "firstName": "Junior",
                "lastName": "Caminero",
                "nameSlug": "junior-caminero-691406"
            },
            "league": {
                "id": 103,
                "name": "AL"
            },
            "sport": {
                "id": 1,
                "abbreviation": "MLB"
            },
            "numTeams": 1,
            "rank": 2,
            "position": {
                "code": "5",
                "name": "Third Base",
                "type": "Infielder",
                "abbreviation": "3B"
            }
        }
    ]
}
Get MLB player statistics leaderboard — CODE SNIPPETS

curl --location --request GET 'https://zylalabs.com/api/15957/mlb+api/44490/get+mlb+player+statistics+leaderboard?group=hitting&sort=homeRuns&order=desc&league=al&season=2026&game_type=regular_season&sport=mlb' --header 'Authorization: Bearer YOUR_API_KEY' 


    
Request
Returns the postseason series of a season, from the Wild Card Series to the World Series, each with its games, their scores, linescores and winning and losing pitchers.
Endpoint ID: 44491
GET https://zylalabs.com/api/15957/mlb+api/44491/get+mlb+postseason
INPUT PARAMETERS

Get MLB postseason — Endpoint Features

Object Description
season Optional Optional season year (e.g. "2026"; defaults to the current season). Use the /general/seasons endpoint to list valid values.

Free test requests remaining: 3 of 3.


INPUT PARAMETERS

season
API EXAMPLE RESPONSE
JSON
[
    {
        "series": {
            "id": "W_1",
            "sortNumber": 1,
            "isDefault": true,
            "gameType": "W"
        },
        "totalItems": 5,
        "totalGames": 5
    }
]
Get MLB postseason — CODE SNIPPETS

curl --location --request GET 'https://zylalabs.com/api/15957/mlb+api/44491/get+mlb+postseason?season=2026' --header 'Authorization: Bearer YOUR_API_KEY' 


    
Request
Returns the standings of the American and National League by division, the wild card race, the division leaders, spring training or the whole league, each team with its wins, losses, percentage, games back, wild card games back, streak, run differential, runs scored and allowed, clinch status and its record at home, away, by month, against each division and in one-run and extra-inning games.
Endpoint ID: 44492
GET https://zylalabs.com/api/15957/mlb+api/44492/get+mlb+standings
INPUT PARAMETERS

Get MLB standings — Endpoint Features

Object Description
league Optional Optional league: "al" (American League), "nl" (National League) or "all" (defaults to "all").
type Optional Optional standings type (defaults to "regular_season"). Use the /general/standings-types endpoint to list valid values.
season Optional Optional season year (e.g. "2026"; defaults to the current season). Use the /general/seasons endpoint to list valid values.
date Optional Optional date in the YYYY-MM-DD format, for the standings as they were on that day (e.g. "2026-07-01").

Free test requests remaining: 3 of 3.


INPUT PARAMETERS

league
type
season
date
API EXAMPLE RESPONSE
JSON
[
    {
        "standingsType": "regularSeason",
        "league": {
            "id": 103
        },
        "division": {
            "id": 201
        },
        "sport": {
            "id": 1
        },
        "roundRobin": {
            "status": "false"
        },
        "lastUpdated": "2026-11-20T15:39:56.554Z",
        "teamRecords": [
            {
                "team": {
                    "springLeague": {
                        "id": 115,
                        "name": "Grapefruit League",
                        "abbreviation": "GL"
                    },
                    "allStarStatus": "N",
                    "id": 139,
                    "name": "Tampa Bay Rays",
                    "season": 2026,
                    "venue": {
                        "id": 12,
                        "name": "Tropicana Field"
                    },
                    "springVenue": {
                        "id": 2534
                    },
                    "teamCode": "tba",
                    "fileCode": "tb",
                    "abbreviation": "TB",
                    "teamName": "Rays",
                    "locationName": "St. Petersburg",
                    "firstYearOfPlay": "1996",
                    "league": {
                        "id": 103,
                        "name": "American League",
                        "abbreviation": "AL",
                        "nameShort": "American",
                        "seasonState": "offseason",
                        "hasWildCard": true,
                        "hasSplitSeason": false,
                        "numGames": 162,
                        "hasPlayoffPoints": false,
                        "numTeams": 15,
                        "numWildcardTeams": 3,
                        "seasonDateInfo": {
                            "seasonId": "2026",
                            "preSeasonStartDate": "2026-01-01",
                            "preSeasonEndDate": "2026-02-19",
                            "seasonStartDate": "2026-02-20",
                            "springStartDate": "2026-02-20",
                            "springEndDate": "2026-03-24",
                            "regularSeasonStartDate": "2026-03-25",
                            "lastDate1stHalf": "2026-07-12",
                            "allStarDate": "2026-07-14",
                            "firstDate2ndHalf": "2026-07-16",
                            "regularSeasonEndDate": "2026-09-27",
                            "postSeasonStartDate": "2026-09-28",
                            "postSeasonEndDate": "2026-10-31",
                            "seasonEndDate": "2026-10-31",
                            "offseasonStartDate": "2026-11-01",
                            "offSeasonEndDate": "2026-12-31",
                            "seasonLevelGamedayType": "P",
                            "gameLevelGamedayType": "P",
                            "qualifierPlateAppearances": 3.1,
                            "qualifierOutsPitched": 3
                        },
                        "season": "2026",
                        "orgCode": "AL",
                        "conferencesInUse": false,
                        "divisionsInUse": true,
                        "sport": {
                            "id": 1
                        },
                        "sortOrder": 21,
                        "active": true
                    },
                    "division": {
                        "id": 201,
                        "name": "American League East",
                        "season": "2026",
                        "nameShort": "AL East",
                        "abbreviation": "ALE",
                        "league": {
                            "id": 103
                        },
                        "sport": {
                            "id": 1
                        },
                        "hasWildcard": false,
                        "sortOrder": 22,
                        "numPlayoffTeams": 1,
                        "active": true
                    },
                    "sport": {
                        "id": 1,
                        "name": "Major League Baseball"
                    },
                    "shortName": "Tampa Bay",
                    "franchiseName": "Tampa Bay",
                    "clubName": "Rays",
                    "active": true
                },
                "season": "2026",
                "streak": {
                    "streakCode": "W7",
                    "streakType": "wins",
                    "streakNumber": 7
                },
                "divisionRank": "1",
                "leagueRank": "1",
                "sportRank": "3",
                "gamesPlayed": 83,
                "gamesBack": "-",
                "wildCardGamesBack": "-",
                "leagueGamesBack": "-",
                "springLeagueGamesBack": "-",
                "sportGamesBack": "4.0",
                "divisionGamesBack": "-",
                "conferenceGamesBack": "-",
                "leagueRecord": {
                    "wins": 50,
                    "losses": 33,
                    "ties": 0,
                    "pct": ".602"
                },
                "lastUpdated": "2026-10-23T20:52:56Z",
                "records": {
                    "splitRecords": [
                        {
                            "wins": 31,
                            "losses": 12,
                            "type": "home",
                            "pct": ".721"
                        },
                        {
                            "wins": 19,
                            "losses": 21,
                            "type": "away",
                            "pct": ".475"
                        },
                        {
                            "wins": 19,
                            "losses": 7,
                            "type": "left",
                            "pct": ".731"
                        },
                        {
                            "wins": 12,
                            "losses": 1,
                            "type": "leftHome",
                            "pct": ".923"
                        }
                    ],
                    "divisionRecords": [
                        {
                            "wins": 3,
                            "losses": 3,
                            "pct": ".500",
                            "division": {
                                "id": 200,
                                "name": "American League West"
                            }
                        }
                    ],
                    "overallRecords": [
                        {
                            "wins": 31,
                            "losses": 12,
                            "type": "home",
                            "pct": ".721"
                        },
                        {
                            "wins": 19,
                            "losses": 21,
                            "type": "away",
                            "pct": ".475"
                        }
                    ],
                    "leagueRecords": [
                        {
                            "wins": 34,
                            "losses": 16,
                            "pct": ".680",
                            "league": {
                                "id": 103,
                                "name": "American League"
                            }
                        },
                        {
                            "wins": 16,
                            "losses": 17,
                            "pct": ".485",
                            "league": {
                                "id": 104,
                                "name": "National League"
                            }
                        }
                    ],
                    "expectedRecords": [
                        {
                            "wins": 45,
                            "losses": 38,
                            "type": "xWinLoss",
                            "pct": ".542"
                        },
                        {
                            "wins": 88,
                            "losses": 74,
                            "type": "xWinLossSeason",
                            "pct": ".543"
                        }
                    ]
                },
                "runsAllowed": 346,
                "runsScored": 380,
                "divisionChamp": false,
                "divisionLeader": true,
                "hasWildcard": true,
                "clinched": false,
                "eliminationNumber": "-",
                "eliminationNumberSport": "-",
                "eliminationNumberLeague": "-",
                "eliminationNumberDivision": "-",
                "eliminationNumberConference": "-",
                "wildCardEliminationNumber": "-",
                "magicNumber": "68",
                "wins": 50,
                "losses": 33,
                "runDifferential": 34,
                "winningPercentage": ".602"
            }
        ]
    }
]
Get MLB standings — CODE SNIPPETS

curl --location --request GET 'https://zylalabs.com/api/15957/mlb+api/44492/get+mlb+standings?league=all&type=regular_season&season=2026&date=2026-07-01' --header 'Authorization: Bearer YOUR_API_KEY' 


    
Request
Returns the season hitting, pitching, fielding, catching or base running statistics of every team of a sport or league, each with its rank.
Endpoint ID: 44493
GET https://zylalabs.com/api/15957/mlb+api/44493/get+mlb+team+statistics+leaderboard
INPUT PARAMETERS

Get MLB team statistics leaderboard — Endpoint Features

Object Description
group Optional Optional stat group (defaults to "hitting"). Use the /general/stat-groups endpoint to list valid values.
league Optional Optional league: "al" (American League) or "nl" (National League) (both when left out).
season Optional Optional season year (e.g. "2026"; defaults to the current season). Use the /general/seasons endpoint to list valid values.
game_type Optional Optional game type (defaults to "regular_season"). Use the /general/game-types endpoint to list valid values.
sport Optional Optional sport: "mlb", "aaa", "aa", "high_a", "single_a", "rookie" or "winter" (defaults to "mlb"). Use the /general/sports endpoint to list valid values.

Free test requests remaining: 3 of 3.


INPUT PARAMETERS

group
league
season
game_type
sport
API EXAMPLE RESPONSE
JSON
[
    {
        "season": "2026",
        "stat": {
            "gamesPlayed": 162,
            "groundOuts": 1462,
            "airOuts": 1519,
            "runs": 736,
            "doubles": 230,
            "triples": 22,
            "homeRuns": 169,
            "strikeOuts": 1145,
            "baseOnBalls": 514,
            "intentionalWalks": 27,
            "hits": 1405,
            "hitByPitch": 58,
            "avg": ".258",
            "atBats": 5444,
            "obp": ".326",
            "slg": ".402",
            "ops": ".728",
            "caughtStealing": 54,
            "stolenBases": 164,
            "stolenBasePercentage": ".752",
            "caughtStealingPercentage": ".248",
            "groundIntoDoublePlay": 111,
            "numberOfPitches": 22987,
            "plateAppearances": 6106,
            "totalBases": 2186,
            "rbi": 700,
            "leftOnBase": 1112,
            "sacBunts": 45,
            "sacFlies": 42,
            "babip": ".296",
            "groundOutsToAirouts": "0.96",
            "catchersInterference": 3,
            "atBatsPerHomeRun": "32.21"
        },
        "team": {
            "id": 139,
            "name": "Tampa Bay Rays"
        },
        "rank": 1
    },
    {
        "season": "2026",
        "stat": {
            "gamesPlayed": 162,
            "groundOuts": 1248,
            "airOuts": 1646,
            "runs": 690,
            "doubles": 293,
            "triples": 19,
            "homeRuns": 170,
            "strikeOuts": 1272,
            "baseOnBalls": 512,
            "intentionalWalks": 21,
            "hits": 1346,
            "hitByPitch": 57,
            "avg": ".248",
            "atBats": 5438,
            "obp": ".316",
            "slg": ".402",
            "ops": ".718",
            "caughtStealing": 32,
            "stolenBases": 130,
            "stolenBasePercentage": ".802",
            "caughtStealingPercentage": ".198",
            "groundIntoDoublePlay": 102,
            "numberOfPitches": 23164,
            "plateAppearances": 6083,
            "totalBases": 2187,
            "rbi": 656,
            "leftOnBase": 1103,
            "sacBunts": 28,
            "sacFlies": 46,
            "babip": ".291",
            "groundOutsToAirouts": "0.76",
            "catchersInterference": 2,
            "atBatsPerHomeRun": "31.99"
        },
        "team": {
            "id": 118,
            "name": "Kansas City Royals"
        },
        "rank": 2
    },
    {
        "season": "2026",
        "stat": {
            "gamesPlayed": 162,
            "groundOuts": 1454,
            "airOuts": 1573,
            "runs": 648,
            "doubles": 259,
            "triples": 8,
            "homeRuns": 152,
            "strikeOuts": 1149,
            "baseOnBalls": 459,
            "intentionalWalks": 15,
            "hits": 1346,
            "hitByPitch": 60,
            "avg": ".247",
            "atBats": 5447,
            "obp": ".310",
            "slg": ".381",
            "ops": ".691",
            "caughtStealing": 17,
            "stolenBases": 75,
            "stolenBasePercentage": ".815",
            "caughtStealingPercentage": ".185",
            "groundIntoDoublePlay": 129,
            "numberOfPitches": 23034,
            "plateAppearances": 6044,
            "totalBases": 2077,
            "rbi": 615,
            "leftOnBase": 1106,
            "sacBunts": 24,
            "sacFlies": 50,
            "babip": ".285",
            "groundOutsToAirouts": "0.92",
            "catchersInterference": 3,
            "atBatsPerHomeRun": "35.84"
        },
        "team": {
            "id": 141,
            "name": "Toronto Blue Jays"
        },
        "rank": 3
    },
    {
        "season": "2026",
        "stat": {
            "gamesPlayed": 162,
            "groundOuts": 1364,
            "airOuts": 1479,
            "runs": 689,
            "doubles": 285,
            "triples": 26,
            "homeRuns": 163,
            "strikeOuts": 1326,
            "baseOnBalls": 517,
            "intentionalWalks": 13,
            "hits": 1327,
            "hitByPitch": 95,
            "avg": ".245",
            "atBats": 5414,
            "obp": ".319",
            "slg": ".398",
            "ops": ".717",
            "caughtStealing": 39,
            "stolenBases": 107,
            "stolenBasePercentage": ".733",
            "caughtStealingPercentage": ".267",
            "groundIntoDoublePlay": 98,
            "numberOfPitches": 23523,
            "plateAppearances": 6112,
            "totalBases": 2153,
            "rbi": 658,
            "leftOnBase": 1135,
            "sacBunts": 36,
            "sacFlies": 46,
            "babip": ".293",
            "groundOutsToAirouts": "0.92",
            "catchersInterference": 4,
            "atBatsPerHomeRun": "33.22"
        },
        "team": {
            "id": 111,
            "name": "Boston Red Sox"
        },
        "rank": 4
    },
    {
        "season": "2026",
        "stat": {
            "gamesPlayed": 162,
            "groundOuts": 1441,
            "airOuts": 1375,
            "runs": 699,
            "doubles": 244,
            "triples": 17,
            "homeRuns": 194,
            "strikeOuts": 1373,
            "baseOnBalls": 520,
            "intentionalWalks": 18,
            "hits": 1345,
            "hitByPitch": 70,
            "avg": ".245",
            "atBats": 5488,
            "obp": ".317",
            "slg": ".402",
            "ops": ".719",
            "caughtStealing": 32,
            "stolenBases": 91,
            "stolenBasePercentage": ".740",
            "caughtStealingPercentage": ".260",
            "groundIntoDoublePlay": 130,
            "numberOfPitches": 23363,
            "plateAppearances": 6126,
            "totalBases": 2205,
            "rbi": 670,
            "leftOnBase": 1110,
            "sacBunts": 21,
            "sacFlies": 25,
            "babip": ".292",
            "groundOutsToAirouts": "1.05",
            "catchersInterference": 2,
            "atBatsPerHomeRun": "28.29"
        },
        "team": {
            "id": 133,
            "name": "Athletics"
        },
        "rank": 5
    },
    {
        "season": "2026",
        "stat": {
            "gamesPlayed": 162,
            "groundOuts": 1275,
            "airOuts": 1618,
            "runs": 739,
            "doubles": 256,
            "triples": 26,
            "homeRuns": 187,
            "strikeOuts": 1297,
            "baseOnBalls": 507,
            "intentionalWalks": 10,
            "hits": 1337,
            "hitByPitch": 92,
            "avg": ".245",
            "atBats": 5468,
            "obp": ".317",
            "slg": ".403",
            "ops": ".720",
            "caughtStealing": 37,
            "stolenBases": 91,
            "stolenBasePercentage": ".711",
            "caughtStealingPercentage": ".289",
            "groundIntoDoublePlay": 108,
            "numberOfPitches": 23634,
            "plateAppearances": 6127,
            "totalBases": 2206,
            "rbi": 707,
            "leftOnBase": 1092,
            "sacBunts": 11,
            "sacFlies": 47,
            "babip": ".285",
            "groundOutsToAirouts": "0.79",
            "catchersInterference": 1,
            "atBatsPerHomeRun": "29.24"
        },
        "team": {
            "id": 142,
            "name": "Minnesota Twins"
        },
        "rank": 6
    },
    {
        "season": "2026",
        "stat": {
            "gamesPlayed": 162,
            "groundOuts": 1304,
            "airOuts": 1549,
            "runs": 734,
            "doubles": 238,
            "triples": 21,
            "homeRuns": 226,
            "strikeOuts": 1343,
            "baseOnBalls": 530,
            "intentionalWalks": 41,
            "hits": 1320,
            "hitByPitch": 74,
            "avg": ".242",
            "atBats": 5457,
            "obp": ".315",
            "slg": ".417",
            "ops": ".732",
            "caughtStealing": 22,
            "stolenBases": 50,
            "stolenBasePercentage": ".694",
            "caughtStealingPercentage": ".306",
            "groundIntoDoublePlay": 107,
            "numberOfPitches": 23766,
            "plateAppearances": 6122,
            "totalBases": 2278,
            "rbi": 701,
            "leftOnBase": 1095,
            "sacBunts": 18,
            "sacFlies": 41,
            "babip": ".278",
            "groundOutsToAirouts": "0.84",
            "catchersInterference": 2,
            "atBatsPerHomeRun": "24.15"
        },
        "team": {
            "id": 117,
            "name": "Houston Astros"
        },
        "rank": 7
    }
]
Get MLB team statistics leaderboard — CODE SNIPPETS

curl --location --request GET 'https://zylalabs.com/api/15957/mlb+api/44493/get+mlb+team+statistics+leaderboard?group=hitting&league=al&season=2026&game_type=regular_season&sport=mlb' --header 'Authorization: Bearer YOUR_API_KEY' 


    
Request
Returns the transactions of every major league club between two dates, the latest first: trades, signings, releases, assignments, injured list moves, recalls and options, each with the player, the teams and its description.
Endpoint ID: 44494
GET https://zylalabs.com/api/15957/mlb+api/44494/get+mlb+transactions
INPUT PARAMETERS

Get MLB transactions — Endpoint Features

Object Description
start_date Optional Optional first date in the YYYY-MM-DD format (defaults to 6 days before "end_date"). At most 31 days before "end_date".
end_date Optional Optional last date in the YYYY-MM-DD format (defaults to today).

Free test requests remaining: 3 of 3.


INPUT PARAMETERS

start_date
end_date
API EXAMPLE RESPONSE
JSON
[
    {
        "id": 933662,
        "person": {
            "id": 692437,
            "fullName": "Winston Santos",
            "nameSlug": "winston-santos-692437"
        },
        "fromTeam": {
            "id": 140,
            "name": "Texas Rangers"
        },
        "toTeam": {
            "id": 102,
            "name": "Round Rock Express"
        },
        "date": "2026-07-31",
        "effectiveDate": "2026-07-31",
        "typeCode": "OPT",
        "typeDesc": "Optioned",
        "description": "Texas Rangers optioned RHP Winston Santos to Round Rock Express."
    },
    {
        "id": 933640,
        "person": {
            "id": 702752,
            "fullName": "Jonathan Pintaro",
            "nameSlug": "jonathan-pintaro-702752"
        },
        "fromTeam": {
            "id": 552,
            "name": "Syracuse Mets"
        },
        "toTeam": {
            "id": 121,
            "name": "New York Mets"
        },
        "date": "2026-07-31",
        "effectiveDate": "2026-07-31",
        "typeCode": "CU",
        "typeDesc": "Recalled",
        "description": "New York Mets recalled RHP Jonathan Pintaro from Syracuse Mets."
    },
    {
        "id": 933660,
        "person": {
            "id": 681168,
            "fullName": "Luis Curvelo",
            "nameSlug": "luis-curvelo-681168"
        },
        "fromTeam": {
            "id": 102,
            "name": "Round Rock Express"
        },
        "toTeam": {
            "id": 140,
            "name": "Texas Rangers"
        },
        "date": "2026-07-31",
        "effectiveDate": "2026-07-31",
        "typeCode": "CU",
        "typeDesc": "Recalled",
        "description": "Texas Rangers recalled RHP Luis Curvelo from Round Rock Express."
    },
    {
        "id": 933650,
        "person": {
            "id": 662144,
            "fullName": "Brian Keller",
            "nameSlug": "brian-keller-662144"
        },
        "fromTeam": {
            "id": 143,
            "name": "Philadelphia Phillies"
        },
        "toTeam": {
            "id": 1410,
            "name": "Lehigh Valley IronPigs"
        },
        "date": "2026-07-31",
        "effectiveDate": "2026-07-31",
        "typeCode": "OPT",
        "typeDesc": "Optioned",
        "description": "Philadelphia Phillies optioned RHP Brian Keller to Lehigh Valley IronPigs."
    },
    {
        "id": 933653,
        "person": {
            "id": 682995,
            "fullName": "Hunter Barco",
            "nameSlug": "hunter-barco-682995"
        },
        "fromTeam": {
            "id": 134,
            "name": "Pittsburgh Pirates"
        },
        "toTeam": {
            "id": 484,
            "name": "Indianapolis Indians"
        },
        "date": "2026-07-31",
        "effectiveDate": "2026-07-31",
        "typeCode": "OPT",
        "typeDesc": "Optioned",
        "description": "Pittsburgh Pirates optioned LHP Hunter Barco to Indianapolis Indians."
    },
    {
        "id": 933717,
        "person": {
            "id": 684665,
            "fullName": "Luke Murphy",
            "nameSlug": "luke-murphy-684665"
        },
        "fromTeam": {
            "id": 559,
            "name": "Rocket City Trash Pandas"
        },
        "toTeam": {
            "id": 108,
            "name": "Los Angeles Angels"
        },
        "date": "2026-07-31",
        "effectiveDate": "2026-07-31",
        "typeCode": "SE",
        "typeDesc": "Selected",
        "description": "Los Angeles Angels selected the contract of RHP Luke Murphy from Rocket City Trash Pandas."
    },
    {
        "id": 933684,
        "person": {
            "id": 690924,
            "fullName": "Braxton Fulford",
            "nameSlug": "braxton-fulford-690924"
        },
        "fromTeam": {
            "id": 115,
            "name": "Colorado Rockies"
        },
        "toTeam": {
            "id": 342,
            "name": "Albuquerque Isotopes"
        },
        "date": "2026-07-31",
        "effectiveDate": "2026-07-31",
        "typeCode": "OPT",
        "typeDesc": "Optioned",
        "description": "Colorado Rockies optioned DH Braxton Fulford to Albuquerque Isotopes."
    },
    {
        "id": 933611,
        "person": {
            "id": 681520,
            "fullName": "Antoine Kelly",
            "nameSlug": "antoine-kelly-681520"
        },
        "fromTeam": {
            "id": 451,
            "name": "Iowa Cubs"
        },
        "toTeam": {
            "id": 112,
            "name": "Chicago Cubs"
        },
        "date": "2026-07-31",
        "effectiveDate": "2026-07-31",
        "typeCode": "CU",
        "typeDesc": "Recalled",
        "description": "Chicago Cubs recalled LHP Antoine Kelly from Iowa Cubs."
    },
    {
        "id": 933741,
        "person": {
            "id": 703601,
            "fullName": "Max Clark",
            "nameSlug": "max-clark-703601"
        },
        "fromTeam": {
            "id": 512,
            "name": "Toledo Mud Hens"
        },
        "toTeam": {
            "id": 116,
            "name": "Detroit Tigers"
        },
        "date": "2026-07-31",
        "effectiveDate": "2026-07-31",
        "typeCode": "SE",
        "typeDesc": "Selected",
        "description": "Detroit Tigers selected the contract of CF Max Clark from Toledo Mud Hens."
    },
    {
        "id": 933792,
        "person": {
            "id": 608344,
            "fullName": "Cole Irvin",
            "nameSlug": "cole-irvin-608344"
        },
        "fromTeam": {
            "id": 238,
            "name": "Oklahoma City Comets"
        },
        "toTeam": {
            "id": 119,
            "name": "Los Angeles Dodgers"
        },
        "date": "2026-07-31",
        "effectiveDate": "2026-07-31",
        "typeCode": "SE",
        "typeDesc": "Selected",
        "description": "Los Angeles Dodgers selected the contract of LHP Cole Irvin from Oklahoma City Comets."
    },
    {
        "id": 933739,
        "person": {
            "id": 669724,
            "fullName": "Brenan Hanifee",
            "nameSlug": "brenan-hanifee-669724"
        },
        "fromTeam": {
            "id": 116,
            "name": "Detroit Tigers"
        },
        "toTeam": {
            "id": 512,
            "name": "Toledo Mud Hens"
        },
        "date": "2026-07-31",
        "effectiveDate": "2026-07-31",
        "typeCode": "OPT",
        "typeDesc": "Optioned",
        "description": "Detroit Tigers optioned RHP Brenan Hanifee to Toledo Mud Hens."
    },
    {
        "id": 933637,
        "person": {
            "id": 702047,
            "fullName": "Alex Cook",
            "nameSlug": "alex-cook-702047"
        },
        "fromTeam": {
            "id": 234,
            "name": "Durham Bulls"
        },
        "toTeam": {
            "id": 139,
            "name": "Tampa Bay Rays"
        },
        "date": "2026-07-31",
        "effectiveDate": "2026-07-31",
        "typeCode": "CU",
        "typeDesc": "Recalled",
        "description": "Tampa Bay Rays recalled RHP Alex Cook from Durham Bulls."
    },
    {
        "id": 933705,
        "person": {
            "id": 671162,
            "fullName": "Connor Thomas",
            "nameSlug": "connor-thomas-671162"
        },
        "fromTeam": {
            "id": 133,
            "name": "Athletics"
        },
        "toTeam": {
            "id": 400,
            "name": "Las Vegas Aviators"
        },
        "date": "2026-07-31",
        "effectiveDate": "2026-07-31",
        "typeCode": "OPT",
        "typeDesc": "Optioned",
        "description": "Athletics optioned LHP Connor Thomas to Las Vegas Aviators."
    }
]
Get MLB transactions — CODE SNIPPETS

curl --location --request GET 'https://zylalabs.com/api/15957/mlb+api/44494/get+mlb+transactions?start_date=2026-07-25&end_date=2026-07-31' --header 'Authorization: Bearer YOUR_API_KEY' 


    
Request
Returns a news story with what the /news/list endpoint gives and its full text in Markdown and its photos.
Endpoint ID: 44495
GET https://zylalabs.com/api/15957/mlb+api/44495/get+mlb+news+story
INPUT PARAMETERS

Get MLB news story — Endpoint Features

Object Description
slug Required Story slug (e.g. "mlb-all-awardless-team-2026") or its mlb.com link (e.g. "https://www.mlb.com/news/mlb-all-awardless-team-2026"). Use the /news/list endpoint to list valid values.

Free test requests remaining: 3 of 3.


INPUT PARAMETERS

slug
API EXAMPLE RESPONSE
JSON
{
    "slug": "mlb-all-awardless-team-2026",
    "url": "https://www.mlb.com/news/mlb-all-awardless-team-2026",
    "headline": "Presenting the 2026 ... All-Awardless Team!",
    "title": "Best MLB players without awards in 2026",
    "summary": "They’ve rolled up the red carpet, opened all the envelopes and thanked the engraving artists for their services. But just because all the MLB Awards have been handed out for 2026 doesn’t mean we can’t",
    "byline": "Anthony Castrovince",
    "type": "Article",
    "date": "2026-11-27T01:55:37.517Z",
    "updated_at": "2026-11-27T16:56:27.138Z",
    "image": {
        "title": "2568x1445_All-Awardless Team for 26",
        "url": "https://img.mlbstatic.com/mlb-images/image/upload/t_16x9/t_w1024/mlb/oltopiumayyvgoscmxmc",
        "thumbnail": "https://img.mlbstatic.com/mlb-images/image/upload/w_250,h_250,c_thumb,g_auto,q_auto,f_jpg/mlb/oltopiumayyvgoscmxmc"
    },
    "teams": [],
    "players": [
        {
            "id": 686948,
            "name": "Drake Baldwin"
        }
    ],
    "body": "They’ve rolled up the red carpet, opened all the envelopes and thanked the engraving artists for their services. But just because all the MLB Awards have been handed out for 2026 doesn’t mean we can’t",
    "images": [
        {
            "title": "2568x1445_All-Awardless Team for 26",
            "url": "https://img.mlbstatic.com/mlb-images/image/upload/t_16x9/t_w1024/mlb/oltopiumayyvgoscmxmc",
            "thumbnail": "https://img.mlbstatic.com/mlb-images/image/upload/w_250,h_250,c_thumb,g_auto,q_auto,f_jpg/mlb/oltopiumayyvgoscmxmc"
        }
    ]
}
Get MLB news story — CODE SNIPPETS

curl --location --request GET 'https://zylalabs.com/api/15957/mlb+api/44495/get+mlb+news+story?slug=mlb-all-awardless-team-2026' --header 'Authorization: Bearer YOUR_API_KEY' 


    
Request
Returns the latest news stories of mlb.com, each with its slug, link, headline, summary, byline, date, image and the teams and players it is about. 25 stories a page, up to 100.
Endpoint ID: 44496
GET https://zylalabs.com/api/15957/mlb+api/44496/get+mlb+news
INPUT PARAMETERS

Get MLB news — Endpoint Features

Object Description
page Optional Optional page number, from 1 to 4 (defaults to 1).

Free test requests remaining: 3 of 3.


INPUT PARAMETERS

page
API EXAMPLE RESPONSE
JSON
{
    "page": 1,
    "per_page": 25,
    "has_more": false,
    "results": [
        {
            "slug": "commissioner-letter-to-fans-december-2026",
            "url": "https://www.mlb.com/news/commissioner-letter-to-fans-december-2026",
            "headline": "A letter to baseball fans from Commissioner Rob Manfred",
            "title": "Commissioner letter to fans December 2026",
            "summary": " ",
            "byline": null,
            "type": "Article",
            "date": "2026-12-02T00:00:12.924Z",
            "updated_at": "2026-12-02T00:00:12.924Z",
            "image": {
                "title": "mlb 2",
                "url": "https://img.mlbstatic.com/mlb-images/image/upload/t_16x9/t_w1024/mlb/ppwq6snzptokcbyct8bp",
                "thumbnail": "https://img.mlbstatic.com/mlb-images/image/upload/w_250,h_250,c_thumb,g_auto,q_auto,f_jpg/mlb/ppwq6snzptokcbyct8bp"
            },
            "teams": [],
            "players": []
        },
        {
            "slug": "mlb-lockout-begins-december-2-2026",
            "url": "https://www.mlb.com/news/mlb-lockout-begins-december-2-2026",
            "headline": "Without agreement on new CBA, MLB commences lockout",
            "title": "MLB lockout begins December 2, 2026",
            "summary": "SCOTTSDALE – Meetings between Major League Baseball and the MLB Players Association wrapped on Tuesday without a new Collective Bargaining Agreement, and with no further meetings planned, the league implemented a lockout of its players at 12:01 a.m. ET Wednesday.\nCommissioner Rob Manfred announced the league’s plans on Tuesday evening",
            "byline": "Mark Feinsand",
            "type": "Article",
            "date": "2026-12-02T05:01:00Z",
            "updated_at": "2026-12-02T05:06:19.395Z",
            "image": {
                "title": "baseball bats dugout 2",
                "url": "https://img.mlbstatic.com/mlb-images/image/upload/t_16x9/t_w1024/mlb/ttakzplmjc0b4kypxbmx",
                "thumbnail": "https://img.mlbstatic.com/mlb-images/image/upload/w_250,h_250,c_thumb,g_auto,q_auto,f_jpg/mlb/ttakzplmjc0b4kypxbmx"
            },
            "teams": [],
            "players": []
        },
        {
            "slug": "why-is-there-a-lockout-in-mlb-2026-27",
            "url": "https://www.mlb.com/news/why-is-there-a-lockout-in-mlb-2026-27",
            "headline": "FAQ on CBA negotiations between MLB and MLBPA",
            "title": "Why is there a lockout in MLB?",
            "summary": "Q: What is a lockout?\nA: Under federal labor law, when the Collective Bargaining Agreement (CBA) expires without a new agreement in place, the League has the right to lockout the players, and conversely, the players have the right to go on strike at a time of their choosing. In",
            "byline": null,
            "type": "Article",
            "date": "2026-12-02T05:05:34.89Z",
            "updated_at": "2026-12-02T05:37:45.603Z",
            "image": {
                "title": "mlb 3",
                "url": "https://img.mlbstatic.com/mlb-images/image/upload/t_16x9/t_w1024/mlb/ook55ujg0dxejoxfyu0w",
                "thumbnail": "https://img.mlbstatic.com/mlb-images/image/upload/w_250,h_250,c_thumb,g_auto,q_auto,f_jpg/mlb/ook55ujg0dxejoxfyu0w"
            },
            "teams": [],
            "players": []
        },
        {
            "slug": "a-note-about-our-website-content",
            "url": "https://www.mlb.com/news/a-note-about-our-website-content",
            "headline": "A note about our website content",
            "title": "A note about our website content",
            "summary": "You may notice that the content on this site looks a little different than usual. The reason for this is because the Collective Bargaining Agreement between the players and the league expired just before midnight on Dec. 1 and a new CBA is currently being negotiated between the owners and",
            "byline": null,
            "type": "Article",
            "date": "2026-12-02T05:01:00Z",
            "updated_at": "2026-12-02T05:13:36.873Z",
            "image": {
                "title": "mlb 1",
                "url": "https://img.mlbstatic.com/mlb-images/image/upload/t_16x9/t_w1024/mlb/wpf4w3s0bm8lh0t6ylwe",
                "thumbnail": "https://img.mlbstatic.com/mlb-images/image/upload/w_250,h_250,c_thumb,g_auto,q_auto,f_jpg/mlb/wpf4w3s0bm8lh0t6ylwe"
            },
            "teams": [],
            "players": []
        }
    ]
}
Get MLB news — CODE SNIPPETS

curl --location --request GET 'https://zylalabs.com/api/15957/mlb+api/44496/get+mlb+news?page=1' --header 'Authorization: Bearer YOUR_API_KEY' 


    
Request
Returns a player with their names, number, position, bats and throws, birth date and place, height, weight, current team, debut, draft picks, education, relatives, awards, every team they were on and every transaction, the latest first, with their headshot, action photo and mlb.com link.
Endpoint ID: 44497
GET https://zylalabs.com/api/15957/mlb+api/44497/get+mlb+player+details
INPUT PARAMETERS

Get MLB player details — Endpoint Features

Object Description
player_id Required Player id (e.g. "592450"). Use the /search/players endpoint to list valid values.

Free test requests remaining: 3 of 3.


INPUT PARAMETERS

player_id
API EXAMPLE RESPONSE
JSON
{
    "id": 592450,
    "fullName": "Aaron Judge",
    "firstName": "Aaron",
    "lastName": "Judge",
    "primaryNumber": "99",
    "birthDate": "1992-04-26",
    "currentAge": 34,
    "birthCity": "Linden",
    "birthStateProvince": "CA",
    "birthCountry": "USA",
    "height": "6' 7\"",
    "weight": 282,
    "active": true,
    "currentTeam": {
        "springLeague": {
            "id": 115,
            "name": "Grapefruit League",
            "abbreviation": "GL"
        },
        "allStarStatus": "N",
        "id": 147,
        "name": "New York Yankees",
        "season": 2026,
        "venue": {
            "id": 3313,
            "name": "Yankee Stadium"
        },
        "springVenue": {
            "id": 2523
        },
        "teamCode": "nya",
        "fileCode": "nyy",
        "abbreviation": "NYY",
        "teamName": "Yankees",
        "locationName": "Bronx",
        "firstYearOfPlay": "1903",
        "league": {
            "id": 103,
            "name": "American League"
        },
        "division": {
            "id": 201,
            "name": "American League East"
        },
        "sport": {
            "id": 1,
            "name": "Major League Baseball"
        },
        "shortName": "NY Yankees",
        "franchiseName": "New York",
        "clubName": "Yankees",
        "active": true
    },
    "primaryPosition": {
        "code": "9",
        "name": "Outfielder",
        "type": "Outfielder",
        "abbreviation": "RF"
    },
    "useName": "Aaron",
    "useLastName": "Judge",
    "middleName": "James",
    "boxscoreName": "Judge",
    "nickName": "Baj",
    "gender": "M",
    "isPlayer": true,
    "isVerified": true,
    "draftYear": 2013,
    "education": {
        "highschools": [
            {
                "name": "Linden",
                "state": "CA"
            }
        ],
        "colleges": [
            {
                "name": "Fresno State"
            }
        ]
    },
    "awards": [
        {
            "id": "SALMSAS",
            "name": "SAL Mid-Season All-Star",
            "date": "2014-06-17",
            "season": "2014",
            "team": {
                "id": 233,
                "teamName": "Charleston"
            },
            "player": {
                "id": 592450,
                "primaryPosition": {
                    "code": "9",
                    "name": "Outfielder",
                    "type": "Outfielder",
                    "abbreviation": "RF"
                }
            }
        },
        {
            "id": "AFLRS",
            "name": "AFL Rising Stars",
            "date": "2014-11-01",
            "season": "2014",
            "team": {
                "id": 544,
                "teamName": "Scottsdale"
            },
            "player": {
                "id": 592450,
                "primaryPosition": {
                    "code": "O",
                    "name": "Outfield",
                    "type": "Outfielder",
                    "abbreviation": "OF"
                }
            }
        }
    ],
    "rosterEntries": [
        {
            "jerseyNumber": "99",
            "position": {
                "code": "9",
                "name": "Outfielder",
                "type": "Outfielder",
                "abbreviation": "RF"
            },
            "status": {
                "code": "A",
                "description": "Active"
            },
            "team": {
                "id": 147,
                "name": "New York Yankees",
                "abbreviation": "NYY",
                "teamName": "Yankees",
                "locationName": "Bronx"
            },
            "isActive": true,
            "startDate": "2022-12-20",
            "statusDate": "2026-10-08",
            "isActiveFortyMan": true
        },
        {
            "jerseyNumber": "99",
            "position": {
                "code": "9",
                "name": "Outfielder",
                "type": "Outfielder",
                "abbreviation": "RF"
            },
            "status": {
                "code": "RA",
                "description": "Rehab Assignment"
            },
            "team": {
                "id": 531,
                "name": "Scranton/Wilkes-Barre RailRiders",
                "abbreviation": "SWB",
                "teamName": "RailRiders",
                "locationName": "Moosic",
                "parentOrgId": 147
            },
            "isActive": false,
            "startDate": "2019-06-14",
            "endDate": "2019-06-20",
            "statusDate": "2019-06-14",
            "isActiveFortyMan": true
        }
    ],
    "mlbDebutDate": "2016-08-13",
    "batSide": {
        "code": "R",
        "description": "Right"
    },
    "pitchHand": {
        "code": "R",
        "description": "Right"
    },
    "nameFirstLast": "Aaron Judge",
    "nameSlug": "aaron-judge-592450",
    "firstLastName": "Aaron Judge",
    "lastFirstName": "Judge, Aaron",
    "lastInitName": "Judge, A",
    "initLastName": "A Judge",
    "fullFMLName": "Aaron James Judge",
    "fullLFMName": "Judge, Aaron James",
    "strikeZoneTop": 3.523,
    "strikeZoneBottom": 1.778,
    "drafts": [
        {
            "pickRound": "31",
            "pickNumber": 935,
            "roundPickNumber": 10,
            "home": [],
            "school": {
                "name": "Linden (CA) HS"
            },
            "headshotLink": "https://img.mlbstatic.com/mlb-photos/image/upload/d_people:generic:headshot:silo:current.png/w_120,q_auto:best/v1/people/592450/headshot/draft/current",
            "person": {
                "id": 592450,
                "birthDate": "1992-04-26",
                "currentAge": 34,
                "primaryPosition": {
                    "code": "O",
                    "name": "Outfield",
                    "type": "Outfielder",
                    "abbreviation": "OF"
                },
                "nameFirstLast": "Aaron Judge",
                "nameSlug": "aaron-judge-592450"
            },
            "team": {
                "id": 133,
                "name": "Oakland Athletics",
                "league": {
                    "id": 103,
                    "name": "American League"
                }
            },
            "draftType": {
                "code": "JR",
                "description": "Rule 4 / June Amateur Draft"
            },
            "isDrafted": true,
            "isPass": false,
            "year": "2010"
        }
    ],
    "transactions": [
        {
            "id": 945401,
            "toTeam": {
                "id": 147,
                "name": "New York Yankees"
            },
            "date": "2026-10-08",
            "effectiveDate": "2026-10-08",
            "resolutionDate": "2026-10-08",
            "typeCode": "SC",
            "typeDesc": "Status Change",
            "description": "New York Yankees activated RF Aaron Judge."
        },
        {
            "id": 944387,
            "toTeam": {
                "id": 147,
                "name": "New York Yankees"
            },
            "date": "2026-09-28",
            "effectiveDate": "2026-09-28",
            "resolutionDate": "2026-09-28",
            "typeCode": "SC",
            "typeDesc": "Status Change",
            "description": "RF Aaron Judge roster status changed by New York Yankees."
        },
        {
            "id": 943221,
            "toTeam": {
                "id": 147,
                "name": "New York Yankees"
            },
            "date": "2026-09-19",
            "effectiveDate": "2026-09-17",
            "resolutionDate": "2026-09-17",
            "typeCode": "SC",
            "typeDesc": "Status Change",
            "description": "New York Yankees placed RF Aaron Judge on the 10-day injured list retroactive to September 17, 2026. Right calf strain."
        }
    ],
    "headshot": "https://img.mlbstatic.com/mlb-photos/image/upload/d_people:generic:headshot:67:current.png/w_426,q_auto:best/v1/people/592450/headshot/67/current",
    "actionShot": "https://img.mlbstatic.com/mlb-photos/image/upload/w_1200,q_auto:best/v1/people/592450/action/hero/current",
    "url": "https://www.mlb.com/player/aaron-judge-592450"
}
Get MLB player details — CODE SNIPPETS

curl --location --request GET 'https://zylalabs.com/api/15957/mlb+api/44497/get+mlb+player+details?player_id=592450' --header 'Authorization: Bearer YOUR_API_KEY' 


    
Request
Returns the statistics of a player in every game of a season, the latest first, each with the date, the opponent, home or away, the result and the game id.
Endpoint ID: 44498
GET https://zylalabs.com/api/15957/mlb+api/44498/get+mlb+player+game+log
INPUT PARAMETERS

Get MLB player game log — Endpoint Features

Object Description
player_id Required Player id (e.g. "592450"). Use the /search/players endpoint to list valid values.
group Optional Optional stat group (defaults to "hitting"). Use the /general/stat-groups endpoint to list valid values.
season Optional Optional season year (e.g. "2026"; defaults to the current season). Use the /general/seasons endpoint to list valid values.
game_type Optional Optional game type (defaults to "regular_season"). Use the /general/game-types endpoint to list valid values.

Free test requests remaining: 3 of 3.


INPUT PARAMETERS

player_id
group
season
game_type
API EXAMPLE RESPONSE
JSON
[
    {
        "season": "2026",
        "stat": {
            "summary": "0-2 | 2 K",
            "gamesPlayed": 1,
            "flyOuts": 0,
            "groundOuts": 0,
            "airOuts": 0,
            "runs": 0,
            "doubles": 0,
            "triples": 0,
            "homeRuns": 0,
            "strikeOuts": 2,
            "baseOnBalls": 0,
            "intentionalWalks": 0,
            "hits": 0,
            "hitByPitch": 0,
            "avg": ".241",
            "atBats": 2,
            "obp": ".360",
            "slg": ".511",
            "ops": ".871",
            "caughtStealing": 0,
            "stolenBases": 0,
            "stolenBasePercentage": ".---",
            "caughtStealingPercentage": ".---",
            "groundIntoDoublePlay": 0,
            "groundIntoTriplePlay": 0,
            "numberOfPitches": 9,
            "plateAppearances": 2,
            "totalBases": 0,
            "rbi": 0,
            "leftOnBase": 3,
            "sacBunts": 0,
            "sacFlies": 0,
            "babip": ".---",
            "groundOutsToAirouts": "-.--",
            "catchersInterference": 0,
            "atBatsPerHomeRun": "-.--"
        },
        "team": {
            "id": 147,
            "name": "New York Yankees"
        },
        "player": {
            "id": 592450,
            "fullName": "Aaron Judge",
            "nameSlug": "aaron-judge-592450"
        },
        "league": {
            "id": 103,
            "name": "American League"
        },
        "sport": {
            "id": 1,
            "abbreviation": "MLB"
        },
        "opponent": {
            "id": 142,
            "name": "Minnesota Twins"
        },
        "date": "2026-09-16",
        "gameType": "R",
        "isHome": false,
        "isWin": false,
        "positionsPlayed": [
            {
                "code": "9",
                "name": "Outfielder",
                "type": "Outfielder",
                "abbreviation": "RF"
            }
        ],
        "game": {
            "gamePk": 823655,
            "content": [],
            "gameNumber": 1,
            "dayNight": "day"
        }
    },
    {
        "season": "2026",
        "stat": {
            "summary": "1-4 | HR, 2 K, 3 RBI",
            "gamesPlayed": 1,
            "flyOuts": 0,
            "groundOuts": 1,
            "airOuts": 0,
            "runs": 1,
            "doubles": 0,
            "triples": 0,
            "homeRuns": 1,
            "strikeOuts": 2,
            "baseOnBalls": 0,
            "intentionalWalks": 0,
            "hits": 1,
            "hitByPitch": 0,
            "avg": ".243",
            "atBats": 4,
            "obp": ".363",
            "slg": ".515",
            "ops": ".878",
            "caughtStealing": 0,
            "stolenBases": 0,
            "stolenBasePercentage": ".---",
            "caughtStealingPercentage": ".---",
            "groundIntoDoublePlay": 1,
            "groundIntoTriplePlay": 0,
            "numberOfPitches": 19,
            "plateAppearances": 4,
            "totalBases": 4,
            "rbi": 3,
            "leftOnBase": 1,
            "sacBunts": 0,
            "sacFlies": 0,
            "babip": ".000",
            "groundOutsToAirouts": "1.00",
            "catchersInterference": 0,
            "atBatsPerHomeRun": "4.00"
        },
        "team": {
            "id": 147,
            "name": "New York Yankees"
        },
        "player": {
            "id": 592450,
            "fullName": "Aaron Judge",
            "nameSlug": "aaron-judge-592450"
        },
        "league": {
            "id": 103,
            "name": "American League"
        },
        "sport": {
            "id": 1,
            "abbreviation": "MLB"
        },
        "opponent": {
            "id": 142,
            "name": "Minnesota Twins"
        },
        "date": "2026-09-14",
        "gameType": "R",
        "isHome": false,
        "isWin": true,
        "positionsPlayed": [
            {
                "code": "9",
                "name": "Outfielder",
                "type": "Outfielder",
                "abbreviation": "RF"
            }
        ],
        "game": {
            "gamePk": 823656,
            "content": [],
            "gameNumber": 1,
            "dayNight": "day"
        }
    },
    {
        "season": "2026",
        "stat": {
            "summary": "0-3 | 3 K",
            "gamesPlayed": 1,
            "flyOuts": 0,
            "groundOuts": 0,
            "airOuts": 0,
            "runs": 0,
            "doubles": 0,
            "triples": 0,
            "homeRuns": 0,
            "strikeOuts": 3,
            "baseOnBalls": 0,
            "intentionalWalks": 0,
            "hits": 0,
            "hitByPitch": 0,
            "avg": ".242",
            "atBats": 3,
            "obp": ".365",
            "slg": ".506",
            "ops": ".871",
            "caughtStealing": 0,
            "stolenBases": 0,
            "stolenBasePercentage": ".---",
            "caughtStealingPercentage": ".---",
            "groundIntoDoublePlay": 0,
            "groundIntoTriplePlay": 0,
            "numberOfPitches": 13,
            "plateAppearances": 3,
            "totalBases": 0,
            "rbi": 0,
            "leftOnBase": 1,
            "sacBunts": 0,
            "sacFlies": 0,
            "babip": ".---",
            "groundOutsToAirouts": "-.--",
            "catchersInterference": 0,
            "atBatsPerHomeRun": "-.--"
        },
        "team": {
            "id": 147,
            "name": "New York Yankees"
        },
        "player": {
            "id": 592450,
            "fullName": "Aaron Judge",
            "nameSlug": "aaron-judge-592450"
        },
        "league": {
            "id": 103,
            "name": "American League"
        },
        "sport": {
            "id": 1,
            "abbreviation": "MLB"
        },
        "opponent": {
            "id": 121,
            "name": "New York Mets"
        },
        "date": "2026-09-13",
        "gameType": "R",
        "isHome": true,
        "isWin": true,
        "positionsPlayed": [
            {
                "code": "9",
                "name": "Outfielder",
                "type": "Outfielder",
                "abbreviation": "RF"
            }
        ],
        "game": {
            "gamePk": 823495,
            "content": [],
            "gameNumber": 1,
            "dayNight": "day"
        }
    },
    {
        "season": "2026",
        "stat": {
            "summary": "0-4 | K",
            "gamesPlayed": 1,
            "flyOuts": 1,
            "groundOuts": 1,
            "airOuts": 2,
            "runs": 0,
            "doubles": 0,
            "triples": 0,
            "homeRuns": 0,
            "strikeOuts": 1,
            "baseOnBalls": 0,
            "intentionalWalks": 0,
            "hits": 0,
            "hitByPitch": 0,
            "avg": ".246",
            "atBats": 4,
            "obp": ".369",
            "slg": ".513",
            "ops": ".882",
            "caughtStealing": 0,
            "stolenBases": 0,
            "stolenBasePercentage": ".---",
            "caughtStealingPercentage": ".---",
            "groundIntoDoublePlay": 0,
            "groundIntoTriplePlay": 0,
            "numberOfPitches": 10,
            "plateAppearances": 4,
            "totalBases": 0,
            "rbi": 0,
            "leftOnBase": 2,
            "sacBunts": 0,
            "sacFlies": 0,
            "babip": ".000",
            "groundOutsToAirouts": "0.50",
            "catchersInterference": 0,
            "atBatsPerHomeRun": "-.--"
        },
        "team": {
            "id": 147,
            "name": "New York Yankees"
        },
        "player": {
            "id": 592450,
            "fullName": "Aaron Judge",
            "nameSlug": "aaron-judge-592450"
        },
        "league": {
            "id": 103,
            "name": "American League"
        },
        "sport": {
            "id": 1,
            "abbreviation": "MLB"
        },
        "opponent": {
            "id": 121,
            "name": "New York Mets"
        },
        "date": "2026-09-12",
        "gameType": "R",
        "isHome": true,
        "isWin": false,
        "positionsPlayed": [
            {
                "code": "10",
                "name": "Designated Hitter",
                "type": "Hitter",
                "abbreviation": "DH"
            }
        ],
        "game": {
            "gamePk": 823496,
            "content": [],
            "gameNumber": 1,
            "dayNight": "day"
        }
    }
]
Get MLB player game log — CODE SNIPPETS

curl --location --request GET 'https://zylalabs.com/api/15957/mlb+api/44498/get+mlb+player+game+log?player_id=592450&group=hitting&season=2026&game_type=regular_season' --header 'Authorization: Bearer YOUR_API_KEY' 


    
Request
Returns the statistics of a player in a season split by situation: against left- and right-handed pitchers or batters, at home and away, day and night, by count, by inning, with runners on, by batting order, by month, by opponent and more.
Endpoint ID: 44499
GET https://zylalabs.com/api/15957/mlb+api/44499/get+mlb+player+splits
INPUT PARAMETERS

Get MLB player splits — Endpoint Features

Object Description
player_id Required Player id (e.g. "592450"). Use the /search/players endpoint to list valid values.
situations Optional Optional situation codes separated by commas, 20 at most (defaults to "vl,vr,h,a": versus left, versus right, home, away). Use the /general/situation-codes endpoint to list valid values.
group Optional Optional stat group (defaults to "hitting"). Use the /general/stat-groups endpoint to list valid values.
season Optional Optional season year (e.g. "2026"; defaults to the current season). Use the /general/seasons endpoint to list valid values.

Free test requests remaining: 3 of 3.


INPUT PARAMETERS

player_id
situations
group
season
API EXAMPLE RESPONSE
JSON
[
    {
        "season": "2026",
        "stat": {
            "gamesPlayed": 31,
            "groundOuts": 20,
            "airOuts": 23,
            "runs": 26,
            "doubles": 4,
            "triples": 0,
            "homeRuns": 10,
            "strikeOuts": 42,
            "baseOnBalls": 17,
            "intentionalWalks": 3,
            "hits": 29,
            "hitByPitch": 1,
            "avg": ".254",
            "atBats": 114,
            "obp": ".356",
            "slg": ".553",
            "ops": ".909",
            "caughtStealing": 0,
            "stolenBases": 2,
            "stolenBasePercentage": "1.000",
            "caughtStealingPercentage": ".000",
            "groundIntoDoublePlay": 4,
            "groundIntoTriplePlay": 0,
            "numberOfPitches": 567,
            "plateAppearances": 133,
            "totalBases": 63,
            "rbi": 22,
            "leftOnBase": 39,
            "sacBunts": 0,
            "sacFlies": 0,
            "babip": ".306",
            "groundOutsToAirouts": "0.87",
            "catchersInterference": 1,
            "atBatsPerHomeRun": "11.40"
        },
        "team": {
            "id": 147,
            "name": "New York Yankees"
        },
        "player": {
            "id": 592450,
            "fullName": "Aaron Judge",
            "firstName": "Aaron",
            "lastName": "Judge",
            "nameSlug": "aaron-judge-592450"
        },
        "league": {
            "id": 103,
            "name": "American League"
        },
        "sport": {
            "id": 1,
            "name": "Major League Baseball",
            "abbreviation": "MLB"
        },
        "gameType": "R",
        "split": {
            "code": "h",
            "description": "Home Games",
            "sortOrder": 1
        },
        "position": {
            "code": "9",
            "name": "Outfielder",
            "type": "Outfielder",
            "abbreviation": "RF"
        }
    },
    {
        "season": "2026",
        "stat": {
            "gamesPlayed": 35,
            "groundOuts": 26,
            "airOuts": 27,
            "runs": 19,
            "doubles": 6,
            "triples": 0,
            "homeRuns": 8,
            "strikeOuts": 43,
            "baseOnBalls": 26,
            "intentionalWalks": 2,
            "hits": 28,
            "hitByPitch": 1,
            "avg": ".228",
            "atBats": 123,
            "obp": ".364",
            "slg": ".472",
            "ops": ".836",
            "caughtStealing": 3,
            "stolenBases": 3,
            "stolenBasePercentage": ".500",
            "caughtStealingPercentage": ".500",
            "groundIntoDoublePlay": 5,
            "groundIntoTriplePlay": 0,
            "numberOfPitches": 650,
            "plateAppearances": 152,
            "totalBases": 58,
            "rbi": 19,
            "leftOnBase": 46,
            "sacBunts": 0,
            "sacFlies": 1,
            "babip": ".274",
            "groundOutsToAirouts": "0.96",
            "catchersInterference": 1,
            "atBatsPerHomeRun": "15.38"
        },
        "team": {
            "id": 147,
            "name": "New York Yankees"
        },
        "player": {
            "id": 592450,
            "fullName": "Aaron Judge",
            "firstName": "Aaron",
            "lastName": "Judge",
            "nameSlug": "aaron-judge-592450"
        },
        "league": {
            "id": 103,
            "name": "American League"
        },
        "sport": {
            "id": 1,
            "name": "Major League Baseball",
            "abbreviation": "MLB"
        },
        "gameType": "R",
        "split": {
            "code": "a",
            "description": "Away Games",
            "sortOrder": 2
        },
        "position": {
            "code": "9",
            "name": "Outfielder",
            "type": "Outfielder",
            "abbreviation": "RF"
        }
    },
    {
        "season": "2026",
        "stat": {
            "gamesPlayed": 40,
            "groundOuts": 15,
            "airOuts": 11,
            "doubles": 1,
            "triples": 0,
            "homeRuns": 6,
            "strikeOuts": 22,
            "baseOnBalls": 18,
            "intentionalWalks": 3,
            "hits": 15,
            "hitByPitch": 0,
            "avg": ".242",
            "atBats": 62,
            "obp": ".407",
            "slg": ".548",
            "ops": ".955",
            "groundIntoDoublePlay": 0,
            "groundIntoTriplePlay": 0,
            "numberOfPitches": 350,
            "plateAppearances": 81,
            "totalBases": 34,
            "rbi": 13,
            "leftOnBase": 16,
            "sacBunts": 0,
            "sacFlies": 1,
            "babip": ".257",
            "groundOutsToAirouts": "1.36",
            "catchersInterference": 0,
            "atBatsPerHomeRun": "10.33"
        },
        "team": {
            "id": 147,
            "name": "New York Yankees"
        },
        "player": {
            "id": 592450,
            "fullName": "Aaron Judge",
            "firstName": "Aaron",
            "lastName": "Judge",
            "nameSlug": "aaron-judge-592450"
        },
        "league": {
            "id": 103,
            "name": "American League"
        },
        "sport": {
            "id": 1,
            "name": "Major League Baseball",
            "abbreviation": "MLB"
        },
        "gameType": "R",
        "split": {
            "code": "vl",
            "description": "vs Left",
            "sortOrder": 73
        },
        "position": {
            "code": "9",
            "name": "Outfielder",
            "type": "Outfielder",
            "abbreviation": "RF"
        }
    },
    {
        "season": "2026",
        "stat": {
            "gamesPlayed": 65,
            "groundOuts": 31,
            "airOuts": 39,
            "doubles": 9,
            "triples": 0,
            "homeRuns": 12,
            "strikeOuts": 63,
            "baseOnBalls": 25,
            "intentionalWalks": 2,
            "hits": 42,
            "hitByPitch": 2,
            "avg": ".240",
            "atBats": 175,
            "obp": ".342",
            "slg": ".497",
            "ops": ".839",
            "groundIntoDoublePlay": 9,
            "groundIntoTriplePlay": 0,
            "numberOfPitches": 867,
            "plateAppearances": 204,
            "totalBases": 87,
            "rbi": 28,
            "leftOnBase": 69,
            "sacBunts": 0,
            "sacFlies": 0,
            "babip": ".300",
            "groundOutsToAirouts": "0.79",
            "catchersInterference": 2,
            "atBatsPerHomeRun": "14.58"
        },
        "team": {
            "id": 147,
            "name": "New York Yankees"
        },
        "player": {
            "id": 592450,
            "fullName": "Aaron Judge",
            "firstName": "Aaron",
            "lastName": "Judge",
            "nameSlug": "aaron-judge-592450"
        },
        "league": {
            "id": 103,
            "name": "American League"
        },
        "sport": {
            "id": 1,
            "name": "Major League Baseball",
            "abbreviation": "MLB"
        },
        "gameType": "R",
        "split": {
            "code": "vr",
            "description": "vs Right",
            "sortOrder": 74
        },
        "position": {
            "code": "9",
            "name": "Outfielder",
            "type": "Outfielder",
            "abbreviation": "RF"
        }
    }
]
Get MLB player splits — CODE SNIPPETS

curl --location --request GET 'https://zylalabs.com/api/15957/mlb+api/44499/get+mlb+player+splits?player_id=592450&situations=vl,vr,h,a&group=hitting&season=2026' --header 'Authorization: Bearer YOUR_API_KEY' 


    
Request
Returns the hitting, pitching, fielding, catching or base running statistics of a player: a season, the career, every season, the postseason, advanced, sabermetrics (WAR, wOBA, FIP), expected statistics, the pitch arsenal, the hot and cold zones, the spray chart, by month, by day of the week, at home and away, in wins and losses, the last games or the league rank.
Endpoint ID: 44500
GET https://zylalabs.com/api/15957/mlb+api/44500/get+mlb+player+statistics
INPUT PARAMETERS

Get MLB player statistics — Endpoint Features

Object Description
player_id Required Player id (e.g. "592450"). Use the /search/players endpoint to list valid values.
group Optional Optional stat group (defaults to "hitting"). Use the /general/stat-groups endpoint to list valid values.
type Optional Optional stat type (defaults to "season"). Use the /general/player-stat-types endpoint to list valid values.
season Optional Optional season year, for the types of one season (e.g. "2026"; defaults to the current season). Use the /general/seasons endpoint to list valid values.

Free test requests remaining: 3 of 3.


INPUT PARAMETERS

player_id
group
type
season
API EXAMPLE RESPONSE
JSON
[
    {
        "type": {
            "displayName": "season"
        },
        "group": {
            "displayName": "hitting"
        },
        "exemptions": [],
        "splits": [
            {
                "season": "2026",
                "stat": {
                    "age": 34,
                    "gamesPlayed": 66,
                    "groundOuts": 46,
                    "airOuts": 50,
                    "runs": 45,
                    "doubles": 10,
                    "triples": 0,
                    "homeRuns": 18,
                    "strikeOuts": 85,
                    "baseOnBalls": 43,
                    "intentionalWalks": 5,
                    "hits": 57,
                    "hitByPitch": 2,
                    "avg": ".241",
                    "atBats": 237,
                    "obp": ".360",
                    "slg": ".511",
                    "ops": ".871",
                    "caughtStealing": 3,
                    "stolenBases": 5,
                    "stolenBasePercentage": ".625",
                    "caughtStealingPercentage": ".375",
                    "groundIntoDoublePlay": 9,
                    "numberOfPitches": 1217,
                    "plateAppearances": 285,
                    "totalBases": 121,
                    "rbi": 41,
                    "leftOnBase": 85,
                    "sacBunts": 0,
                    "sacFlies": 1,
                    "babip": ".289",
                    "groundOutsToAirouts": "0.92",
                    "catchersInterference": 2,
                    "atBatsPerHomeRun": "13.17"
                },
                "team": {
                    "id": 147,
                    "name": "New York Yankees"
                },
                "player": {
                    "id": 592450,
                    "fullName": "Aaron Judge",
                    "nameSlug": "aaron-judge-592450"
                },
                "league": {
                    "id": 103,
                    "name": "American League"
                },
                "sport": {
                    "id": 1,
                    "abbreviation": "MLB"
                },
                "gameType": "R"
            }
        ]
    }
]
Get MLB player statistics — CODE SNIPPETS

curl --location --request GET 'https://zylalabs.com/api/15957/mlb+api/44500/get+mlb+player+statistics?player_id=592450&group=hitting&type=season&season=2026' --header 'Authorization: Bearer YOUR_API_KEY' 


    
Request
Returns how a batter has done against a pitcher, or a pitcher against a batter: the career total and a line for every season the two have met.
Endpoint ID: 44501
GET https://zylalabs.com/api/15957/mlb+api/44501/get+mlb+player+versus+player
INPUT PARAMETERS

Get MLB player versus player — Endpoint Features

Object Description
player_id Required Player id (e.g. "592450"). Use the /search/players endpoint to list valid values.
opponent_id Required Player id of the opposing pitcher or batter (e.g. "669373"). Use the /search/players endpoint to list valid values.
group Optional Optional: "hitting" when the player is the batter, "pitching" when the player is the pitcher (defaults to "hitting").

Free test requests remaining: 3 of 3.


INPUT PARAMETERS

player_id
opponent_id
group
API EXAMPLE RESPONSE
JSON
[
    {
        "type": {
            "displayName": "vsPlayer"
        },
        "group": {
            "displayName": "hitting"
        },
        "totalSplits": 4,
        "exemptions": [],
        "splits": [
            {
                "season": "2021",
                "stat": {
                    "gamesPlayed": 2,
                    "groundOuts": 1,
                    "airOuts": 1,
                    "doubles": 1,
                    "triples": 0,
                    "homeRuns": 1,
                    "strikeOuts": 1,
                    "baseOnBalls": 0,
                    "intentionalWalks": 0,
                    "hits": 2,
                    "hitByPitch": 0,
                    "avg": ".400",
                    "atBats": 5,
                    "obp": ".400",
                    "slg": "1.200",
                    "ops": "1.600",
                    "groundIntoDoublePlay": 1,
                    "groundIntoTriplePlay": 0,
                    "numberOfPitches": 19,
                    "plateAppearances": 5,
                    "totalBases": 6,
                    "rbi": 1,
                    "leftOnBase": 3,
                    "sacBunts": 0,
                    "sacFlies": 0,
                    "babip": ".333",
                    "groundOutsToAirouts": "1.00",
                    "catchersInterference": 0,
                    "atBatsPerHomeRun": "5.00"
                },
                "team": {
                    "id": 147,
                    "name": "New York Yankees"
                },
                "opponent": {
                    "id": 116,
                    "name": "Detroit Tigers"
                },
                "gameType": "R",
                "numTeams": 1,
                "pitcher": {
                    "id": 669373,
                    "fullName": "Tarik Skubal",
                    "firstName": "Tarik",
                    "lastName": "Skubal",
                    "nameSlug": "tarik-skubal-669373"
                },
                "batter": {
                    "id": 592450,
                    "fullName": "Aaron Judge",
                    "firstName": "Aaron",
                    "lastName": "Judge",
                    "nameSlug": "aaron-judge-592450"
                }
            },
            {
                "season": "2023",
                "stat": {
                    "gamesPlayed": 1,
                    "groundOuts": 1,
                    "airOuts": 0,
                    "doubles": 0,
                    "triples": 0,
                    "homeRuns": 0,
                    "strikeOuts": 1,
                    "baseOnBalls": 0,
                    "intentionalWalks": 0,
                    "hits": 1,
                    "hitByPitch": 0,
                    "avg": ".333",
                    "atBats": 3,
                    "obp": ".333",
                    "slg": ".333",
                    "ops": ".666",
                    "groundIntoDoublePlay": 0,
                    "groundIntoTriplePlay": 0,
                    "numberOfPitches": 10,
                    "plateAppearances": 3,
                    "totalBases": 1,
                    "rbi": 0,
                    "leftOnBase": 0,
                    "sacBunts": 0,
                    "sacFlies": 0,
                    "babip": ".500",
                    "groundOutsToAirouts": "1.00",
                    "catchersInterference": 0,
                    "atBatsPerHomeRun": "-.--"
                },
                "team": {
                    "id": 147,
                    "name": "New York Yankees"
                },
                "opponent": {
                    "id": 116,
                    "name": "Detroit Tigers"
                },
                "gameType": "R",
                "numTeams": 1,
                "pitcher": {
                    "id": 669373,
                    "fullName": "Tarik Skubal",
                    "firstName": "Tarik",
                    "lastName": "Skubal",
                    "nameSlug": "tarik-skubal-669373"
                },
                "batter": {
                    "id": 592450,
                    "fullName": "Aaron Judge",
                    "firstName": "Aaron",
                    "lastName": "Judge",
                    "nameSlug": "aaron-judge-592450"
                }
            },
            {
                "season": "2024",
                "stat": {
                    "gamesPlayed": 2,
                    "groundOuts": 1,
                    "airOuts": 0,
                    "doubles": 1,
                    "triples": 0,
                    "homeRuns": 1,
                    "strikeOuts": 2,
                    "baseOnBalls": 0,
                    "intentionalWalks": 0,
                    "hits": 3,
                    "hitByPitch": 0,
                    "avg": ".500",
                    "atBats": 6,
                    "obp": ".500",
                    "slg": "1.167",
                    "ops": "1.667",
                    "groundIntoDoublePlay": 1,
                    "groundIntoTriplePlay": 0,
                    "numberOfPitches": 19,
                    "plateAppearances": 6,
                    "totalBases": 7,
                    "rbi": 1,
                    "leftOnBase": 2,
                    "sacBunts": 0,
                    "sacFlies": 0,
                    "babip": ".667",
                    "groundOutsToAirouts": "1.00",
                    "catchersInterference": 0,
                    "atBatsPerHomeRun": "6.00"
                },
                "team": {
                    "id": 147,
                    "name": "New York Yankees"
                },
                "opponent": {
                    "id": 116,
                    "name": "Detroit Tigers"
                },
                "gameType": "R",
                "numTeams": 1,
                "pitcher": {
                    "id": 669373,
                    "fullName": "Tarik Skubal",
                    "firstName": "Tarik",
                    "lastName": "Skubal",
                    "nameSlug": "tarik-skubal-669373"
                },
                "batter": {
                    "id": 592450,
                    "fullName": "Aaron Judge",
                    "firstName": "Aaron",
                    "lastName": "Judge",
                    "nameSlug": "aaron-judge-592450"
                }
            },
            {
                "season": "2025",
                "stat": {
                    "gamesPlayed": 1,
                    "groundOuts": 0,
                    "airOuts": 1,
                    "doubles": 0,
                    "triples": 0,
                    "homeRuns": 0,
                    "strikeOuts": 1,
                    "baseOnBalls": 0,
                    "intentionalWalks": 0,
                    "hits": 1,
                    "hitByPitch": 0,
                    "avg": ".333",
                    "atBats": 3,
                    "obp": ".333",
                    "slg": ".333",
                    "ops": ".666",
                    "groundIntoDoublePlay": 0,
                    "groundIntoTriplePlay": 0,
                    "numberOfPitches": 14,
                    "plateAppearances": 3,
                    "totalBases": 1,
                    "rbi": 0,
                    "leftOnBase": 2,
                    "sacBunts": 0,
                    "sacFlies": 0,
                    "babip": ".500",
                    "groundOutsToAirouts": "0.00",
                    "catchersInterference": 0,
                    "atBatsPerHomeRun": "-.--"
                },
                "team": {
                    "id": 147,
                    "name": "New York Yankees"
                },
                "opponent": {
                    "id": 116,
                    "name": "Detroit Tigers"
                },
                "gameType": "R",
                "numTeams": 1,
                "pitcher": {
                    "id": 669373,
                    "fullName": "Tarik Skubal",
                    "firstName": "Tarik",
                    "lastName": "Skubal",
                    "nameSlug": "tarik-skubal-669373"
                },
                "batter": {
                    "id": 592450,
                    "fullName": "Aaron Judge",
                    "firstName": "Aaron",
                    "lastName": "Judge",
                    "nameSlug": "aaron-judge-592450"
                }
            }
        ]
    }
]
Get MLB player versus player — CODE SNIPPETS

curl --location --request GET 'https://zylalabs.com/api/15957/mlb+api/44501/get+mlb+player+versus+player?player_id=592450&opponent_id=669373&group=hitting' --header 'Authorization: Bearer YOUR_API_KEY' 


    
Request
Returns the players and teams whose name matches the text as it is typed, the way the search box of mlb.com suggests them: players with their id, team and headshot, teams of every level with their id, abbreviation and logos.
Endpoint ID: 44502
GET https://zylalabs.com/api/15957/mlb+api/44502/search+mlb+players+and+teams
INPUT PARAMETERS

Search MLB players and teams — Endpoint Features

Object Description
query Required Text to search for, 2 to 50 characters (e.g. "judge", "yankees").

Free test requests remaining: 3 of 3.


INPUT PARAMETERS

query
API EXAMPLE RESPONSE
JSON
{
    "players": [
        {
            "name": "Aaron Judge",
            "displayName": "Aaron Judge",
            "playerId": 592450,
            "teamId": 147,
            "headshots": [
                {
                    "type": "SMALL_60X60",
                    "url": "https://img.mlbstatic.com/mlb-photos/image/upload/t_w60/t_headshot_silo/v1/people/592450/headshot/silo/current"
                }
            ],
            "teamTriCode": "NYY",
            "active": true,
            "useName": "Aaron",
            "useLastName": "Judge",
            "boxscoreName": "Judge"
        }
    ]
}
Search MLB players and teams — CODE SNIPPETS

curl --location --request GET 'https://zylalabs.com/api/15957/mlb+api/44502/search+mlb+players+and+teams?query=judge' --header 'Authorization: Bearer YOUR_API_KEY' 


    
Request
Returns the players, past and present, whose first, last or full name matches the text, each with their bio, current team, position, bats and throws, debut and draft year.
Endpoint ID: 44503
GET https://zylalabs.com/api/15957/mlb+api/44503/search+mlb+players
INPUT PARAMETERS

Search MLB players — Endpoint Features

Object Description
query Required Name to search for, 2 to 50 characters (e.g. "aaron judge", "ohtani").
sport Optional Optional sport the player played in: "mlb", "aaa", "aa", "high_a", "single_a", "rookie" or "winter" (every level when left out). Use the /general/sports endpoint to list valid values.
active Optional Optional: "true" for active players only (defaults to "false").

Free test requests remaining: 3 of 3.


INPUT PARAMETERS

query
sport
active
API EXAMPLE RESPONSE
JSON
[
    {
        "id": 660271,
        "fullName": "Shohei Ohtani",
        "firstName": "Shohei",
        "lastName": "Ohtani",
        "primaryNumber": "17",
        "birthDate": "1994-07-05",
        "currentAge": 32,
        "birthCity": "Oshu",
        "birthCountry": "Japan",
        "height": "6' 4\"",
        "weight": 210,
        "active": true,
        "currentTeam": {
            "id": 119,
            "name": "Los Angeles Dodgers"
        },
        "primaryPosition": {
            "code": "Y",
            "name": "Two-Way Player",
            "type": "Two-Way Player",
            "abbreviation": "TWP"
        },
        "useName": "Shohei",
        "useLastName": "Ohtani",
        "boxscoreName": "Ohtani",
        "nickName": "Showtime",
        "gender": "M",
        "isPlayer": true,
        "isVerified": false,
        "pronunciation": "show-HEY oh-TAWN-ee",
        "mlbDebutDate": "2018-03-29",
        "batSide": {
            "code": "L",
            "description": "Left"
        },
        "pitchHand": {
            "code": "R",
            "description": "Right"
        },
        "nameFirstLast": "Shohei Ohtani",
        "nameSlug": "shohei-ohtani-660271",
        "firstLastName": "Shohei Ohtani",
        "lastFirstName": "Ohtani, Shohei",
        "lastInitName": "Ohtani, S",
        "initLastName": "S Ohtani",
        "fullFMLName": "Shohei Ohtani",
        "fullLFMName": "Ohtani, Shohei",
        "strikeZoneTop": 3.369,
        "strikeZoneBottom": 1.7
    }
]
Search MLB players — CODE SNIPPETS

curl --location --request GET 'https://zylalabs.com/api/15957/mlb+api/44503/search+mlb+players?query=ohtani&sport=mlb&active=true' --header 'Authorization: Bearer YOUR_API_KEY' 


    
Request
Returns the minor league affiliates of a club in a season (Triple-A, Double-A, High-A, Single-A, Rookie and Dominican Summer League), each with what the /team/list endpoint gives.
Endpoint ID: 44504
GET https://zylalabs.com/api/15957/mlb+api/44504/get+mlb+team+affiliates
INPUT PARAMETERS

Get MLB team affiliates — Endpoint Features

Object Description
team_id Required Team id (e.g. "147"). Use the /team/list endpoint to list valid values.
season Optional Optional season year (e.g. "2026"; defaults to the current season). Use the /general/seasons endpoint to list valid values.

Free test requests remaining: 3 of 3.


INPUT PARAMETERS

team_id
season
API EXAMPLE RESPONSE
JSON
[
    {
        "allStarStatus": "F",
        "id": 386,
        "name": "New York Yankees Prospects",
        "season": 2026,
        "venue": {
            "id": 2523,
            "name": "George M. Steinbrenner Field"
        },
        "teamCode": "nyp",
        "fileCode": "t386",
        "abbreviation": "NYP",
        "teamName": "Yankees Prospects",
        "locationName": "Tampa",
        "firstYearOfPlay": "2001",
        "league": {
            "id": 590,
            "name": "Futures Game"
        },
        "sport": {
            "id": 21,
            "name": "Minor League Baseball"
        },
        "shortName": "Yankees Prospects",
        "parentOrgName": "New York Yankees",
        "parentOrgId": 147,
        "franchiseName": "Yankees Prospects",
        "clubName": "Yankees Prospects",
        "active": true,
        "logo": "https://www.mlbstatic.com/team-logos/386.svg",
        "logoOnDark": "https://www.mlbstatic.com/team-logos/team-cap-on-dark/386.svg"
    },
    {
        "allStarStatus": "N",
        "id": 531,
        "name": "Scranton/Wilkes-Barre RailRiders",
        "season": 2026,
        "venue": {
            "id": 2797,
            "name": "PNC Field"
        },
        "teamCode": "swb",
        "fileCode": "t531",
        "abbreviation": "SWB",
        "teamName": "RailRiders",
        "locationName": "Moosic",
        "firstYearOfPlay": "1989",
        "league": {
            "id": 117,
            "name": "International League"
        },
        "division": {
            "id": 219,
            "name": "International League East"
        },
        "sport": {
            "id": 11,
            "name": "Triple-A"
        },
        "shortName": "Scranton/WB",
        "parentOrgName": "New York Yankees",
        "parentOrgId": 147,
        "franchiseName": "Scranton/WB",
        "clubName": "RailRiders",
        "active": true,
        "logo": "https://www.mlbstatic.com/team-logos/531.svg",
        "logoOnDark": "https://www.mlbstatic.com/team-logos/team-cap-on-dark/531.svg"
    },
    {
        "allStarStatus": "N",
        "id": 1956,
        "name": "Somerset Patriots",
        "season": 2026,
        "venue": {
            "id": 5418,
            "name": "TD Bank Ballpark"
        },
        "teamCode": "som",
        "fileCode": "t1956",
        "abbreviation": "SOM",
        "teamName": "Patriots",
        "locationName": "Bridgewater",
        "firstYearOfPlay": "1998",
        "league": {
            "id": 113,
            "name": "Eastern League"
        },
        "division": {
            "id": 212,
            "name": "Eastern League Northeast"
        },
        "sport": {
            "id": 12,
            "name": "Double-A"
        },
        "shortName": "Somerset",
        "parentOrgName": "New York Yankees",
        "parentOrgId": 147,
        "franchiseName": "Somerset",
        "clubName": "Patriots",
        "active": true,
        "logo": "https://www.mlbstatic.com/team-logos/1956.svg",
        "logoOnDark": "https://www.mlbstatic.com/team-logos/team-cap-on-dark/1956.svg"
    },
    {
        "allStarStatus": "N",
        "id": 537,
        "name": "Hudson Valley Renegades",
        "season": 2026,
        "venue": {
            "id": 2757,
            "name": "Heritage Financial Park"
        },
        "teamCode": "hdv",
        "fileCode": "t537",
        "abbreviation": "HV",
        "teamName": "Renegades",
        "locationName": "Wappingers Falls",
        "firstYearOfPlay": "1994",
        "league": {
            "id": 116,
            "name": "South Atlantic League"
        },
        "division": {
            "id": 237,
            "name": "South Atlantic League North"
        },
        "sport": {
            "id": 13,
            "name": "High-A"
        },
        "shortName": "Hudson Valley",
        "parentOrgName": "New York Yankees",
        "parentOrgId": 147,
        "franchiseName": "Hudson Valley",
        "clubName": "Renegades",
        "active": true,
        "logo": "https://www.mlbstatic.com/team-logos/537.svg",
        "logoOnDark": "https://www.mlbstatic.com/team-logos/team-cap-on-dark/537.svg"
    },
    {
        "allStarStatus": "N",
        "id": 634,
        "name": "DSL NYY Bombers",
        "season": 2026,
        "venue": {
            "id": 6096,
            "name": "New York Yankees DR Complex"
        },
        "teamCode": "dyb",
        "fileCode": "t634",
        "abbreviation": "D-NYB",
        "teamName": "DSL NYY Bombers",
        "locationName": "New York",
        "firstYearOfPlay": "1985",
        "league": {
            "id": 130,
            "name": "Dominican Summer League"
        },
        "division": {
            "id": 401,
            "name": "Dominican Summer League Southeast"
        },
        "sport": {
            "id": 16,
            "name": "Rookie"
        },
        "shortName": "DSL NYY Bombers",
        "parentOrgName": "New York Yankees",
        "parentOrgId": 147,
        "franchiseName": "DSL NYY Bombers",
        "clubName": "DSL NYY Bombers",
        "active": true,
        "logo": "https://www.mlbstatic.com/team-logos/634.svg",
        "logoOnDark": "https://www.mlbstatic.com/team-logos/team-cap-on-dark/634.svg"
    }
]
Get MLB team affiliates — CODE SNIPPETS

curl --location --request GET 'https://zylalabs.com/api/15957/mlb+api/44504/get+mlb+team+affiliates?team_id=147&season=2026' --header 'Authorization: Bearer YOUR_API_KEY' 


    
Request
Returns the manager and coaching staff of a team in a season, each with their job, title and number.
Endpoint ID: 44505
GET https://zylalabs.com/api/15957/mlb+api/44505/get+mlb+team+coaches
INPUT PARAMETERS

Get MLB team coaches — Endpoint Features

Object Description
team_id Required Team id (e.g. "147"). Use the /team/list endpoint to list valid values.
season Optional Optional season year (e.g. "2026"; defaults to the current season). Use the /general/seasons endpoint to list valid values.

Free test requests remaining: 3 of 3.


INPUT PARAMETERS

team_id
season
API EXAMPLE RESPONSE
JSON
[
    {
        "person": {
            "id": 111213,
            "fullName": "Aaron Boone",
            "nameSlug": "aaron-boone-111213"
        },
        "jerseyNumber": "17",
        "job": "Manager",
        "jobId": "MNGR",
        "title": "Manager"
    },
    {
        "person": {
            "id": 110385,
            "fullName": "Brad Ausmus",
            "nameSlug": "brad-ausmus-110385"
        },
        "jerseyNumber": "65",
        "job": "Bench Coach",
        "jobId": "COAB",
        "title": "Bench Coach"
    },
    {
        "person": {
            "id": 494875,
            "fullName": "James Rowson",
            "nameSlug": "james-rowson-494875"
        },
        "jerseyNumber": "82",
        "job": "Hitting Coach",
        "jobId": "COAT",
        "title": "Hitting Coach"
    },
    {
        "person": {
            "id": 605217,
            "fullName": "Casey Dykes",
            "nameSlug": "casey-dykes-605217"
        },
        "jerseyNumber": "78",
        "job": "Assistant Hitting Coach",
        "jobId": "COAA",
        "title": "Assistant Hitting Coach"
    },
    {
        "person": {
            "id": 691153,
            "fullName": "Jake Hirst",
            "nameSlug": "jake-hirst-691153"
        },
        "jerseyNumber": "84",
        "job": "Assistant Hitting Coach",
        "jobId": "COAA",
        "title": "Assistant Hitting Coach"
    },
    {
        "person": {
            "id": 666880,
            "fullName": "Matt Blake",
            "nameSlug": "matt-blake-666880"
        },
        "jerseyNumber": "77",
        "job": "Pitching Coach",
        "jobId": "COAP",
        "title": "Pitching Coach"
    },
    {
        "person": {
            "id": 502011,
            "fullName": "Preston Claiborne",
            "nameSlug": "preston-claiborne-502011"
        },
        "jerseyNumber": "79",
        "job": "Assistant Pitching Coach",
        "jobId": "COPA",
        "title": "Assistant Pitching Coach"
    },
    {
        "person": {
            "id": 800100,
            "fullName": "Desi Druschel",
            "nameSlug": "desi-druschel-800100"
        },
        "jerseyNumber": "83",
        "job": "Assistant Pitching Coach",
        "jobId": "COPA",
        "title": "Assistant Pitching Coach"
    },
    {
        "person": {
            "id": 639658,
            "fullName": "Dan Fiorito",
            "nameSlug": "dan-fiorito-639658"
        },
        "jerseyNumber": "85",
        "job": "First Base Coach",
        "jobId": "COA1",
        "title": "First Base/Infield/Baserunning Coach"
    },
    {
        "person": {
            "id": 467588,
            "fullName": "Luis Rojas",
            "nameSlug": "luis-rojas-467588"
        },
        "jerseyNumber": "67",
        "job": "Third Base Coach",
        "jobId": "COA3",
        "title": "Third Base/Outfield Coach"
    },
    {
        "person": {
            "id": 678933,
            "fullName": "Tanner Swanson",
            "nameSlug": "tanner-swanson-678933"
        },
        "jerseyNumber": "76",
        "job": "Coach",
        "jobId": "COAC",
        "title": "Major League Field Coordinator and Director of Catching"
    }
]
Get MLB team coaches — CODE SNIPPETS

curl --location --request GET 'https://zylalabs.com/api/15957/mlb+api/44505/get+mlb+team+coaches?team_id=147&season=2026' --header 'Authorization: Bearer YOUR_API_KEY' 


    
Request
Returns a team with its names, abbreviation, location, venue with its address and field dimensions, spring training venue and league, league, division, sport, parent club, first year of play and logos.
Endpoint ID: 44506
GET https://zylalabs.com/api/15957/mlb+api/44506/get+mlb+team+details
INPUT PARAMETERS

Get MLB team details — Endpoint Features

Object Description
team_id Required Team id (e.g. "147"). Use the /team/list endpoint to list valid values.

Free test requests remaining: 3 of 3.


INPUT PARAMETERS

team_id
API EXAMPLE RESPONSE
JSON
{
    "springLeague": {
        "id": 115,
        "name": "Grapefruit League",
        "abbreviation": "GL"
    },
    "allStarStatus": "N",
    "id": 147,
    "name": "New York Yankees",
    "season": 2026,
    "venue": {
        "id": 3313,
        "name": "Yankee Stadium",
        "location": {
            "address1": "One East 161st Street",
            "city": "Bronx",
            "state": "New York",
            "stateAbbrev": "NY",
            "postalCode": "10451",
            "defaultCoordinates": {
                "latitude": 40.82919482,
                "longitude": -73.9264977
            },
            "azimuthAngle": 75,
            "elevation": 55,
            "country": "USA",
            "phone": "(718) 293-4300"
        },
        "fieldInfo": {
            "capacity": 46537,
            "turfType": "Grass",
            "roofType": "Open",
            "leftLine": 318,
            "leftCenter": 399,
            "center": 408,
            "rightCenter": 385,
            "rightLine": 314
        },
        "active": true,
        "season": "2026"
    },
    "springVenue": {
        "id": 2523
    },
    "teamCode": "nya",
    "fileCode": "nyy",
    "abbreviation": "NYY",
    "teamName": "Yankees",
    "locationName": "Bronx",
    "firstYearOfPlay": "1903",
    "league": {
        "id": 103,
        "name": "American League",
        "abbreviation": "AL",
        "nameShort": "American",
        "seasonState": "offseason",
        "hasWildCard": true,
        "hasSplitSeason": false,
        "numGames": 162,
        "hasPlayoffPoints": false,
        "numTeams": 15,
        "numWildcardTeams": 3,
        "seasonDateInfo": {
            "seasonId": "2026",
            "preSeasonStartDate": "2026-01-01",
            "preSeasonEndDate": "2026-02-19",
            "seasonStartDate": "2026-02-20",
            "springStartDate": "2026-02-20",
            "springEndDate": "2026-03-24",
            "regularSeasonStartDate": "2026-03-25",
            "lastDate1stHalf": "2026-07-12",
            "allStarDate": "2026-07-14",
            "firstDate2ndHalf": "2026-07-16",
            "regularSeasonEndDate": "2026-09-27",
            "postSeasonStartDate": "2026-09-28",
            "postSeasonEndDate": "2026-10-31",
            "seasonEndDate": "2026-10-31",
            "offseasonStartDate": "2026-11-01",
            "offSeasonEndDate": "2026-12-31",
            "seasonLevelGamedayType": "P",
            "gameLevelGamedayType": "P",
            "qualifierPlateAppearances": 3.1,
            "qualifierOutsPitched": 3
        },
        "season": "2026",
        "orgCode": "AL",
        "conferencesInUse": false,
        "divisionsInUse": true,
        "sport": {
            "id": 1
        },
        "sortOrder": 21,
        "active": true
    },
    "division": {
        "id": 201,
        "name": "American League East",
        "season": "2026",
        "nameShort": "AL East",
        "abbreviation": "ALE",
        "league": {
            "id": 103
        },
        "sport": {
            "id": 1
        },
        "hasWildcard": false,
        "sortOrder": 22,
        "numPlayoffTeams": 1,
        "active": true
    },
    "sport": {
        "id": 1,
        "code": "mlb",
        "name": "Major League Baseball",
        "abbreviation": "MLB",
        "sortOrder": 11,
        "activeStatus": true
    },
    "shortName": "NY Yankees",
    "franchiseName": "New York",
    "clubName": "Yankees",
    "active": true,
    "logo": "https://www.mlbstatic.com/team-logos/147.svg",
    "logoOnDark": "https://www.mlbstatic.com/team-logos/team-cap-on-dark/147.svg"
}
Get MLB team details — CODE SNIPPETS

curl --location --request GET 'https://zylalabs.com/api/15957/mlb+api/44506/get+mlb+team+details?team_id=147' --header 'Authorization: Bearer YOUR_API_KEY' 


    
Request
Returns every name and city a franchise has had, from the latest to the first, each with the seasons it was used.
Endpoint ID: 44507
GET https://zylalabs.com/api/15957/mlb+api/44507/get+mlb+team+history
INPUT PARAMETERS

Get MLB team history — Endpoint Features

Object Description
team_id Required Team id (e.g. "147"). Use the /team/list endpoint to list valid values.

Free test requests remaining: 3 of 3.


INPUT PARAMETERS

team_id
API EXAMPLE RESPONSE
JSON
[
    {
        "allStarStatus": "N",
        "id": 147,
        "name": "New York Yankees",
        "season": 2009,
        "venue": {
            "id": 3313,
            "name": "Yankee Stadium"
        },
        "springVenue": {
            "id": 2523
        },
        "teamCode": "nya",
        "fileCode": "nyy",
        "abbreviation": "NYY",
        "teamName": "Yankees",
        "locationName": "Bronx",
        "firstYearOfPlay": "1903",
        "league": {
            "id": 103,
            "name": "American League"
        },
        "sport": {
            "id": 1,
            "name": "Major League Baseball"
        },
        "shortName": "NY Yankees",
        "franchiseName": "New York",
        "clubName": "Yankees",
        "active": true
    },
    {
        "allStarStatus": "N",
        "id": 147,
        "name": "New York Yankees",
        "season": 1974,
        "venue": {
            "id": 25,
            "name": "Shea Stadium"
        },
        "teamCode": "nya",
        "fileCode": "nyy",
        "abbreviation": "NYY",
        "teamName": "Yankees",
        "locationName": "Flushing",
        "firstYearOfPlay": "1903",
        "league": {
            "id": 103,
            "name": "American League"
        },
        "sport": {
            "id": 1,
            "name": "Major League Baseball"
        },
        "shortName": "NY Yankees",
        "franchiseName": "New York",
        "clubName": "Yankees",
        "active": true
    },
    {
        "allStarStatus": "N",
        "id": 147,
        "name": "New York Yankees",
        "season": 1923,
        "venue": {
            "id": 9,
            "name": "Yankee Stadium I"
        },
        "teamCode": "nya",
        "fileCode": "nyy",
        "abbreviation": "NYY",
        "teamName": "Yankees",
        "locationName": "Bronx",
        "firstYearOfPlay": "1903",
        "league": {
            "id": 103,
            "name": "American League"
        },
        "sport": {
            "id": 1,
            "name": "Major League Baseball"
        },
        "shortName": "NY Yankees",
        "franchiseName": "New York",
        "clubName": "Yankees",
        "active": true
    },
    {
        "allStarStatus": "N",
        "id": 147,
        "name": "New York Yankees",
        "season": 1913,
        "venue": {
            "id": 3140,
            "name": "Polo Grounds IV"
        },
        "teamCode": "nya",
        "fileCode": "nyy",
        "abbreviation": "NYY",
        "teamName": "Yankees",
        "locationName": "New York",
        "firstYearOfPlay": "1903",
        "league": {
            "id": 103,
            "name": "American League"
        },
        "sport": {
            "id": 1,
            "name": "Major League Baseball"
        },
        "shortName": "NY Yankees",
        "franchiseName": "New York",
        "clubName": "Yankees",
        "active": true
    },
    {
        "allStarStatus": "N",
        "id": 147,
        "name": "New York Highlanders",
        "season": 1903,
        "venue": {
            "id": 3127,
            "name": "Hilltop Park"
        },
        "teamCode": "nya",
        "fileCode": "nyy",
        "abbreviation": "NYH",
        "teamName": "Highlanders",
        "locationName": "New York",
        "firstYearOfPlay": "1903",
        "league": {
            "id": 103,
            "name": "American League"
        },
        "sport": {
            "id": 1,
            "name": "Major League Baseball"
        },
        "shortName": "NY Yankees",
        "franchiseName": "New York",
        "clubName": "Highlanders",
        "active": true
    }
]
Get MLB team history — CODE SNIPPETS

curl --location --request GET 'https://zylalabs.com/api/15957/mlb+api/44507/get+mlb+team+history?team_id=147' --header 'Authorization: Bearer YOUR_API_KEY' 


    
Request
Returns the leaders of a team in a statistic over a season, each with their rank, value and the stat group it counts in.
Endpoint ID: 44508
GET https://zylalabs.com/api/15957/mlb+api/44508/get+mlb+team+leaders
INPUT PARAMETERS

Get MLB team leaders — Endpoint Features

Object Description
team_id Required Team id (e.g. "147"). Use the /team/list endpoint to list valid values.
category Required Leader category (e.g. "homeRuns", "battingAverage", "earnedRunAverage", "strikeouts"). Use the /general/leader-categories endpoint to list valid values.
season Optional Optional season year (e.g. "2026"; defaults to the current season). Use the /general/seasons endpoint to list valid values.
limit Optional Optional number of leaders, from 1 to 50 (defaults to 10).

Free test requests remaining: 3 of 3.


INPUT PARAMETERS

team_id
category
season
limit
API EXAMPLE RESPONSE
JSON
[
    {
        "leaderCategory": "homeRuns",
        "season": "2026",
        "gameType": {
            "id": "R",
            "description": "Regular Season"
        },
        "leaders": [
            {
                "rank": 1,
                "value": "41",
                "team": {
                    "id": 147,
                    "name": "New York Yankees"
                },
                "league": {
                    "id": 103,
                    "name": "AL"
                },
                "person": {
                    "id": 700250,
                    "fullName": "Ben Rice",
                    "firstName": "Ben",
                    "lastName": "Rice",
                    "nameSlug": "ben-rice-700250"
                },
                "sport": {
                    "id": 1,
                    "abbreviation": "MLB"
                },
                "season": "2026"
            },
            {
                "rank": 2,
                "value": "19",
                "team": {
                    "id": 147,
                    "name": "New York Yankees"
                },
                "league": {
                    "id": 103,
                    "name": "AL"
                },
                "person": {
                    "id": 665862,
                    "fullName": "Jazz Chisholm Jr.",
                    "firstName": "Jazz",
                    "lastName": "Chisholm",
                    "nameSlug": "jazz-chisholm-665862"
                },
                "sport": {
                    "id": 1,
                    "abbreviation": "MLB"
                },
                "season": "2026"
            },
            {
                "rank": 3,
                "value": "18",
                "team": {
                    "id": 147,
                    "name": "New York Yankees"
                },
                "league": {
                    "id": 103,
                    "name": "AL"
                },
                "person": {
                    "id": 502671,
                    "fullName": "Paul Goldschmidt",
                    "firstName": "Paul",
                    "lastName": "Goldschmidt",
                    "nameSlug": "paul-goldschmidt-502671"
                },
                "sport": {
                    "id": 1,
                    "abbreviation": "MLB"
                },
                "season": "2026"
            },
            {
                "rank": 3,
                "value": "18",
                "team": {
                    "id": 147,
                    "name": "New York Yankees"
                },
                "league": {
                    "id": 103,
                    "name": "AL"
                },
                "person": {
                    "id": 663757,
                    "fullName": "Trent Grisham",
                    "firstName": "Trent",
                    "lastName": "Grisham",
                    "nameSlug": "trent-grisham-663757"
                },
                "sport": {
                    "id": 1,
                    "abbreviation": "MLB"
                },
                "season": "2026"
            },
            {
                "rank": 3,
                "value": "18",
                "team": {
                    "id": 147,
                    "name": "New York Yankees"
                },
                "league": {
                    "id": 103,
                    "name": "AL"
                },
                "person": {
                    "id": 592450,
                    "fullName": "Aaron Judge",
                    "firstName": "Aaron",
                    "lastName": "Judge",
                    "nameSlug": "aaron-judge-592450"
                },
                "sport": {
                    "id": 1,
                    "abbreviation": "MLB"
                },
                "season": "2026"
            },
            {
                "rank": 6,
                "value": "17",
                "team": {
                    "id": 147,
                    "name": "New York Yankees"
                },
                "league": {
                    "id": 103,
                    "name": "AL"
                },
                "person": {
                    "id": 641355,
                    "fullName": "Cody Bellinger",
                    "firstName": "Cody",
                    "lastName": "Bellinger",
                    "nameSlug": "cody-bellinger-641355"
                },
                "sport": {
                    "id": 1,
                    "abbreviation": "MLB"
                },
                "season": "2026"
            },
            {
                "rank": 7,
                "value": "14",
                "team": {
                    "id": 147,
                    "name": "New York Yankees"
                },
                "league": {
                    "id": 103,
                    "name": "AL"
                },
                "person": {
                    "id": 676609,
                    "fullName": "José Caballero",
                    "firstName": "José",
                    "lastName": "Caballero",
                    "nameSlug": "jose-caballero-676609"
                },
                "sport": {
                    "id": 1,
                    "abbreviation": "MLB"
                },
                "season": "2026"
            },
            {
                "rank": 7,
                "value": "14",
                "team": {
                    "id": 147,
                    "name": "New York Yankees"
                },
                "league": {
                    "id": 103,
                    "name": "AL"
                },
                "person": {
                    "id": 669224,
                    "fullName": "Austin Wells",
                    "firstName": "Austin",
                    "lastName": "Wells",
                    "nameSlug": "austin-wells-669224"
                },
                "sport": {
                    "id": 1,
                    "abbreviation": "MLB"
                },
                "season": "2026"
            },
            {
                "rank": 9,
                "value": "11",
                "team": {
                    "id": 147,
                    "name": "New York Yankees"
                },
                "league": {
                    "id": 103,
                    "name": "AL"
                },
                "person": {
                    "id": 682987,
                    "fullName": "Spencer Jones",
                    "firstName": "Spencer",
                    "lastName": "Jones",
                    "nameSlug": "spencer-jones-682987"
                },
                "sport": {
                    "id": 1,
                    "abbreviation": "MLB"
                },
                "season": "2026"
            },
            {
                "rank": 9,
                "value": "11",
                "team": {
                    "id": 147,
                    "name": "New York Yankees"
                },
                "league": {
                    "id": 103,
                    "name": "AL"
                },
                "person": {
                    "id": 641857,
                    "fullName": "Ryan McMahon",
                    "firstName": "Ryan",
                    "lastName": "McMahon",
                    "nameSlug": "ryan-mcmahon-641857"
                },
                "sport": {
                    "id": 1,
                    "abbreviation": "MLB"
                },
                "season": "2026"
            }
        ],
        "statGroup": "hitting",
        "team": {
            "id": 147,
            "name": "New York Yankees"
        },
        "totalSplits": 19
    }
]
Get MLB team leaders — CODE SNIPPETS

curl --location --request GET 'https://zylalabs.com/api/15957/mlb+api/44508/get+mlb+team+leaders?team_id=147&category=homeRuns&season=2026&limit=10' --header 'Authorization: Bearer YOUR_API_KEY' 


    
Request
Returns the teams of a sport in a season, by name, with their id, abbreviation, location, venue, league, division, parent club, first year of play and logos.
Endpoint ID: 44509
GET https://zylalabs.com/api/15957/mlb+api/44509/get+mlb+teams
INPUT PARAMETERS

Get MLB teams — Endpoint Features

Object Description
sport Optional Optional sport: "mlb", "aaa", "aa", "high_a", "single_a", "rookie" or "winter" (defaults to "mlb"). Use the /general/sports endpoint to list valid values.
season Optional Optional season year (e.g. "2026"; defaults to the current season). Use the /general/seasons endpoint to list valid values.

Free test requests remaining: 3 of 3.


INPUT PARAMETERS

sport
season
API EXAMPLE RESPONSE
JSON
[
    {
        "springLeague": {
            "id": 114,
            "name": "Cactus League",
            "abbreviation": "CL"
        },
        "allStarStatus": "N",
        "id": 109,
        "name": "Arizona Diamondbacks",
        "season": 2026,
        "venue": {
            "id": 15,
            "name": "Chase Field"
        },
        "springVenue": {
            "id": 4249
        },
        "teamCode": "ari",
        "fileCode": "ari",
        "abbreviation": "AZ",
        "teamName": "D-backs",
        "locationName": "Phoenix",
        "firstYearOfPlay": "1996",
        "league": {
            "id": 104,
            "name": "National League"
        },
        "division": {
            "id": 203,
            "name": "National League West"
        },
        "sport": {
            "id": 1,
            "name": "Major League Baseball"
        },
        "shortName": "Arizona",
        "franchiseName": "Arizona",
        "clubName": "Diamondbacks",
        "active": true,
        "logo": "https://www.mlbstatic.com/team-logos/109.svg",
        "logoOnDark": "https://www.mlbstatic.com/team-logos/team-cap-on-dark/109.svg"
    },
    {
        "springLeague": {
            "id": 114,
            "name": "Cactus League",
            "abbreviation": "CL"
        },
        "allStarStatus": "N",
        "id": 133,
        "name": "Athletics",
        "season": 2026,
        "venue": {
            "id": 2529,
            "name": "Sutter Health Park"
        },
        "springVenue": {
            "id": 2507
        },
        "teamCode": "ath",
        "fileCode": "ath",
        "abbreviation": "ATH",
        "teamName": "Athletics",
        "locationName": "Sacramento",
        "firstYearOfPlay": "1901",
        "league": {
            "id": 103,
            "name": "American League"
        },
        "division": {
            "id": 200,
            "name": "American League West"
        },
        "sport": {
            "id": 1,
            "name": "Major League Baseball"
        },
        "shortName": "Athletics",
        "franchiseName": "Athletics",
        "clubName": "Athletics",
        "active": true,
        "logo": "https://www.mlbstatic.com/team-logos/133.svg",
        "logoOnDark": "https://www.mlbstatic.com/team-logos/team-cap-on-dark/133.svg"
    },
    {
        "springLeague": {
            "id": 115,
            "name": "Grapefruit League",
            "abbreviation": "GL"
        },
        "allStarStatus": "N",
        "id": 144,
        "name": "Atlanta Braves",
        "season": 2026,
        "venue": {
            "id": 4705,
            "name": "Truist Park"
        },
        "springVenue": {
            "id": 5380
        },
        "teamCode": "atl",
        "fileCode": "atl",
        "abbreviation": "ATL",
        "teamName": "Braves",
        "locationName": "Atlanta",
        "firstYearOfPlay": "1871",
        "league": {
            "id": 104,
            "name": "National League"
        },
        "division": {
            "id": 204,
            "name": "National League East"
        },
        "sport": {
            "id": 1,
            "name": "Major League Baseball"
        },
        "shortName": "Atlanta",
        "franchiseName": "Atlanta",
        "clubName": "Braves",
        "active": true,
        "logo": "https://www.mlbstatic.com/team-logos/144.svg",
        "logoOnDark": "https://www.mlbstatic.com/team-logos/team-cap-on-dark/144.svg"
    },
    {
        "springLeague": {
            "id": 115,
            "name": "Grapefruit League",
            "abbreviation": "GL"
        },
        "allStarStatus": "N",
        "id": 110,
        "name": "Baltimore Orioles",
        "season": 2026,
        "venue": {
            "id": 2,
            "name": "Oriole Park at Camden Yards"
        },
        "springVenue": {
            "id": 2508
        },
        "teamCode": "bal",
        "fileCode": "bal",
        "abbreviation": "BAL",
        "teamName": "Orioles",
        "locationName": "Baltimore",
        "firstYearOfPlay": "1901",
        "league": {
            "id": 103,
            "name": "American League"
        },
        "division": {
            "id": 201,
            "name": "American League East"
        },
        "sport": {
            "id": 1,
            "name": "Major League Baseball"
        },
        "shortName": "Baltimore",
        "franchiseName": "Baltimore",
        "clubName": "Orioles",
        "active": true,
        "logo": "https://www.mlbstatic.com/team-logos/110.svg",
        "logoOnDark": "https://www.mlbstatic.com/team-logos/team-cap-on-dark/110.svg"
    },
    {
        "springLeague": {
            "id": 115,
            "name": "Grapefruit League",
            "abbreviation": "GL"
        },
        "allStarStatus": "N",
        "id": 111,
        "name": "Boston Red Sox",
        "season": 2026,
        "venue": {
            "id": 3,
            "name": "Fenway Park"
        },
        "springVenue": {
            "id": 4309
        },
        "teamCode": "bos",
        "fileCode": "bos",
        "abbreviation": "BOS",
        "teamName": "Red Sox",
        "locationName": "Boston",
        "firstYearOfPlay": "1901",
        "league": {
            "id": 103,
            "name": "American League"
        },
        "division": {
            "id": 201,
            "name": "American League East"
        },
        "sport": {
            "id": 1,
            "name": "Major League Baseball"
        },
        "shortName": "Boston",
        "franchiseName": "Boston",
        "clubName": "Red Sox",
        "active": true,
        "logo": "https://www.mlbstatic.com/team-logos/111.svg",
        "logoOnDark": "https://www.mlbstatic.com/team-logos/team-cap-on-dark/111.svg"
    },
    {
        "springLeague": {
            "id": 114,
            "name": "Cactus League",
            "abbreviation": "CL"
        },
        "allStarStatus": "N",
        "id": 112,
        "name": "Chicago Cubs",
        "season": 2026,
        "venue": {
            "id": 17,
            "name": "Wrigley Field"
        },
        "springVenue": {
            "id": 4629
        },
        "teamCode": "chn",
        "fileCode": "chc",
        "abbreviation": "CHC",
        "teamName": "Cubs",
        "locationName": "Chicago",
        "firstYearOfPlay": "1874",
        "league": {
            "id": 104,
            "name": "National League"
        },
        "division": {
            "id": 205,
            "name": "National League Central"
        },
        "sport": {
            "id": 1,
            "name": "Major League Baseball"
        },
        "shortName": "Chi Cubs",
        "franchiseName": "Chicago",
        "clubName": "Cubs",
        "active": true,
        "logo": "https://www.mlbstatic.com/team-logos/112.svg",
        "logoOnDark": "https://www.mlbstatic.com/team-logos/team-cap-on-dark/112.svg"
    },
    {
        "springLeague": {
            "id": 114,
            "name": "Cactus League",
            "abbreviation": "CL"
        },
        "allStarStatus": "N",
        "id": 145,
        "name": "Chicago White Sox",
        "season": 2026,
        "venue": {
            "id": 4,
            "name": "Rate Field"
        },
        "springVenue": {
            "id": 3809
        },
        "teamCode": "cha",
        "fileCode": "cws",
        "abbreviation": "CWS",
        "teamName": "White Sox",
        "locationName": "Chicago",
        "firstYearOfPlay": "1901",
        "league": {
            "id": 103,
            "name": "American League"
        },
        "division": {
            "id": 202,
            "name": "American League Central"
        },
        "sport": {
            "id": 1,
            "name": "Major League Baseball"
        },
        "shortName": "Chi White Sox",
        "franchiseName": "Chicago",
        "clubName": "White Sox",
        "active": true,
        "logo": "https://www.mlbstatic.com/team-logos/145.svg",
        "logoOnDark": "https://www.mlbstatic.com/team-logos/team-cap-on-dark/145.svg"
    }
]
Get MLB teams — CODE SNIPPETS

curl --location --request GET 'https://zylalabs.com/api/15957/mlb+api/44509/get+mlb+teams?sport=mlb&season=2026' --header 'Authorization: Bearer YOUR_API_KEY' 


    
Request
Returns the latest news stories of a team, each with its slug, link, headline, summary, byline, date, image and the teams and players it is about. 25 stories a page, up to 100.
Endpoint ID: 44510
GET https://zylalabs.com/api/15957/mlb+api/44510/get+mlb+team+news
INPUT PARAMETERS

Get MLB team news — Endpoint Features

Object Description
team_id Required Team id of a major league club (e.g. "147"). Use the /team/list endpoint to list valid values.
page Optional Optional page number, from 1 to 4 (defaults to 1).

Free test requests remaining: 3 of 3.


INPUT PARAMETERS

team_id
page
API EXAMPLE RESPONSE
JSON
{
    "page": 1,
    "per_page": 25,
    "has_more": false,
    "results": [
        {
            "slug": "commissioner-letter-to-fans-december-2026",
            "url": "https://www.mlb.com/news/commissioner-letter-to-fans-december-2026",
            "headline": "A letter to baseball fans from Commissioner Rob Manfred",
            "title": "Commissioner letter to fans December 2026",
            "summary": " ",
            "byline": null,
            "type": "Article",
            "date": "2026-12-02T00:00:12.924Z",
            "updated_at": "2026-12-02T00:00:12.924Z",
            "image": {
                "title": "mlb 2",
                "url": "https://img.mlbstatic.com/mlb-images/image/upload/t_16x9/t_w1024/mlb/ppwq6snzptokcbyct8bp",
                "thumbnail": "https://img.mlbstatic.com/mlb-images/image/upload/w_250,h_250,c_thumb,g_auto,q_auto,f_jpg/mlb/ppwq6snzptokcbyct8bp"
            },
            "teams": [],
            "players": []
        },
        {
            "slug": "mlb-lockout-begins-december-2-2026",
            "url": "https://www.mlb.com/news/mlb-lockout-begins-december-2-2026",
            "headline": "Without agreement on new CBA, MLB commences lockout",
            "title": "MLB lockout begins December 2, 2026",
            "summary": "SCOTTSDALE – Meetings between Major League Baseball and the MLB Players Association wrapped on Tuesday without a new Collective Bargaining Agreement, and with no further meetings planned, the league implemented a lockout of its players at 12:01 a.m. ET Wednesday.\nCommissioner Rob Manfred announced the league’s plans on Tuesday evening",
            "byline": "Mark Feinsand",
            "type": "Article",
            "date": "2026-12-02T05:01:00Z",
            "updated_at": "2026-12-02T05:06:19.395Z",
            "image": {
                "title": "baseball bats dugout 2",
                "url": "https://img.mlbstatic.com/mlb-images/image/upload/t_16x9/t_w1024/mlb/ttakzplmjc0b4kypxbmx",
                "thumbnail": "https://img.mlbstatic.com/mlb-images/image/upload/w_250,h_250,c_thumb,g_auto,q_auto,f_jpg/mlb/ttakzplmjc0b4kypxbmx"
            },
            "teams": [],
            "players": []
        },
        {
            "slug": "why-is-there-a-lockout-in-mlb-2026-27",
            "url": "https://www.mlb.com/news/why-is-there-a-lockout-in-mlb-2026-27",
            "headline": "FAQ on CBA negotiations between MLB and MLBPA",
            "title": "Why is there a lockout in MLB?",
            "summary": "Q: What is a lockout?\nA: Under federal labor law, when the Collective Bargaining Agreement (CBA) expires without a new agreement in place, the League has the right to lockout the players, and conversely, the players have the right to go on strike at a time of their choosing. In",
            "byline": null,
            "type": "Article",
            "date": "2026-12-02T05:05:34.89Z",
            "updated_at": "2026-12-02T05:37:45.603Z",
            "image": {
                "title": "mlb 3",
                "url": "https://img.mlbstatic.com/mlb-images/image/upload/t_16x9/t_w1024/mlb/ook55ujg0dxejoxfyu0w",
                "thumbnail": "https://img.mlbstatic.com/mlb-images/image/upload/w_250,h_250,c_thumb,g_auto,q_auto,f_jpg/mlb/ook55ujg0dxejoxfyu0w"
            },
            "teams": [],
            "players": []
        },
        {
            "slug": "a-note-about-our-website-content",
            "url": "https://www.mlb.com/news/a-note-about-our-website-content",
            "headline": "A note about our website content",
            "title": "A note about our website content",
            "summary": "You may notice that the content on this site looks a little different than usual. The reason for this is because the Collective Bargaining Agreement between the players and the league expired just before midnight on Dec. 1 and a new CBA is currently being negotiated between the owners and",
            "byline": null,
            "type": "Article",
            "date": "2026-12-02T05:01:00Z",
            "updated_at": "2026-12-02T05:13:36.873Z",
            "image": {
                "title": "mlb 1",
                "url": "https://img.mlbstatic.com/mlb-images/image/upload/t_16x9/t_w1024/mlb/wpf4w3s0bm8lh0t6ylwe",
                "thumbnail": "https://img.mlbstatic.com/mlb-images/image/upload/w_250,h_250,c_thumb,g_auto,q_auto,f_jpg/mlb/wpf4w3s0bm8lh0t6ylwe"
            },
            "teams": [],
            "players": []
        },
        {
            "slug": "more-cba-updates-and-information-x6454",
            "url": "https://www.mlb.com/news/more-cba-updates-and-information-x6454",
            "headline": "More CBA updates and information",
            "title": "More CBA updates and information",
            "summary": null,
            "byline": null,
            "type": null,
            "date": "2026-12-02T05:05:26.326Z",
            "updated_at": "2026-12-02T05:05:26.326Z",
            "image": {
                "title": "LTPF-thumbnail",
                "url": "https://img.mlbstatic.com/mlb-images/image/upload/t_16x9/t_w1024/mlb/lkfpblpmliw4ohx2x4ou",
                "thumbnail": "https://img.mlbstatic.com/mlb-images/image/upload/w_250,h_250,c_thumb,g_auto,q_auto,f_jpg/mlb/lkfpblpmliw4ohx2x4ou"
            },
            "teams": [],
            "players": []
        }
    ]
}
Get MLB team news — CODE SNIPPETS

curl --location --request GET 'https://zylalabs.com/api/15957/mlb+api/44510/get+mlb+team+news?team_id=147&page=1' --header 'Authorization: Bearer YOUR_API_KEY' 


    
Request
Returns the players of a team, as the active roster, the 40-man roster, the full season, the depth chart, the non-roster invitees or every player in its history, each with their number, position, status and bio.
Endpoint ID: 44511
GET https://zylalabs.com/api/15957/mlb+api/44511/get+mlb+team+roster
INPUT PARAMETERS

Get MLB team roster — Endpoint Features

Object Description
team_id Required Team id (e.g. "147"). Use the /team/list endpoint to list valid values.
roster_type Optional Optional roster type (defaults to "active"). Use the /general/roster-types endpoint to list valid values.
season Optional Optional season year (e.g. "2026"; defaults to the current season). Use the /general/seasons endpoint to list valid values.
date Optional Optional date in the YYYY-MM-DD format, for the roster as it was on that day (e.g. "2026-07-01").

Free test requests remaining: 3 of 3.


INPUT PARAMETERS

team_id
roster_type
season
date
API EXAMPLE RESPONSE
JSON
[
    {
        "person": {
            "id": 645305,
            "fullName": "Ali Sánchez",
            "firstName": "Ali",
            "lastName": "Sánchez",
            "primaryNumber": "39",
            "birthDate": "1997-01-20",
            "currentAge": 29,
            "birthCity": "Carora",
            "birthCountry": "Venezuela",
            "height": "6' 0\"",
            "weight": 200,
            "active": true,
            "primaryPosition": {
                "code": "2",
                "name": "Catcher",
                "type": "Catcher",
                "abbreviation": "C"
            },
            "useName": "Ali",
            "useLastName": "Sánchez",
            "middleName": "Miguel",
            "boxscoreName": "Sánchez, A",
            "gender": "M",
            "nameMatrilineal": "Marchan",
            "isPlayer": true,
            "isVerified": true,
            "pronunciation": "AH-lee",
            "mlbDebutDate": "2020-08-10",
            "batSide": {
                "code": "R",
                "description": "Right"
            },
            "pitchHand": {
                "code": "R",
                "description": "Right"
            },
            "nameFirstLast": "Ali Sánchez",
            "nameSlug": "ali-sanchez-645305",
            "firstLastName": "Ali Sánchez",
            "lastFirstName": "Sánchez, Ali",
            "lastInitName": "Sánchez, A",
            "initLastName": "A Sánchez",
            "fullFMLName": "Ali Miguel Sánchez",
            "fullLFMName": "Sánchez, Ali Miguel",
            "strikeZoneTop": 3.195,
            "strikeZoneBottom": 1.612
        },
        "jerseyNumber": "39",
        "position": {
            "code": "2",
            "name": "Catcher",
            "type": "Catcher",
            "abbreviation": "C"
        },
        "status": {
            "code": "A",
            "description": "Active"
        },
        "parentTeamId": 147
    },
    {
        "person": {
            "id": 642708,
            "fullName": "Amed Rosario",
            "firstName": "German",
            "lastName": "Rosario",
            "birthDate": "1995-11-20",
            "currentAge": 31,
            "birthCity": "Santo Domingo",
            "birthCountry": "Dominican Republic",
            "height": "6' 1\"",
            "weight": 227,
            "active": true,
            "primaryPosition": {
                "code": "6",
                "name": "Shortstop",
                "type": "Infielder",
                "abbreviation": "SS"
            },
            "useName": "Amed",
            "useLastName": "Rosario",
            "middleName": "Amed",
            "boxscoreName": "Rosario, A",
            "nickName": "Rosie",
            "gender": "M",
            "nameMatrilineal": "Valdez",
            "isPlayer": true,
            "isVerified": true,
            "pronunciation": "row-SAH-ree-oh",
            "mlbDebutDate": "2017-08-01",
            "batSide": {
                "code": "R",
                "description": "Right"
            },
            "pitchHand": {
                "code": "R",
                "description": "Right"
            },
            "nameFirstLast": "Amed Rosario",
            "nameSlug": "amed-rosario-642708",
            "firstLastName": "Amed Rosario",
            "lastFirstName": "Rosario, Amed",
            "lastInitName": "Rosario, A",
            "initLastName": "A Rosario",
            "fullFMLName": "German Amed Rosario",
            "fullLFMName": "Rosario, German Amed",
            "strikeZoneTop": 3.27,
            "strikeZoneBottom": 1.65
        },
        "jerseyNumber": "14",
        "position": {
            "code": "5",
            "name": "Third Base",
            "type": "Infielder",
            "abbreviation": "3B"
        },
        "status": {
            "code": "A",
            "description": "Active"
        },
        "parentTeamId": 147
    },
    {
        "person": {
            "id": 683011,
            "fullName": "Anthony Volpe",
            "firstName": "Anthony",
            "lastName": "Volpe",
            "primaryNumber": "11",
            "birthDate": "2001-04-28",
            "currentAge": 25,
            "birthCity": "New York",
            "birthStateProvince": "NY",
            "birthCountry": "USA",
            "height": "5' 10\"",
            "weight": 197,
            "active": true,
            "primaryPosition": {
                "code": "6",
                "name": "Shortstop",
                "type": "Infielder",
                "abbreviation": "SS"
            },
            "useName": "Anthony",
            "useLastName": "Volpe",
            "middleName": "Michael",
            "boxscoreName": "Volpe",
            "gender": "M",
            "isPlayer": true,
            "isVerified": true,
            "draftYear": 2019,
            "pronunciation": "VOLE-pee",
            "mlbDebutDate": "2023-03-30",
            "batSide": {
                "code": "R",
                "description": "Right"
            },
            "pitchHand": {
                "code": "R",
                "description": "Right"
            },
            "nameFirstLast": "Anthony Volpe",
            "nameSlug": "anthony-volpe-683011",
            "firstLastName": "Anthony Volpe",
            "lastFirstName": "Volpe, Anthony",
            "lastInitName": "Volpe, A",
            "initLastName": "A Volpe",
            "fullFMLName": "Anthony Michael Volpe",
            "fullLFMName": "Volpe, Anthony Michael",
            "strikeZoneTop": 3.116,
            "strikeZoneBottom": 1.572
        },
        "jerseyNumber": "11",
        "position": {
            "code": "6",
            "name": "Shortstop",
            "type": "Infielder",
            "abbreviation": "SS"
        },
        "status": {
            "code": "A",
            "description": "Active"
        },
        "parentTeamId": 147
    }
]
Get MLB team roster — CODE SNIPPETS

curl --location --request GET 'https://zylalabs.com/api/15957/mlb+api/44511/get+mlb+team+roster?team_id=147&roster_type=active&season=2026&date=2026-07-01' --header 'Authorization: Bearer YOUR_API_KEY' 


    
Request
Returns every game of a team in a season, spring training and postseason included, with what the /game/list endpoint gives for each.
Endpoint ID: 44512
GET https://zylalabs.com/api/15957/mlb+api/44512/get+mlb+team+schedule
INPUT PARAMETERS

Get MLB team schedule — Endpoint Features

Object Description
team_id Required Team id (e.g. "147"). Use the /team/list endpoint to list valid values.
season Optional Optional season year (e.g. "2026"; defaults to the current season). Use the /general/seasons endpoint to list valid values.
game_type Optional Optional game type (e.g. "regular_season"; every type when left out). Use the /general/game-types endpoint to list valid values.

Free test requests remaining: 3 of 3.


INPUT PARAMETERS

team_id
season
game_type
API EXAMPLE RESPONSE
JSON
[
    {
        "gamePk": 823244,
        "gameGuid": "cc3d3afe-591e-44b8-a273-5730f50910b7",
        "gameType": "R",
        "season": "2026",
        "gameDate": "2026-03-26T00:05:00Z",
        "officialDate": "2026-03-25",
        "status": {
            "abstractGameState": "Final",
            "codedGameState": "F",
            "detailedState": "Final",
            "statusCode": "F",
            "startTimeTBD": false,
            "abstractGameCode": "F"
        },
        "teams": {
            "away": {
                "team": {
                    "id": 147,
                    "name": "New York Yankees",
                    "teamCode": "nya",
                    "abbreviation": "NYY",
                    "teamName": "Yankees",
                    "locationName": "Bronx",
                    "league": {
                        "id": 103,
                        "name": "American League"
                    },
                    "division": {
                        "id": 201,
                        "name": "American League East"
                    },
                    "shortName": "NY Yankees",
                    "franchiseName": "New York",
                    "clubName": "Yankees",
                    "logo": "https://www.mlbstatic.com/team-logos/147.svg",
                    "logoOnDark": "https://www.mlbstatic.com/team-logos/team-cap-on-dark/147.svg"
                },
                "leagueRecord": {
                    "wins": 1,
                    "losses": 0,
                    "ties": 0,
                    "pct": "1.000"
                },
                "score": 7,
                "isWinner": true,
                "probablePitcher": {
                    "id": 608331,
                    "fullName": "Max Fried",
                    "nameSlug": "max-fried-608331"
                },
                "splitSquad": false,
                "seriesNumber": 1,
                "springLeague": {
                    "id": 115,
                    "name": "Grapefruit League",
                    "abbreviation": "GL"
                }
            },
            "home": {
                "team": {
                    "id": 137,
                    "name": "San Francisco Giants",
                    "teamCode": "sfn",
                    "abbreviation": "SF",
                    "teamName": "Giants",
                    "locationName": "San Francisco",
                    "league": {
                        "id": 104,
                        "name": "National League"
                    },
                    "division": {
                        "id": 203,
                        "name": "National League West"
                    },
                    "shortName": "San Francisco",
                    "franchiseName": "San Francisco",
                    "clubName": "Giants",
                    "logo": "https://www.mlbstatic.com/team-logos/137.svg",
                    "logoOnDark": "https://www.mlbstatic.com/team-logos/team-cap-on-dark/137.svg"
                },
                "leagueRecord": {
                    "wins": 0,
                    "losses": 1,
                    "ties": 0,
                    "pct": ".000"
                },
                "score": 0,
                "isWinner": false,
                "probablePitcher": {
                    "id": 657277,
                    "fullName": "Logan Webb",
                    "nameSlug": "logan-webb-657277"
                },
                "splitSquad": false,
                "seriesNumber": 1,
                "springLeague": {
                    "id": 114,
                    "name": "Cactus League",
                    "abbreviation": "CL"
                }
            }
        }
    }
]
Get MLB team schedule — CODE SNIPPETS

curl --location --request GET 'https://zylalabs.com/api/15957/mlb+api/44512/get+mlb+team+schedule?team_id=147&season=2026&game_type=regular_season' --header 'Authorization: Bearer YOUR_API_KEY' 


    
Request
Returns the hitting, pitching, fielding, catching or base running statistics of a team in a season, in total, advanced, by month, by day of the week, at home and away or in wins and losses.
Endpoint ID: 44513
GET https://zylalabs.com/api/15957/mlb+api/44513/get+mlb+team+statistics
INPUT PARAMETERS

Get MLB team statistics — Endpoint Features

Object Description
team_id Required Team id (e.g. "147"). Use the /team/list endpoint to list valid values.
group Optional Optional stat group (defaults to "hitting"). Use the /general/stat-groups endpoint to list valid values.
type Optional Optional stat type (defaults to "season"). Use the /general/team-stat-types endpoint to list valid values.
season Optional Optional season year (e.g. "2026"; defaults to the current season). Use the /general/seasons endpoint to list valid values.

Free test requests remaining: 3 of 3.


INPUT PARAMETERS

team_id
group
type
season
API EXAMPLE RESPONSE
JSON
[
    {
        "type": {
            "displayName": "season"
        },
        "group": {
            "displayName": "hitting"
        },
        "exemptions": [],
        "splits": [
            {
                "season": "2026",
                "stat": {
                    "gamesPlayed": 161,
                    "groundOuts": 1206,
                    "airOuts": 1446,
                    "runs": 739,
                    "doubles": 224,
                    "triples": 19,
                    "homeRuns": 223,
                    "strikeOuts": 1480,
                    "baseOnBalls": 572,
                    "intentionalWalks": 18,
                    "hits": 1250,
                    "hitByPitch": 38,
                    "avg": ".235",
                    "atBats": 5330,
                    "obp": ".311",
                    "slg": ".409",
                    "ops": ".720",
                    "caughtStealing": 49,
                    "stolenBases": 153,
                    "stolenBasePercentage": ".757",
                    "caughtStealingPercentage": ".243",
                    "groundIntoDoublePlay": 92,
                    "numberOfPitches": 23857,
                    "plateAppearances": 5997,
                    "totalBases": 2181,
                    "rbi": 706,
                    "leftOnBase": 1002,
                    "sacBunts": 10,
                    "sacFlies": 42,
                    "babip": ".280",
                    "groundOutsToAirouts": "0.83",
                    "catchersInterference": 5,
                    "atBatsPerHomeRun": "23.90"
                },
                "team": {
                    "id": 147,
                    "name": "New York Yankees"
                }
            }
        ]
    }
]
Get MLB team statistics — CODE SNIPPETS

curl --location --request GET 'https://zylalabs.com/api/15957/mlb+api/44513/get+mlb+team+statistics?team_id=147&group=hitting&type=season&season=2026' --header 'Authorization: Bearer YOUR_API_KEY' 


    
Request
Returns the transactions of a team between two dates, the latest first: trades, signings, releases, assignments, injured list moves, recalls and options, each with the player, the teams and its description.
Endpoint ID: 44514
GET https://zylalabs.com/api/15957/mlb+api/44514/get+mlb+team+transactions
INPUT PARAMETERS

Get MLB team transactions — Endpoint Features

Object Description
team_id Required Team id (e.g. "147"). Use the /team/list endpoint to list valid values.
start_date Optional Optional first date in the YYYY-MM-DD format (defaults to 6 days before "end_date"). At most 31 days before "end_date".
end_date Optional Optional last date in the YYYY-MM-DD format (defaults to today).

Free test requests remaining: 3 of 3.


INPUT PARAMETERS

team_id
start_date
end_date
API EXAMPLE RESPONSE
JSON
[
    {
        "id": 933568,
        "person": {
            "id": 821877,
            "fullName": "Blake Schaaf",
            "nameSlug": "blake-schaaf-821877"
        },
        "toTeam": {
            "id": 147,
            "name": "New York Yankees"
        },
        "date": "2026-07-29",
        "effectiveDate": "2026-07-29",
        "resolutionDate": "2026-07-29",
        "typeCode": "SFA",
        "typeDesc": "Signed as Free Agent",
        "description": "New York Yankees signed free agent SS Blake Schaaf to a minor league contract."
    },
    {
        "id": 931999,
        "person": {
            "id": 542194,
            "fullName": "Christian Bethancourt",
            "nameSlug": "christian-bethancourt-542194"
        },
        "toTeam": {
            "id": 147,
            "name": "New York Yankees"
        },
        "date": "2026-07-28",
        "effectiveDate": "2026-07-28",
        "resolutionDate": "2026-07-28",
        "typeCode": "SFA",
        "typeDesc": "Signed as Free Agent",
        "description": "New York Yankees signed free agent C Christian Bethancourt to a minor league contract."
    },
    {
        "id": 931412,
        "person": {
            "id": 682987,
            "fullName": "Spencer Jones",
            "nameSlug": "spencer-jones-682987"
        },
        "fromTeam": {
            "id": 531,
            "name": "Scranton/Wilkes-Barre Highlanders"
        },
        "toTeam": {
            "id": 147,
            "name": "New York Yankees"
        },
        "date": "2026-07-26",
        "effectiveDate": "2026-07-26",
        "typeCode": "CU",
        "typeDesc": "Recalled",
        "description": "New York Yankees recalled CF Spencer Jones from Scranton/Wilkes-Barre RailRiders."
    },
    {
        "id": 931413,
        "person": {
            "id": 641355,
            "fullName": "Cody Bellinger",
            "nameSlug": "cody-bellinger-641355"
        },
        "toTeam": {
            "id": 147,
            "name": "New York Yankees"
        },
        "date": "2026-07-26",
        "effectiveDate": "2026-07-26",
        "resolutionDate": "2026-07-26",
        "typeCode": "SC",
        "typeDesc": "Status Change",
        "description": "New York Yankees placed LF Cody Bellinger on the 10-day injured list. Left hamstring strain."
    },
    {
        "id": 944050,
        "person": {
            "id": 682987,
            "fullName": "Spencer Jones",
            "nameSlug": "spencer-jones-682987"
        },
        "toTeam": {
            "id": 147,
            "name": "New York Yankees"
        },
        "date": "2026-07-26",
        "effectiveDate": "2026-07-26",
        "resolutionDate": "2026-07-26",
        "typeCode": "SC",
        "typeDesc": "Status Change",
        "description": "New York Yankees activated CF Spencer Jones."
    },
    {
        "id": 930211,
        "person": {
            "id": 682987,
            "fullName": "Spencer Jones",
            "nameSlug": "spencer-jones-682987"
        },
        "fromTeam": {
            "id": 147,
            "name": "New York Yankees"
        },
        "toTeam": {
            "id": 531,
            "name": "Scranton/Wilkes-Barre Highlanders"
        },
        "date": "2026-07-23",
        "effectiveDate": "2026-07-23",
        "typeCode": "OPT",
        "typeDesc": "Optioned",
        "description": "New York Yankees optioned CF Spencer Jones to Scranton/Wilkes-Barre RailRiders."
    },
    {
        "id": 930071,
        "person": {
            "id": 665645,
            "fullName": "Kervin Castro",
            "nameSlug": "kervin-castro-665645"
        },
        "fromTeam": {
            "id": 147,
            "name": "New York Yankees"
        },
        "toTeam": {
            "id": 531,
            "name": "Scranton/Wilkes-Barre Highlanders"
        },
        "date": "2026-07-22",
        "effectiveDate": "2026-07-22",
        "typeCode": "OPT",
        "typeDesc": "Optioned",
        "description": "New York Yankees optioned RHP Kervin Castro to Scranton/Wilkes-Barre RailRiders."
    },
    {
        "id": 929846,
        "person": {
            "id": 682987,
            "fullName": "Spencer Jones",
            "nameSlug": "spencer-jones-682987"
        },
        "fromTeam": {
            "id": 531,
            "name": "Scranton/Wilkes-Barre Highlanders"
        },
        "toTeam": {
            "id": 147,
            "name": "New York Yankees"
        },
        "date": "2026-07-22",
        "effectiveDate": "2026-07-22",
        "typeCode": "CU",
        "typeDesc": "Recalled",
        "description": "New York Yankees recalled CF Spencer Jones from Scranton/Wilkes-Barre RailRiders."
    },
    {
        "id": 930070,
        "person": {
            "id": 608331,
            "fullName": "Max Fried",
            "nameSlug": "max-fried-608331"
        },
        "toTeam": {
            "id": 147,
            "name": "New York Yankees"
        },
        "date": "2026-07-22",
        "effectiveDate": "2026-07-22",
        "resolutionDate": "2026-07-22",
        "typeCode": "SC",
        "typeDesc": "Status Change",
        "description": "New York Yankees activated LHP Max Fried from the 15-day injured list."
    },
    {
        "id": 928954,
        "person": {
            "id": 695684,
            "fullName": "Elmer Rodríguez",
            "nameSlug": "elmer-rodriguez-695684"
        },
        "fromTeam": {
            "id": 147,
            "name": "New York Yankees"
        },
        "toTeam": {
            "id": 531,
            "name": "Scranton/Wilkes-Barre Highlanders"
        },
        "date": "2026-07-20",
        "effectiveDate": "2026-07-20",
        "typeCode": "OPT",
        "typeDesc": "Optioned",
        "description": "New York Yankees optioned RHP Elmer Rodríguez to Scranton/Wilkes-Barre RailRiders."
    },
    {
        "id": 929080,
        "person": {
            "id": 842599,
            "fullName": "Austin Berggren",
            "nameSlug": "austin-berggren-842599"
        },
        "toTeam": {
            "id": 147,
            "name": "New York Yankees"
        },
        "date": "2026-07-20",
        "effectiveDate": "2026-07-20",
        "resolutionDate": "2026-07-20",
        "typeCode": "SGN",
        "typeDesc": "Signed",
        "description": "New York Yankees signed RHP Austin Berggren."
    },
    {
        "id": 929079,
        "person": {
            "id": 835219,
            "fullName": "Anthony Potestio",
            "nameSlug": "anthony-potestio-835219"
        },
        "toTeam": {
            "id": 147,
            "name": "New York Yankees"
        },
        "date": "2026-07-20",
        "effectiveDate": "2026-07-20",
        "resolutionDate": "2026-07-20",
        "typeCode": "SGN",
        "typeDesc": "Signed",
        "description": "New York Yankees signed SS Anthony Potestio."
    },
    {
        "id": 929078,
        "person": {
            "id": 821903,
            "fullName": "Garrett Ahern",
            "nameSlug": "garrett-ahern-821903"
        },
        "toTeam": {
            "id": 147,
            "name": "New York Yankees"
        },
        "date": "2026-07-20",
        "effectiveDate": "2026-07-20",
        "resolutionDate": "2026-07-20",
        "typeCode": "SGN",
        "typeDesc": "Signed",
        "description": "New York Yankees signed RHP Garrett Ahern."
    },
    {
        "id": 929076,
        "person": {
            "id": 701331,
            "fullName": "Blake Cyr",
            "nameSlug": "blake-cyr-701331"
        },
        "toTeam": {
            "id": 147,
            "name": "New York Yankees"
        },
        "date": "2026-07-20",
        "effectiveDate": "2026-07-20",
        "resolutionDate": "2026-07-20",
        "typeCode": "SGN",
        "typeDesc": "Signed",
        "description": "New York Yankees signed OF Blake Cyr."
    }
]
Get MLB team transactions — CODE SNIPPETS

curl --location --request GET 'https://zylalabs.com/api/15957/mlb+api/44514/get+mlb+team+transactions?team_id=147&start_date=2026-07-01&end_date=2026-07-31' --header 'Authorization: Bearer YOUR_API_KEY' 


    

API Access Key & Authentication

After signing up, every developer is assigned a personal API access key, a unique combination of letters and digits provided to access to our API endpoint. To authenticate with the MLB API simply include your bearer token in the Authorization header.

Headers
Header Description
Authorization Required Should be Bearer access_key. See "Your API Access Key" above when you are subscribed.

No long-term commitment. Upgrade, downgrade, or cancel anytime. Free Trial includes up to 50 requests.

(Save 2 months with annual billing 🎉)

Starts at
$10,000/Year


  • Custom Volume
  • Custom Rate Limit
  • Specialized Customer Support
  • Real-Time API Monitoring

Overview

Baseball data: games and live scores, boxscores, pitch-by-pitch play by play, win probability, teams, rosters, player statistics, standings, leaders, draft and news.

General FAQs

To obtain your API key, first sign in to your account and navigate to the API you want to use. From the API's Pricing section, choose a plan and complete the subscription process. Once subscribed, return to the API page and you will see your API Access Key displayed at the top of the documentation page. You can use this key to authenticate your requests.

You can’t switch APIs during the free trial. If you subscribe to a different API, your trial will end and the new subscription will start as a paid plan.

The free trial lasts for 7 days and allows you to make up to 50 API requests.

No, the free trial is available only once, so we recommend using it on the API that interests you the most. Most of our APIs offer a free trial, but some may not include this option.

Yes. If the API offers a free trial, you will see a "Free 7-Day Trial" option in its Pricing section. The trial lasts for 7 days and allows up to 50 API requests, enabling you to evaluate the API before subscribing to a paid plan.

Zyla API Hub is like a big store for APIs, where you can find thousands of them all in one place. We also offer dedicated support and real-time monitoring of all APIs. Once you sign up, you can pick and choose which APIs you want to use. Just remember, each API needs its own subscription. But if you subscribe to multiple ones, you'll use the same key for all of them, making things easier for you.

Prices are listed in USD (United States Dollar), EUR (Euro), CAD (Canadian Dollar), AUD (Australian Dollar), and GBP (British Pound). We accept all major debit and credit cards. Our payment system uses the latest security technology and is powered by Stripe, one of the world's most reliable payment companies. If you have any trouble paying by card, just contact us at [email protected]

Additionally, if you already have an active subscription in any of these currencies (USD, EUR, CAD, AUD, GBP), that currency will remain for subsequent subscriptions. You can change the currency at any time as long as you don't have any active subscriptions.
The local currency shown on the pricing page is based on the country of your IP address and is provided for reference only. The actual prices are in USD (United States Dollar). When you make a payment, the charge will appear on your card statement in USD, even if you see the equivalent amount in your local currency on our website. This means you cannot pay directly with your local currency.
Occasionally, a bank may decline the charge due to its fraud protection settings. We suggest reaching out to your bank initially to check if they are blocking our charges. Also, you can access the Billing Portal and change the card associated to make the payment. If these does not work and you need further assistance, please contact our team at [email protected]
Prices are determined by a recurring monthly or yearly subscription, depending on the chosen plan.
API calls are deducted from your plan based on successful requests. Each plan comes with a specific number of calls that you can make per month. Only successful calls, indicated by a Status 200 response, will be counted against your total. This ensures that failed or incomplete requests do not impact your monthly quota.
Zyla API Hub works on a recurring monthly subscription system. Your billing cycle will start the day you purchase one of the paid plans, and it will renew the same day of the next month. So be aware to cancel your subscription beforehand if you want to avoid future charges.
To upgrade your current subscription plan, simply go to the pricing page of the API and select the plan you want to upgrade to. The upgrade will be instant, allowing you to immediately enjoy the features of the new plan. Please note that any remaining calls from your previous plan will not be carried over to the new plan, so be aware of this when upgrading. You will be charged the full amount of the new plan.
To check how many API calls you have left for the current month, refer to the 'X-Zyla-API-Calls-Monthly-Remaining' field in the response header. For example, if your plan allows 1,000 requests per month and you've used 100, this field in the response header will indicate 900 remaining calls.

You can monitor your API usage through the response headers included with every request:

x-zyla-api-calls-monthly-used: Shows the total number of API requests you have used during the current billing period.
x-zyla-api-calls-monthly-remaining: Shows the number of API requests you have remaining for the current billing period.

The 'X-Zyla-RateLimit-Reset' header shows the number of seconds until your rate limit resets. This tells you when your request count will start fresh. For example, if it displays 3,600, it means 3,600 seconds are left until the limit resets.

Yes, you can cancel your subscription at any time. Simply go to the Pricing section of the API you're subscribed to and click the "Unsubscribe" button.

Please note that upgrades, downgrades, and cancellations take effect immediately. Once your subscription is canceled, access to the service will end immediately, regardless of any remaining API calls in your quota.

After 7 days, you will be charged the full amount for the plan you were subscribed to during the trial. Therefore, it's important to cancel before the trial period ends. Refund requests for forgetting to cancel on time are not accepted.
When you subscribe to an API free trial, you can make up to 50 API calls. If you wish to make additional API calls beyond this limit, the API will prompt you to perform an "Start Your Paid Plan." You can find the "Start Your Paid Plan" button in your profile under Subscription -> Choose the API you are subscribed to -> Pricing tab.
You can contact us through our chat channel to receive immediate assistance. We are always online from 8 am to 5 pm (EST). If you reach us after that time, we will get back to you as soon as possible. Additionally, you can contact us via email at [email protected]

Please have a look at our Refund Policy: https://zylalabs.com/terms#refund


Related APIs