MLB Team Roster
Pricing
from $5.00 / 1,000 results
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
Actor stats
0
Bookmarked
2
Total users
1
Monthly active users
3 days ago
Last modified
Categories
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
| Input | Description | Default |
|---|---|---|
teamAbbreviations | Array of MLB team abbreviations | Required |
includeStats | Include detailed player statistics | true |
includeFantasyPoints | Include fantasy points calculation | true |
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
| Field | Description |
|---|---|
playerID | Unique player identifier |
longName | Full player name |
jerseyNum | Jersey number |
pos | Position (P, C, 1B, 2B, 3B, SS, LF, CF, RF, etc.) |
๐๏ธ Team Information
| Field | Description |
|---|---|
team | Team name |
teamAbv | Team abbreviation |
teamID | Team ID |
๐ Physical Attributes
| Field | Description |
|---|---|
height | Player height (e.g., "6-2") |
weight | Player weight in pounds |
bDay | Birthday (MM/DD/YYYY) |
birthPlace | Birthplace (City, State/Country) |
โพ Playing Style
| Field | Description |
|---|---|
bat | Batting hand (R/L/S) |
throw | Throwing hand (R/L) |
isStartingPitcher | Whether player is a starting pitcher (True/False) |
๏ฟฝ Status Information
| Field | Description |
|---|---|
espnStatus | Current player status (Active, etc.) |
lastGamePlayed | Last game played (YYYYMMDD_TEAM@TEAM) |
๐ฅ Injury Information
| Field | Description |
|---|---|
injuryStatus | Injury designation |
injuryDescription | Description of injury |
injuryDate | Date of injury (YYYYMMDD) |
injuryReturnDate | Expected return date |
๐ Education Background
| Field | Description |
|---|---|
college | College attended |
highSchool | High school attended |
๏ฟฝ External Links
| Field | Description |
|---|---|
mlbLink | MLB.com player page |
mlbHeadshot | MLB.com headshot image |
espnLink | ESPN player page |
espnHeadshot | ESPN headshot image |
yahooLink | Yahoo Sports player page |
fantasyProsLink | Fantasy Pros player page |
๏ฟฝ Player IDs
| Field | Description |
|---|---|
mlbID | MLB ID |
mlbIDFull | Full MLB ID with name |
espnID | ESPN ID |
yahooPlayerID | Yahoo Sports ID |
cbsPlayerID | CBS Sports ID |
cbsPlayerIDFull | Full CBS ID with name |
rotoWirePlayerID | RotoWire ID |
rotoWirePlayerIDFull | Full RotoWire ID with name |
sleeperBotID | Sleeper Fantasy ID |
fantasyProsPlayerID | Fantasy Pros ID |
bRefID | Baseball Reference ID |
bRefID2 | Alternate 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:
| View | Description |
|---|---|
| โพ Players Overview | All players with basic info, physical attributes, and status |
| ๐ฏ Pitchers | Pitcher-specific data including starter status and injury info |
| ๐ฅ Injury Report | Injury status and details for all players |
| ๐ External Links | Links and headshots from MLB, ESPN, Yahoo, Fantasy Pros |
| ๏ฟฝ Player IDs | All player IDs across different platforms |
| ๐ Education Background | College, 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:
| Team | Abbreviation | Team | Abbreviation |
|---|---|---|---|
| Arizona Diamondbacks | ARI | Miami Marlins | MIA |
| Atlanta Braves | ATL | Milwaukee Brewers | MIL |
| Baltimore Orioles | BAL | Minnesota Twins | MIN |
| Boston Red Sox | BOS | New York Mets | NYM |
| Chicago Cubs | CHC | New York Yankees | NYY |
| Chicago White Sox | CHW | Oakland Athletics | OAK |
| Cincinnati Reds | CIN | Philadelphia Phillies | PHI |
| Cleveland Guardians | CLE | Pittsburgh Pirates | PIT |
| Colorado Rockies | COL | San Diego Padres | SD |
| Detroit Tigers | DET | San Francisco Giants | SF |
| Houston Astros | HOU | Seattle Mariners | SEA |
| Kansas City Royals | KC | St. Louis Cardinals | STL |
| Los Angeles Angels | LAA | Tampa Bay Rays | TB |
| Los Angeles Dodgers | LAD | Texas Rangers | TEX |
| Toronto Blue Jays | TOR | Washington Nationals | WAS |
๐ Player Positions
The scraper returns the following position codes:
| Position | Code | Position | Code |
|---|---|---|---|
| Pitcher | P | Left Field | LF |
| Catcher | C | Center Field | CF |
| First Base | 1B | Right Field | RF |
| Second Base | 2B | Infield | IF |
| Third Base | 3B | Outfield | OF |
| Shortstop | SS | Designated Hitter | DH |
๐ฏ 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! โพโจ