primaryNumber
Optional
Player jersey number.
Mlb Stats Scraper
Pricing
from $2.99 / 1,000 results
MLB Stats Scraper is a Python tool designed to extract real-time and historical Major League Baseball data, including player statistics, game box scores, team standings, and schedules. It exports structured baseball datasets into clean CSV or JSON formats for sports analytics and fantasy modeling.
recordKind
Optional
Record type: team, game, roster, or player.
springLeague
Optional
Spring league object from the team payload.
allStarStatus
Optional
All-star status code from the team payload.
id
Optional
Team id, gamePk, or person id used for deduplication.
name
Optional
Team name, matchup, or player name.
link
Optional
Relative API link returned by the source.
season
Optional
Season year.
venue
Optional
Venue object from the team or game payload.
springVenue
Optional
Spring venue object from the team payload.
teamCode
Optional
Short team code.
fileCode
Optional
File code.
abbreviation
Optional
Team abbreviation.
teamName
Optional
Club nickname.
locationName
Optional
Team location name.
firstYearOfPlay
Optional
First year of play.
league
Optional
League object.
division
Optional
Division object.
sport
Optional
Sport object.
shortName
Optional
Short display name.
franchiseName
Optional
Franchise name.
clubName
Optional
Club name.
active
Optional
Whether the team or player is marked active.
gamePk
Optional
Game primary key.
gameDate
Optional
Scheduled game start time.
officialDate
Optional
Official game date.
dayNight
Optional
Day or night game flag.
gameType
Optional
Game type code.
gameState
Optional
Detailed game state.
awayTeamName
Optional
Away club name.
homeTeamName
Optional
Home club name.
awayScore
Optional
Away team score.
homeScore
Optional
Home team score.
seriesDescription
Optional
Game series label.
gameNote
Optional
Game note with HTML removed.
jerseyNumber
Optional
Roster jersey number.
positionName
Optional
Position name.
positionAbbreviation
Optional
Position abbreviation.
positionGroup
Optional
Position group.
rosterStatusCode
Optional
Roster status code.
rosterStatusText
Optional
Roster status description.
parentTeamId
Optional
Parent team id.
fullName
Optional
Player full name.
firstName
Optional
Player first name.
lastName
Optional
Player last name.
birthDate
Optional
Player birth date.
currentAge
Optional
Player age.
birthCity
Optional
Player birth city.
birthCountry
Optional
Player birth country.
height
Optional
Player height.
weight
Optional
Player weight.
primaryNumber
Optional
Player jersey number.
primaryPositionName
Optional
Player primary position.
primaryPositionAbbreviation
Optional
Player primary position abbreviation.
scrapedAt
Optional
UTC time when the row was saved.
error
Optional
Error message when a request or input check fails.
input
Optional
Input values associated with an error row.