美国职业棒球大联盟 API

API ID 15957

棒球数据:比赛和实时比分,比赛记分表,逐球比赛实况,获胜概率,球队,名单,球员统计数据,排名,领跑者,选秀和新闻

API 文档

端点

请求
返回每支球队的比赛统计表:球队的击球、投球和守备总数据,每位球员的位置、击球顺序以及比赛和赛季数据,击球手、投手、替补席和牛棚,击球和守备记录,以及比赛信息(裁判、天气、时间、观众人数)
Endpoint ID: 44465
GET https://zylalabs.com/api/15957/mlb+api/44465/get+mlb+game+boxscore
输入参数

获取MLB比赛数据统计表 — 端点功能

对象 描述
game_id 必需 Game id (e.g. "849815"). Use the /game/list endpoint to list valid values.

剩余免费测试请求:3 / 3。


输入参数

game_id
API 示例响应
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
                }
            }
        }
    }
}
获取MLB比赛数据统计表 — 代码片段

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' 


    
请求
返回实时比赛中正在进行的打席(或已结束比赛中的最后一个打席):击球手、投手、球数、跑垒员、截至目前的每一球,以及击球手和投手的热区和冷区
Endpoint ID: 44466
GET https://zylalabs.com/api/15957/mlb+api/44466/get+mlb+game+current+play
输入参数

获取 MLB 比赛当前回合 — 端点功能

对象 描述
game_id 必需 Game id (e.g. "849815"). Use the /game/list endpoint to list valid values.

剩余免费测试请求:3 / 3。


输入参数

game_id
API 示例响应
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
}
获取 MLB 比赛当前回合 — 代码片段

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' 


    
请求
返回一场比赛及其类型 系列赛 日期和时间 状态 球队 场地 天气 观众人数和比赛时长 预计先发投手 官方记录员 回看和挑战次数 得分明细 获胜投手 败投手和救援成功投手以及比赛领军者
Endpoint ID: 44467
GET https://zylalabs.com/api/15957/mlb+api/44467/get+mlb+game+details
输入参数

获取美国职业棒球大联盟比赛详情 — 端点功能

对象 描述
game_id 必需 Game id (e.g. "849815"). Use the /game/list endpoint to list valid values.

剩余免费测试请求:3 / 3。


输入参数

game_id
API 示例响应
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
        }
    }
}
获取美国职业棒球大联盟比赛详情 — 代码片段

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' 


    
请求
返回比赛的视频集锦,每条包含标题、描述、日期、时长、图片、MP4 和 HLS 链接及标签,以及比赛回顾故事
Endpoint ID: 44468
GET https://zylalabs.com/api/15957/mlb+api/44468/get+mlb+game+highlights
输入参数

获取 MLB 比赛精彩集锦 — 端点功能

对象 描述
game_id 必需 Game id (e.g. "849815"). Use the /game/list endpoint to list valid values.

剩余免费测试请求:3 / 3。


输入参数

game_id
API 示例响应
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": []
        }
    ]
}
获取 MLB 比赛精彩集锦 — 代码片段

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' 


    
请求
逐局及总计返回各队的得分、安打、失误和残垒数,以及当前局数、球数、出局数、击球手、投手和垒上跑垒员
Endpoint ID: 44469
GET https://zylalabs.com/api/15957/mlb+api/44469/get+mlb+game+linescore
输入参数

获取 MLB 比赛逐局比分 — 端点功能

对象 描述
game_id 必需 Game id (e.g. "849815"). Use the /game/list endpoint to list valid values.

剩余免费测试请求:3 / 3。


输入参数

game_id
API 示例响应
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
}
获取 MLB 比赛逐局比分 — 代码片段

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' 


    
请求
返回某一天比赛的状态、球队和战绩、比分、包含局数、球数和垒上跑垒员的逐局比分、预计先发投手、获胜投手、失利投手和救援投手、比赛场地、电视和广播转播以及系列赛状态
Endpoint ID: 44470
GET https://zylalabs.com/api/15957/mlb+api/44470/get+mlb+games+by+date
输入参数

按日期获取 MLB 比赛 — 端点功能

对象 描述
date 可选 Optional date in the YYYY-MM-DD format, US Eastern time (e.g. "2026-09-15"; defaults to today).
sport 可选 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 team id, for the games of one team only (e.g. "147"). Use the /team/list endpoint to list valid values.
game_type 可选 Optional game type (e.g. "regular_season"; every type when left out). Use the /general/game-types endpoint to list valid values.

剩余免费测试请求:3 / 3。


输入参数

date
sport
team_id
game_type
API 示例响应
JSON
{
    "date": "2026-09-15"
}
按日期获取 MLB 比赛 — 代码片段

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' 


    
请求
返回当前正在进行的游戏,以及 /game/list 接口为每个游戏提供的信息
Endpoint ID: 44471
GET https://zylalabs.com/api/15957/mlb+api/44471/get+mlb+live+games
输入参数

观看MLB直播比赛 — 端点功能

对象 描述
sport 可选 Optional sport: "mlb", "aaa", "aa", "high_a", "single_a", "rookie" or "winter" (defaults to "mlb"). Use the /general/sports endpoint to list valid values.

剩余免费测试请求:3 / 3。


输入参数

sport
API 示例响应
JSON
[]
观看MLB直播比赛 — 代码片段

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


    
请求
按顺序返回一场比赛中的每次打席详情:结果及其描述、比分、局数、球数、击球手和投手、跑垒员及其移动、守备记录,以及每一球的类型、速度、旋转、位移、位置和判定;对于击入场内的球,还包括初速度、角度、距离和轨迹
Endpoint ID: 44472
GET https://zylalabs.com/api/15957/mlb+api/44472/get+mlb+game+play+by+play
输入参数

获取美国职业棒球大联盟比赛逐球记录 — 端点功能

对象 描述
game_id 必需 Game id (e.g. "849815"). Use the /game/list endpoint to list valid values.
inning 可选 Optional inning number, for the plays of one inning only (e.g. "9").

剩余免费测试请求:3 / 3。


输入参数

game_id
inning
API 示例响应
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
    }
]
获取美国职业棒球大联盟比赛逐球记录 — 代码片段

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' 


    
请求
返回比赛双方名单中每位球员的个人资料:姓名、号码、出生日期和地点、身高、体重、位置、惯用手和投球手、首秀以及好球带
Endpoint ID: 44473
GET https://zylalabs.com/api/15957/mlb+api/44473/get+mlb+game+players
输入参数

获取MLB比赛球员 — 端点功能

对象 描述
game_id 必需 Game id (e.g. "849815"). Use the /game/list endpoint to list valid values.

剩余免费测试请求:3 / 3。


输入参数

game_id
API 示例响应
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
    }
]
获取MLB比赛球员 — 代码片段

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' 


    
请求
返回得分的比赛中的攻防回合,以及 /game/play-by-play 端点为每个回合提供的内容
Endpoint ID: 44474
GET https://zylalabs.com/api/15957/mlb+api/44474/get+mlb+game+scoring+plays
输入参数

获取 MLB 比赛得分片段 — 端点功能

对象 描述
game_id 必需 Game id (e.g. "849815"). Use the /game/list endpoint to list valid values.

剩余免费测试请求:3 / 3。


输入参数

game_id
API 示例响应
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
    }
]
获取 MLB 比赛得分片段 — 代码片段

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' 


    
请求
返回每次打席结束后各队的获胜概率、增加的概率、杠杆指数、局数、事件、事件描述、比分、击球手和投手
Endpoint ID: 44475
GET https://zylalabs.com/api/15957/mlb+api/44475/get+mlb+game+win+probability
输入参数

获取 MLB 比赛获胜概率 — 端点功能

对象 描述
game_id 必需 Game id (e.g. "849815"). Use the /game/list endpoint to list valid values.

剩余免费测试请求:3 / 3。


输入参数

game_id
API 示例响应
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
    }
]
获取 MLB 比赛获胜概率 — 代码片段

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' 


    
请求
返回每个奖项的 ID、名称、描述和运动项目(MVP、赛扬奖、年度最佳新秀、金手套奖、银棒奖、名人堂、周度和月度最佳球员等),这些奖项均可作为 /league/award-winners 端点的“award_id”参数接受
Endpoint ID: 44476
GET https://zylalabs.com/api/15957/mlb+api/44476/get+mlb+awards
输入参数

剩余免费测试请求:3 / 3。

此端点不需要任何输入参数。

API 示例响应
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
    }
]
获取MLB奖项 — 代码片段

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


    
请求
返回某项运动的分区及其名称、缩写和联盟
Endpoint ID: 44477
GET https://zylalabs.com/api/15957/mlb+api/44477/get+mlb+divisions
输入参数

获取美国职业棒球大联盟分区 — 端点功能

对象 描述
sport 可选 Optional sport: "mlb", "aaa", "aa", "high_a", "single_a", "rookie" or "winter" (defaults to "mlb"). Use the /general/sports endpoint to list valid values.

剩余免费测试请求:3 / 3。


输入参数

sport
API 示例响应
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
    }
]
获取美国职业棒球大联盟分区 — 代码片段

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


    
请求
列出 /league/leaders 和 /team/leaders 端点的“category”参数接受的值(本垒打、打击率、自责分率、三振、救援成功、盗垒…)
Endpoint ID: 44478
GET https://zylalabs.com/api/15957/mlb+api/44478/get+mlb+leader+categories
输入参数

剩余免费测试请求:3 / 3。

此端点不需要任何输入参数。

API 示例响应
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"
]
获取 MLB 领先类别 — 代码片段

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


    
请求
返回某项运动的各个联赛及其缩写、赛季日期、比赛场数、分区和外卡设置
Endpoint ID: 44479
GET https://zylalabs.com/api/15957/mlb+api/44479/get+mlb+leagues
输入参数

获取 MLB 联盟列表 — 端点功能

对象 描述
sport 可选 Optional sport: "mlb", "aaa", "aa", "high_a", "single_a", "rookie" or "winter" (defaults to "mlb"). Use the /general/sports endpoint to list valid values.

剩余免费测试请求:3 / 3。


输入参数

sport
API 示例响应
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
    }
]
获取 MLB 联盟列表 — 代码片段

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


    
请求
列出 /player/statistics 端点的“type”参数可接受的值
Endpoint ID: 44480
GET https://zylalabs.com/api/15957/mlb+api/44480/get+mlb+player+stat+types
输入参数

剩余免费测试请求:3 / 3。

此端点不需要任何输入参数。

API 示例响应
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"
    }
]
获取 MLB 球员统计类型 — 代码片段

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


    
请求
返回所有职位及其代码、缩写、名称和类型,格式与“position”参数所接受的格式相同.
Endpoint ID: 44481
GET https://zylalabs.com/api/15957/mlb+api/44481/get+mlb+positions
输入参数

剩余免费测试请求:3 / 3。

此端点不需要任何输入参数。

API 示例响应
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
    }
]
获取美国职业棒球大联盟的位置 — 代码片段

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


    
请求
按最新到最早的顺序返回该运动的每个赛季,并列出春训、常规赛、全明星赛、季后赛和休赛期的日期,以及合格打席数和投球局数
Endpoint ID: 44482
GET https://zylalabs.com/api/15957/mlb+api/44482/get+mlb+seasons
输入参数

获取 MLB 赛季 — 端点功能

对象 描述
sport 可选 Optional sport: "mlb", "aaa", "aa", "high_a", "single_a", "rookie" or "winter" (defaults to "mlb"). Use the /general/sports endpoint to list valid values.

剩余免费测试请求:3 / 3。


输入参数

sport
API 示例响应
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
    }
]
获取 MLB 赛季 — 代码片段

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


    
请求
列出“sport”参数接受的值:美国职业棒球大联盟及其小联盟级别(3A、2A、高A、单A、新秀级)和冬季联赛
Endpoint ID: 44483
GET https://zylalabs.com/api/15957/mlb+api/44483/get+mlb+sports
输入参数

剩余免费测试请求:3 / 3。

此端点不需要任何输入参数。

API 示例响应
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"
    }
]
获取美国职业棒球大联盟体育内容 — 代码片段

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


    
请求
列出“group”参数接受的值
Endpoint ID: 44484
GET https://zylalabs.com/api/15957/mlb+api/44484/get+mlb+stat+groups
输入参数

剩余免费测试请求:3 / 3。

此端点不需要任何输入参数。

API 示例响应
JSON
[
    {
        "value": "hitting",
        "label": "Hitting"
    },
    {
        "value": "pitching",
        "label": "Pitching"
    },
    {
        "value": "fielding",
        "label": "Fielding"
    },
    {
        "value": "catching",
        "label": "Catching"
    },
    {
        "value": "running",
        "label": "Base running"
    }
]
获取 MLB 统计类别 — 代码片段

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


    
请求
返回某项运动在某个赛季的球场及其所在地、坐标、时区、容量、场地表面、屋顶和场地尺寸
Endpoint ID: 44485
GET https://zylalabs.com/api/15957/mlb+api/44485/get+mlb+venues
输入参数

获取美国职棒大联盟场馆 — 端点功能

对象 描述
sport 可选 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 season year (e.g. "2026"; defaults to the current season). Use the /general/seasons endpoint to list valid values.

剩余免费测试请求:3 / 3。


输入参数

sport
season
API 示例响应
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"
    }
]
获取美国职棒大联盟场馆 — 代码片段

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' 


    
请求
返回该奖项的获奖者,按时间从近到远排列,每位获奖者包含赛季、日期、球员及其位置、球队和备注
Endpoint ID: 44486
GET https://zylalabs.com/api/15957/mlb+api/44486/get+mlb+award+winners
输入参数

获取美国职业棒球大联盟奖项得主 — 端点功能

对象 描述
award_id 必需 Award id (e.g. "ALMVP", "NLCY", "MLBHOF"). Use the /general/awards endpoint to list valid values.
season 可选 Optional season year, for the winners of one season only (e.g. "2026"; every season when left out).

剩余免费测试请求:3 / 3。


输入参数

award_id
season
API 示例响应
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"
        }
    }
]
获取美国职业棒球大联盟奖项得主 — 代码片段

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' 


    
请求
按轮次返回 MLB 选秀的选秀结果,每项包含选秀顺位、球队、球员及其位置、学校、家乡和简介、签约奖金以及选秀价值
Endpoint ID: 44487
GET https://zylalabs.com/api/15957/mlb+api/44487/get+mlb+draft
输入参数

获取美国职业棒球大联盟选秀 — 端点功能

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

剩余免费测试请求:3 / 3。


输入参数

year
round
team_id
API 示例响应
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"
            }
        ]
    }
]
获取美国职业棒球大联盟选秀 — 代码片段

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' 


    
请求
返回休赛期的自由球员名单,每位球员均包含其姓名、位置、原球队、签约后的新球队、签约日期和备注
Endpoint ID: 44488
GET https://zylalabs.com/api/15957/mlb+api/44488/get+mlb+free+agents
输入参数

获取MLB自由球员 — 端点功能

对象 描述
season 可选 Optional season year the free agency follows (e.g. "2026"; defaults to the current season). Use the /general/seasons endpoint to list valid values.

剩余免费测试请求:3 / 3。


输入参数

season
API 示例响应
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"
        }
    }
]
获取MLB自由球员 — 代码片段

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


    
请求
返回一个赛季中某项统计数据的领先者及其排名、数值、球队和联盟
Endpoint ID: 44489
GET https://zylalabs.com/api/15957/mlb+api/44489/get+mlb+league+leaders
输入参数

获取美国职业棒球大联盟各项数据领先者 — 端点功能

对象 描述
category 必需 Leader category (e.g. "homeRuns", "battingAverage", "earnedRunAverage", "strikeouts"). Use the /general/leader-categories endpoint to list valid values.
group 可选 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 league: "al" (American League) or "nl" (National League) (both when left out).
season 可选 Optional season year (e.g. "2026"; defaults to the current season). Use the /general/seasons endpoint to list valid values.
game_type 可选 Optional game type (defaults to "regular_season"). Use the /general/game-types endpoint to list valid values.
pool 可选 Optional player pool (defaults to "qualified"). Use the /general/player-pools endpoint to list valid values.
sport 可选 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 number of leaders, from 1 to 100 (defaults to 10).

剩余免费测试请求:3 / 3。


输入参数

category
group
league
season
game_type
pool
sport
limit
API 示例响应
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
    }
]
获取美国职业棒球大联盟各项数据领先者 — 代码片段

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' 


    
请求
返回某项运动、联赛、球队或位置中每位球员的赛季统计数据,可按任意统计数据排序,每位球员均显示排名、球队、位置以及完整的击球、投球或守备数据 每页 50 位球员
Endpoint ID: 44490
GET https://zylalabs.com/api/15957/mlb+api/44490/get+mlb+player+statistics+leaderboard
输入参数

获取美国职业棒球大联盟球员统计排行榜 — 端点功能

对象 描述
group 可选 Optional stat group (defaults to "hitting"). Use the /general/stat-groups endpoint to list valid values.
sort 可选 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 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 league: "al" (American League) or "nl" (National League) (both when left out).
team_id 可选 Optional team id, for the players of one team only (e.g. "147"). Use the /team/list endpoint to list valid values.
position 可选 Optional position abbreviation (e.g. "SS", "C", "OF"). Use the /general/positions endpoint to list valid values.
season 可选 Optional season year (e.g. "2026"; defaults to the current season). Use the /general/seasons endpoint to list valid values.
game_type 可选 Optional game type (defaults to "regular_season"). Use the /general/game-types endpoint to list valid values.
pool 可选 Optional player pool (defaults to "qualified"). Use the /general/player-pools endpoint to list valid values.
sport 可选 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 page number, from 1 to 40 (defaults to 1).

剩余免费测试请求:3 / 3。


输入参数

group
sort
order
league
team_id
position
season
game_type
pool
sport
page
API 示例响应
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"
            }
        }
    ]
}
获取美国职业棒球大联盟球员统计排行榜 — 代码片段

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' 


    
请求
返回某个赛季的季后赛系列赛,从外卡系列赛到世界大赛,每场系列赛均包含比赛、比分、逐局得分以及胜投和败投投手
Endpoint ID: 44491
GET https://zylalabs.com/api/15957/mlb+api/44491/get+mlb+postseason
输入参数

获取美国职业棒球大联盟季后赛 — 端点功能

对象 描述
season 可选 Optional season year (e.g. "2026"; defaults to the current season). Use the /general/seasons endpoint to list valid values.

剩余免费测试请求:3 / 3。


输入参数

season
API 示例响应
JSON
[
    {
        "series": {
            "id": "W_1",
            "sortNumber": 1,
            "isDefault": true,
            "gameType": "W"
        },
        "totalItems": 5,
        "totalGames": 5
    }
]
获取美国职业棒球大联盟季后赛 — 代码片段

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


    
请求
按分区显示美国联盟和国家联盟的排名、外卡争夺情况、分区领跑球队、春训排名或整个联盟的排名,以及每支球队的胜场数、负场数、胜率、落后场次、落后外卡场次、连胜连败情况、净胜分、得分和失分、锁定季后赛席位的状态,以及主场、客场、各月份、对阵各分区球队、单分差比赛和加时赛中的战绩
Endpoint ID: 44492
GET https://zylalabs.com/api/15957/mlb+api/44492/get+mlb+standings
输入参数

查看美国职业棒球大联盟排名 — 端点功能

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

剩余免费测试请求:3 / 3。


输入参数

league
type
season
date
API 示例响应
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"
            }
        ]
    }
]
查看美国职业棒球大联盟排名 — 代码片段

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' 


    
请求
返回某项运动或联赛中每支球队的赛季打击、投球、守备、捕手或跑垒统计数据及其排名
Endpoint ID: 44493
GET https://zylalabs.com/api/15957/mlb+api/44493/get+mlb+team+statistics+leaderboard
输入参数

获取美国职业棒球大联盟球队统计排行榜 — 端点功能

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

剩余免费测试请求:3 / 3。


输入参数

group
league
season
game_type
sport
API 示例响应
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
    }
]
获取美国职业棒球大联盟球队统计排行榜 — 代码片段

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' 


    
请求
返回两个日期之间每支大联盟球队的交易记录,按时间从近到远排列:交易、签约、释放、调任、伤病名单变动、召回和下放,每项均包含球员、球队和描述
Endpoint ID: 44494
GET https://zylalabs.com/api/15957/mlb+api/44494/get+mlb+transactions
输入参数

获取MLB交易记录 — 端点功能

对象 描述
start_date 可选 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 last date in the YYYY-MM-DD format (defaults to today).

剩余免费测试请求:3 / 3。


输入参数

start_date
end_date
API 示例响应
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."
    }
]
获取MLB交易记录 — 代码片段

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' 


    
请求
返回一则新闻报道,包含 /news/list 接口提供的内容、Markdown 格式的全文及其照片
Endpoint ID: 44495
GET https://zylalabs.com/api/15957/mlb+api/44495/get+mlb+news+story
输入参数

获取 MLB 新闻报道 — 端点功能

对象 描述
slug 必需 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.

剩余免费测试请求:3 / 3。


输入参数

slug
API 示例响应
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"
        }
    ]
}
获取 MLB 新闻报道 — 代码片段

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' 


    
请求
返回 mlb.com 的最新新闻报道,每篇报道包含其网址别名、链接、标题、摘要、署名、日期、图片以及相关球队和球员。每页 25 篇,最多 100 篇时时彩官网
Endpoint ID: 44496
GET https://zylalabs.com/api/15957/mlb+api/44496/get+mlb+news
输入参数

获取美国职业棒球大联盟新闻 — 端点功能

对象 描述
page 可选 Optional page number, from 1 to 4 (defaults to 1).

剩余免费测试请求:3 / 3。


输入参数

page
API 示例响应
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": []
        }
    ]
}
获取美国职业棒球大联盟新闻 — 代码片段

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


    
请求
返回一名球员的信息,包括姓名、号码、位置、惯用手(击球和投球)、出生日期和地点、身高、体重、当前球队、首次亮相、选秀信息、教育经历、亲属、奖项、效力过的每支球队以及所有交易,按时间从近到远排列,并附上头像、比赛照片和 mlb.com 链接
Endpoint ID: 44497
GET https://zylalabs.com/api/15957/mlb+api/44497/get+mlb+player+details
输入参数

获取MLB球员详情 — 端点功能

对象 描述
player_id 必需 Player id (e.g. "592450"). Use the /search/players endpoint to list valid values.

剩余免费测试请求:3 / 3。


输入参数

player_id
API 示例响应
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"
}
获取MLB球员详情 — 代码片段

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' 


    
请求
返回球员在一个赛季每场比赛中的统计数据,按时间从近到远排列,每场包括日期、对手、主场或客场、比赛结果和比赛 ID
Endpoint ID: 44498
GET https://zylalabs.com/api/15957/mlb+api/44498/get+mlb+player+game+log
输入参数

获取美国职业棒球大联盟球员比赛记录 — 端点功能

对象 描述
player_id 必需 Player id (e.g. "592450"). Use the /search/players endpoint to list valid values.
group 可选 Optional stat group (defaults to "hitting"). Use the /general/stat-groups endpoint to list valid values.
season 可选 Optional season year (e.g. "2026"; defaults to the current season). Use the /general/seasons endpoint to list valid values.
game_type 可选 Optional game type (defaults to "regular_season"). Use the /general/game-types endpoint to list valid values.

剩余免费测试请求:3 / 3。


输入参数

player_id
group
season
game_type
API 示例响应
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"
        }
    }
]
获取美国职业棒球大联盟球员比赛记录 — 代码片段

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' 


    
请求
返回球员在一个赛季中按不同情况划分的统计数据:对阵左投手和右投手或左打者和右打者时、主场和客场、白天和夜间、按球数、按局数、有跑垒员时、按打击顺序、按月份、按对手等情况
Endpoint ID: 44499
GET https://zylalabs.com/api/15957/mlb+api/44499/get+mlb+player+splits
输入参数

获取美国职业棒球大联盟球员分项数据 — 端点功能

对象 描述
player_id 必需 Player id (e.g. "592450"). Use the /search/players endpoint to list valid values.
situations 可选 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 stat group (defaults to "hitting"). Use the /general/stat-groups endpoint to list valid values.
season 可选 Optional season year (e.g. "2026"; defaults to the current season). Use the /general/seasons endpoint to list valid values.

剩余免费测试请求:3 / 3。


输入参数

player_id
situations
group
season
API 示例响应
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"
        }
    }
]
获取美国职业棒球大联盟球员分项数据 — 代码片段

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' 


    
请求
返回球员的击球、投球、守备、接捕或跑垒数据:某个赛季、职业生涯、每个赛季、季后赛、高级数据、赛伯计量学数据(WAR、wOBA、FIP)、预期数据、球种组合、冷热区、击球落点图、按月份、按星期几、主场和客场、胜场和负场、最近几场比赛或联盟排名
Endpoint ID: 44500
GET https://zylalabs.com/api/15957/mlb+api/44500/get+mlb+player+statistics
输入参数

获取美国职业棒球大联盟球员统计数据 — 端点功能

对象 描述
player_id 必需 Player id (e.g. "592450"). Use the /search/players endpoint to list valid values.
group 可选 Optional stat group (defaults to "hitting"). Use the /general/stat-groups endpoint to list valid values.
type 可选 Optional stat type (defaults to "season"). Use the /general/player-stat-types endpoint to list valid values.
season 可选 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.

剩余免费测试请求:3 / 3。


输入参数

player_id
group
type
season
API 示例响应
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"
            }
        ]
    }
]
获取美国职业棒球大联盟球员统计数据 — 代码片段

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' 


    
请求
返回击球手对阵投手或投手对阵击球手的表现:职业生涯总数据,以及两人交锋过的每个赛季的数据行
Endpoint ID: 44501
GET https://zylalabs.com/api/15957/mlb+api/44501/get+mlb+player+versus+player
输入参数

获取 MLB 球员对阵球员投注平台 — 端点功能

对象 描述
player_id 必需 Player id (e.g. "592450"). Use the /search/players endpoint to list valid values.
opponent_id 必需 Player id of the opposing pitcher or batter (e.g. "669373"). Use the /search/players endpoint to list valid values.
group 可选 Optional: "hitting" when the player is the batter, "pitching" when the player is the pitcher (defaults to "hitting").

剩余免费测试请求:3 / 3。


输入参数

player_id
opponent_id
group
API 示例响应
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"
                }
            }
        ]
    }
]
获取 MLB 球员对阵球员投注平台 — 代码片段

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' 


    
请求
返回名称与输入文本匹配的球员和球队,类似 mlb.com 搜索框的联想结果:显示球员的 ID、所属球队和头像,以及各级别球队的 ID、缩写和队徽
Endpoint ID: 44502
GET https://zylalabs.com/api/15957/mlb+api/44502/search+mlb+players+and+teams
输入参数

搜索MLB球员和球队 — 端点功能

对象 描述
query 必需 Text to search for, 2 to 50 characters (e.g. "judge", "yankees").

剩余免费测试请求:3 / 3。


输入参数

query
API 示例响应
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"
        }
    ]
}
搜索MLB球员和球队 — 代码片段

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' 


    
请求
返回名字的名、姓或全名与文本匹配的现役及退役球员,并提供每位球员的简介、当前球队、位置、惯用手和投球手、首秀年份及选秀年份
Endpoint ID: 44503
GET https://zylalabs.com/api/15957/mlb+api/44503/search+mlb+players
输入参数

搜索 MLB 球员 — 端点功能

对象 描述
query 必需 Name to search for, 2 to 50 characters (e.g. "aaron judge", "ohtani").
sport 可选 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: "true" for active players only (defaults to "false").

剩余免费测试请求:3 / 3。


输入参数

query
sport
active
API 示例响应
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
    }
]
搜索 MLB 球员 — 代码片段

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' 


    
请求
返回某俱乐部在某个赛季的各级小联盟附属球队(3A、2A、高级A、1A、新秀级和多米尼加夏季联赛),每支球队的信息与 /team/list 端点返回的信息相同
Endpoint ID: 44504
GET https://zylalabs.com/api/15957/mlb+api/44504/get+mlb+team+affiliates
输入参数

获取美国职业棒球大联盟球队附属队伍 — 端点功能

对象 描述
team_id 必需 Team id (e.g. "147"). Use the /team/list endpoint to list valid values.
season 可选 Optional season year (e.g. "2026"; defaults to the current season). Use the /general/seasons endpoint to list valid values.

剩余免费测试请求:3 / 3。


输入参数

team_id
season
API 示例响应
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"
    }
]
获取美国职业棒球大联盟球队附属队伍 — 代码片段

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' 


    
请求
返回某个赛季球队的经理和教练组成员,以及各自的职务、头衔和号码】【。
Endpoint ID: 44505
GET https://zylalabs.com/api/15957/mlb+api/44505/get+mlb+team+coaches
输入参数

获取美国职业棒球大联盟球队教练 — 端点功能

对象 描述
team_id 必需 Team id (e.g. "147"). Use the /team/list endpoint to list valid values.
season 可选 Optional season year (e.g. "2026"; defaults to the current season). Use the /general/seasons endpoint to list valid values.

剩余免费测试请求:3 / 3。


输入参数

team_id
season
API 示例响应
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"
    }
]
获取美国职业棒球大联盟球队教练 — 代码片段

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' 


    
请求
返回一支球队及其名称、简称、所在地、球场及其地址和场地尺寸、春训球场和联盟、联盟、分区、运动项目、母俱乐部、首个赛季年份和标志 logo
Endpoint ID: 44506
GET https://zylalabs.com/api/15957/mlb+api/44506/get+mlb+team+details
输入参数

获取 MLB 球队详情 — 端点功能

对象 描述
team_id 必需 Team id (e.g. "147"). Use the /team/list endpoint to list valid values.

剩余免费测试请求:3 / 3。


输入参数

team_id
API 示例响应
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"
}
获取 MLB 球队详情 — 代码片段

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' 


    
请求
返回该球队从最新到最早使用过的所有名称和城市,并列出各自使用的赛季
Endpoint ID: 44507
GET https://zylalabs.com/api/15957/mlb+api/44507/get+mlb+team+history
输入参数

获取美国职棒大联盟球队历史信息 — 端点功能

对象 描述
team_id 必需 Team id (e.g. "147"). Use the /team/list endpoint to list valid values.

剩余免费测试请求:3 / 3。


输入参数

team_id
API 示例响应
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
    }
]
获取美国职棒大联盟球队历史信息 — 代码片段

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' 


    
请求
返回一个赛季统计中各项数据领先的球队成员及其排名、数值和所属统计类别
Endpoint ID: 44508
GET https://zylalabs.com/api/15957/mlb+api/44508/get+mlb+team+leaders
输入参数

获取 MLB 球队领头人 — 端点功能

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

剩余免费测试请求:3 / 3。


输入参数

team_id
category
season
limit
API 示例响应
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
    }
]
获取 MLB 球队领头人 — 代码片段

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' 


    
请求
按名称返回某个赛季中一项运动的球队,以及它们的 ID、缩写、所在地、场馆、联盟、分区、母俱乐部、首个参赛年份和徽标
Endpoint ID: 44509
GET https://zylalabs.com/api/15957/mlb+api/44509/get+mlb+teams
输入参数

获取美国职业棒球大联盟球队 — 端点功能

对象 描述
sport 可选 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 season year (e.g. "2026"; defaults to the current season). Use the /general/seasons endpoint to list valid values.

剩余免费测试请求:3 / 3。


输入参数

sport
season
API 示例响应
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"
    }
]
获取美国职业棒球大联盟球队 — 代码片段

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' 


    
请求
返回某支球队的最新新闻报道,每篇报道包含其别名、链接、标题、摘要、署名、日期、图片以及相关球队和球员。每页25篇,最多100篇。
Endpoint ID: 44510
GET https://zylalabs.com/api/15957/mlb+api/44510/get+mlb+team+news
输入参数

获取MLB球队新闻 — 端点功能

对象 描述
team_id 必需 Team id of a major league club (e.g. "147"). Use the /team/list endpoint to list valid values.
page 可选 Optional page number, from 1 to 4 (defaults to 1).

剩余免费测试请求:3 / 3。


输入参数

team_id
page
API 示例响应
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": []
        }
    ]
}
获取MLB球队新闻 — 代码片段

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' 


    
请求
返回球队球员名单,包括现役名单、40人名单、整个赛季、深度图、非名单受邀球员或球队历史上的所有球员,并列出每位球员的号码、位置、状态和简介
Endpoint ID: 44511
GET https://zylalabs.com/api/15957/mlb+api/44511/get+mlb+team+roster
输入参数

获取美国职业棒球大联盟球队名单 — 端点功能

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

剩余免费测试请求:3 / 3。


输入参数

team_id
roster_type
season
date
API 示例响应
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
    }
]
获取美国职业棒球大联盟球队名单 — 代码片段

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' 


    
请求
返回一个球队在一个赛季中的每场比赛,包括春训和季后赛,并提供 /game/list 端点为每场比赛返回的内容
Endpoint ID: 44512
GET https://zylalabs.com/api/15957/mlb+api/44512/get+mlb+team+schedule
输入参数

获取美国职业棒球大联盟球队赛程表 — 端点功能

对象 描述
team_id 必需 Team id (e.g. "147"). Use the /team/list endpoint to list valid values.
season 可选 Optional season year (e.g. "2026"; defaults to the current season). Use the /general/seasons endpoint to list valid values.
game_type 可选 Optional game type (e.g. "regular_season"; every type when left out). Use the /general/game-types endpoint to list valid values.

剩余免费测试请求:3 / 3。


输入参数

team_id
season
game_type
API 示例响应
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"
                }
            }
        }
    }
]
获取美国职业棒球大联盟球队赛程表 — 代码片段

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' 


    
请求
返回球队在一个赛季中的击球、投球、防守、接捕或跑垒数据,可按总计、高级数据、月份、星期几、主客场或胜负进行统计
Endpoint ID: 44513
GET https://zylalabs.com/api/15957/mlb+api/44513/get+mlb+team+statistics
输入参数

获取美国职业棒球大联盟球队统计数据 — 端点功能

对象 描述
team_id 必需 Team id (e.g. "147"). Use the /team/list endpoint to list valid values.
group 可选 Optional stat group (defaults to "hitting"). Use the /general/stat-groups endpoint to list valid values.
type 可选 Optional stat type (defaults to "season"). Use the /general/team-stat-types endpoint to list valid values.
season 可选 Optional season year (e.g. "2026"; defaults to the current season). Use the /general/seasons endpoint to list valid values.

剩余免费测试请求:3 / 3。


输入参数

team_id
group
type
season
API 示例响应
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"
                }
            }
        ]
    }
]
获取美国职业棒球大联盟球队统计数据 — 代码片段

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' 


    
请求
返回球队在两个日期之间的交易记录,按时间从近到远排列:交易、签约、释放、指派、伤病名单变动、召回和下放,每条记录均包含球员、球队及其说明
Endpoint ID: 44514
GET https://zylalabs.com/api/15957/mlb+api/44514/get+mlb+team+transactions
输入参数

获取美国职业棒球大联盟球队交易信息 — 端点功能

对象 描述
team_id 必需 Team id (e.g. "147"). Use the /team/list endpoint to list valid values.
start_date 可选 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 last date in the YYYY-MM-DD format (defaults to today).

剩余免费测试请求:3 / 3。


输入参数

team_id
start_date
end_date
API 示例响应
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."
    }
]
获取美国职业棒球大联盟球队交易信息 — 代码片段

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 访问密钥和身份验证

注册后,每个开发者都会被分配一个个人 API 访问密钥,这是一个唯一的字母和数字组合,用于访问我们的 API 端点。要使用 美国职业棒球大联盟 API 进行身份验证,只需在 Authorization 标头中包含您的 bearer token。

标头
标头 描述
授权 必需 应为 Bearer access_key. 订阅后,请查看上方的"您的 API 访问密钥"。

无长期承诺。随时升级、降级或取消。 免费试用包括最多 50 个请求。

(年度计费可节省 2 个月 🎉)

起价
$10,000/年


  • 自定义数量
  • 自定义速率限制
  • 专业客户支持
  • 实时 API 监控

概览

棒球数据:比赛和实时比分,比赛记录,逐球比赛实况,获胜概率,球队,阵容,球员统计数据,排名,领先者,选秀和新闻

一般常见问题

Zyla API Hub 就像一个大型 API 商店,您可以在一个地方找到数千个 API。我们还为所有 API 提供专门支持和实时监控。注册后,您可以选择要使用的 API。请记住,每个 API 都需要自己的订阅。但如果您订阅多个 API,您将为所有这些 API 使用相同的密钥,使事情变得更简单。
价格以 USD(美元)、EUR(欧元)、CAD(加元)、AUD(澳元)和 GBP(英镑)列出。我们接受所有主要的借记卡和信用卡。我们的支付系统使用最新的安全技术,由 Stripe 提供支持,Stripe 是世界上最可靠的支付公司之一。如果您在使用卡片付款时遇到任何问题,请通过 [email protected]

此外,如果您已经以这些货币中的任何一种(USD、EUR、CAD、AUD、GBP)拥有有效订阅,该货币将保留用于后续订阅。只要您没有任何有效订阅,您可以随时更改货币。
定价页面上显示的本地货币基于您 IP 地址的国家/地区,仅供参考。实际价格以 USD(美元)为单位。当您付款时,即使您在我们的网站上看到以本地货币显示的等值金额,您的卡片对账单上也会以美元显示费用。这意味着您不能直接使用本地货币付款。
有时,银行可能会因其欺诈保护设置而拒绝收费。我们建议您首先联系您的银行,检查他们是否阻止了我们的收费。此外,您可以访问账单门户并更改关联的卡片以进行付款。如果这些方法不起作用并且您需要进一步帮助,请通过 [email protected]
价格由月度或年度订阅决定,具体取决于所选计划。
API 调用根据成功请求从您的计划中扣除。每个计划都包含您每月可以进行的特定数量的调用。只有成功的调用(由状态 200 响应指示)才会计入您的总数。这确保失败或不完整的请求不会影响您的月度配额。
Zyla API Hub 采用月度订阅系统。您的计费周期将从您购买付费计划的那一天开始,并在下个月的同一日期续订。因此,如果您想避免未来的费用,请提前取消订阅。
要升级您当前的订阅计划,只需转到 API 的定价页面并选择您要升级到的计划。升级将立即生效,让您立即享受新计划的功能。请注意,您之前计划中的任何剩余调用都不会转移到新计划,因此在升级时请注意这一点。您将被收取新计划的全部金额。
要检查您本月剩余多少 API 调用,请参考响应标头中的 "X-Zyla-API-Calls-Monthly-Remaining" 字段。例如,如果您的计划允许每月 1,000 个请求,而您已使用 100 个,则响应标头中的此字段将显示 900 个剩余调用。
要查看您的计划允许的最大 API 请求数,请检查 "X-Zyla-RateLimit-Limit" 响应标头。例如,如果您的计划包括每月 1,000 个请求,此标头将显示 1,000。
"X-Zyla-RateLimit-Reset" 标头显示您的速率限制重置之前的秒数。这告诉您何时您的请求计数将重新开始。例如,如果它显示 3,600,则意味着还有 3,600 秒直到限制重置。
是的,您可以随时通过访问您的账户并在账单页面上选择取消选项来取消您的计划。请注意,升级、降级和取消会立即生效。此外,取消后,您将不再有权访问该服务,即使您的配额中还有剩余调用。
为了让您有机会在没有任何承诺的情况下体验我们的 API,我们提供 7 天免费试用,允许您免费进行最多 50 次 API 调用。此试用只能使用一次,因此我们建议将其应用于您最感兴趣的 API。虽然我们的大多数 API 都提供免费试用,但有些可能不提供。试用在 7 天后或您进行了 50 次请求后结束,以先发生者为准。如果您在试用期间达到 50 次请求限制,您需要"开始您的付费计划"以继续发出请求。您可以在个人资料中的订阅 -> 选择您订阅的 API -> 定价标签下找到"开始您的付费计划"按钮。或者,如果您在第 7 天之前不取消订阅,您的免费试用将结束,您的计划将自动计费,授予您访问计划中指定的所有 API 调用的权限。请记住这一点以避免不必要的费用。
7 天后,您将被收取试用期间订阅的计划的全额费用。因此,在试用期结束前取消很重要。因忘记及时取消而提出的退款请求不被接受。
当您订阅 API 免费试用时,您可以进行最多 50 次 API 调用。如果您希望超出此限制进行额外的 API 调用,API 将提示您执行"开始您的付费计划"。您可以在个人资料中的订阅 -> 选择您订阅的 API -> 定价标签下找到"开始您的付费计划"按钮。
付款订单在每月 20 日至 30 日之间处理。如果您在 20 日之前提交请求,您的付款将在此时间范围内处理。
您可以通过我们的聊天渠道联系我们以获得即时帮助。我们始终在线,时间为上午 8 点至下午 5 点(EST)。如果您在该时间之后联系我们,我们将尽快回复您。此外,您可以通过 [email protected]

相关 API