MLB Team Roster avatar
MLB Team Roster

Pricing

from $5.00 / 1,000 results

Go to Apify Store
MLB Team Roster

MLB Team Roster

Extract complete MLB rosters with deep player insights! ๐ŸŸ๏ธ Get real-time stats, injury tracking, cross-platform IDs (ESPN, Yahoo, MLB), and fantasy points. ๐Ÿš€ High-speed, multi-team support, and 6+ organized views for perfect data analysis. Perfect for analytics and betting apps!

Pricing

from $5.00 / 1,000 results

Rating

0.0

(0)

Developer

Kevin

Kevin

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

3 days ago

Last modified

Share

โšพ MLB Team Roster & Player ID Scraper

Extract complete MLB rosters with deep player insights! ๐ŸŸ๏ธ This powerful Apify actor fetches comprehensive player data including real-time stats, injury tracking, cross-platform IDs (ESPN, Yahoo, MLB), and fantasy points. Perfect for analytics, betting apps, and fantasy baseball!

๐ŸŽฏ What This Actor Does

This actor allows you to:

  • Get complete team rosters - All players for any MLB team
  • Player statistics - Detailed performance data for each player
  • Physical attributes - Height, weight, birthday, birthplace
  • Injury tracking - Current injury status and return dates
  • Fantasy points - Fantasy scoring for each player
  • External links - MLB, ESPN, Yahoo, Fantasy Pros, and more
  • Player IDs - IDs across all major platforms
  • Education background - College and high school information
  • Batch processing - Scrape multiple teams in one run

๐Ÿš€ How to Use

Step 1: Get Team Abbreviations

Determine which MLB teams you want to scrape. Use standard 2-3 letter team codes:

CHW (Chicago White Sox)
NYY (New York Yankees)
LAD (Los Angeles Dodgers)
BOS (Boston Red Sox)

Step 2: Configure the Actor

InputDescriptionDefault
teamAbbreviationsArray of MLB team abbreviationsRequired
includeStatsInclude detailed player statisticstrue
includeFantasyPointsInclude fantasy points calculationtrue

Step 3: Run and Get Results

Run the actor and download your roster data in JSON, CSV, or Excel format.

๐Ÿ“Š Output Data Structure

Each player result contains:

๐Ÿ‘ค Basic Information

FieldDescription
playerIDUnique player identifier
longNameFull player name
jerseyNumJersey number
posPosition (P, C, 1B, 2B, 3B, SS, LF, CF, RF, etc.)

๐ŸŸ๏ธ Team Information

FieldDescription
teamTeam name
teamAbvTeam abbreviation
teamIDTeam ID

๐Ÿ“ Physical Attributes

FieldDescription
heightPlayer height (e.g., "6-2")
weightPlayer weight in pounds
bDayBirthday (MM/DD/YYYY)
birthPlaceBirthplace (City, State/Country)

โšพ Playing Style

FieldDescription
batBatting hand (R/L/S)
throwThrowing hand (R/L)
isStartingPitcherWhether player is a starting pitcher (True/False)

๏ฟฝ Status Information

FieldDescription
espnStatusCurrent player status (Active, etc.)
lastGamePlayedLast game played (YYYYMMDD_TEAM@TEAM)

๐Ÿฅ Injury Information

FieldDescription
injuryStatusInjury designation
injuryDescriptionDescription of injury
injuryDateDate of injury (YYYYMMDD)
injuryReturnDateExpected return date

๐ŸŽ“ Education Background

FieldDescription
collegeCollege attended
highSchoolHigh school attended
FieldDescription
mlbLinkMLB.com player page
mlbHeadshotMLB.com headshot image
espnLinkESPN player page
espnHeadshotESPN headshot image
yahooLinkYahoo Sports player page
fantasyProsLinkFantasy Pros player page

๏ฟฝ Player IDs

FieldDescription
mlbIDMLB ID
mlbIDFullFull MLB ID with name
espnIDESPN ID
yahooPlayerIDYahoo Sports ID
cbsPlayerIDCBS Sports ID
cbsPlayerIDFullFull CBS ID with name
rotoWirePlayerIDRotoWire ID
rotoWirePlayerIDFullFull RotoWire ID with name
sleeperBotIDSleeper Fantasy ID
fantasyProsPlayerIDFantasy Pros ID
bRefIDBaseball Reference ID
bRefID2Alternate Baseball Reference ID

๐Ÿ“‹ Example Input

{
"teamAbbreviations": [
"CHW",
"NYY",
"LAD"
],
"includeStats": true,
"includeFantasyPoints": true
}

๐Ÿ“‹ Example Output

{
"playerID": "673357",
"longName": "Luis Robert Jr.",
"jerseyNum": "88",
"pos": "CF",
"team": "CHW",
"teamAbv": "CHW",
"teamID": "6",
"height": "6-2",
"weight": "225",
"bDay": "8/3/1997",
"birthPlace": "Ciego de Avila, Cuba",
"bat": "R",
"throw": "R",
"isStartingPitcher": "False",
"espnStatus": "Active",
"lastGamePlayed": "20250826_KC@CHW",
"injuryStatus": "",
"injuryDescription": "",
"injuryDate": "",
"injuryReturnDate": "",
"college": "",
"highSchool": "",
"mlbLink": "https://www.mlb.com/player/luis-robert-jr-673357",
"mlbHeadshot": "https://img.mlbstatic.com/mlb-photos/image/upload/d_people:generic:headshot:silo:current.png/r_max/w_180,q_auto:best/v1/people/673357/headshot/silo/current",
"espnLink": "https://www.espn.com/mlb/player/_/id/39631",
"espnHeadshot": "https://a.espncdn.com/i/headshots/mlb/players/full/39631.png",
"yahooLink": "https://sports.yahoo.com/mlb/players/10765",
"fantasyProsLink": "https://www.fantasypros.com/mlb/players/luis-robert.php",
"mlbID": "673357",
"mlbIDFull": "luis-robert-jr-673357",
"espnID": "39631",
"yahooPlayerID": "10765",
"cbsPlayerID": "2826875",
"rotoWirePlayerID": "14686",
"rotoWirePlayerIDFull": "luis-robert-14686",
"sleeperBotID": "1388",
"fantasyProsPlayerID": "6935",
"bRefID": "roberlu01",
"bRefID2": "robert001lui"
}

๐ŸŽจ Dataset Views

The actor provides 6 organized table views:

ViewDescription
โšพ Players OverviewAll players with basic info, physical attributes, and status
๐ŸŽฏ PitchersPitcher-specific data including starter status and injury info
๐Ÿฅ Injury ReportInjury status and details for all players
๐Ÿ”— External LinksLinks and headshots from MLB, ESPN, Yahoo, Fantasy Pros
๏ฟฝ Player IDsAll player IDs across different platforms
๐ŸŽ“ Education BackgroundCollege, high school, and birthplace information

๐Ÿ’ก Use Cases

  • Sports Analytics - Analyze team composition, player demographics, and roster trends
  • Fantasy Baseball - Build comprehensive player databases for fantasy leagues
  • Team Management - Track roster changes and player availability
  • Injury Tracking - Monitor injury status across teams
  • Player Research - Access complete player profiles with all external links
  • Data Integration - Map player IDs across different platforms
  • Scouting Reports - Gather player information for scouting purposes
  • Mobile Apps - Feed roster data into sports applications
  • Sports Journalism - Quick access to player data for articles and reports

๐ŸŸ๏ธ MLB Team Abbreviations

Common team abbreviations you can use:

TeamAbbreviationTeamAbbreviation
Arizona DiamondbacksARIMiami MarlinsMIA
Atlanta BravesATLMilwaukee BrewersMIL
Baltimore OriolesBALMinnesota TwinsMIN
Boston Red SoxBOSNew York MetsNYM
Chicago CubsCHCNew York YankeesNYY
Chicago White SoxCHWOakland AthleticsOAK
Cincinnati RedsCINPhiladelphia PhilliesPHI
Cleveland GuardiansCLEPittsburgh PiratesPIT
Colorado RockiesCOLSan Diego PadresSD
Detroit TigersDETSan Francisco GiantsSF
Houston AstrosHOUSeattle MarinersSEA
Kansas City RoyalsKCSt. Louis CardinalsSTL
Los Angeles AngelsLAATampa Bay RaysTB
Los Angeles DodgersLADTexas RangersTEX
Toronto Blue JaysTORWashington NationalsWAS

๐Ÿ“Š Player Positions

The scraper returns the following position codes:

PositionCodePositionCode
PitcherPLeft FieldLF
CatcherCCenter FieldCF
First Base1BRight FieldRF
Second Base2BInfieldIF
Third Base3BOutfieldOF
ShortstopSSDesignated HitterDH

๐ŸŽฏ Pitcher Classification

For pitchers, the isStartingPitcher field indicates:

  • True - Starting pitcher
  • False - Relief pitcher

๐Ÿฅ Injury Status

The scraper provides comprehensive injury tracking:

  • injuryStatus - Current designation (IL, DTD, etc.)
  • injuryDescription - Description of the injury
  • injuryDate - When the injury occurred
  • injuryReturnDate - Expected return date

๐Ÿ“ž Support

For questions, feedback, or issues, please contact us through Apify or open an issue.

๐Ÿ”Ž Tags

MLB scraper, MLB roster scraper, baseball roster, MLB team data, baseball player data, MLB player stats, fantasy baseball, sports scraper, baseball scraper, MLB data extractor, player statistics, baseball analytics, Apify MLB scraper, MLB team roster


Happy scraping! โšพโœจ