MLB

Get a single player by id

get/api/v1/mlb/players/{id}

Request

  • Base URL: https://api.stat-api.com
  • URL: https://api.stat-api.com/api/v1/mlb/players/{id}
  • Auth: HTTP bearer

Path parameters

idinteger required

Primary Key

Primary key (id) of the players row.

Response

Single players row.

batsstring nullable
birth_citystring nullable
birth_countrystring nullable
birth_datestring date nullable
birth_statestring nullable
debut_datestring date-time nullable
display_fi_laststring nullable
display_last_comma_firststring nullable
draft_numberstring nullable
draft_roundstring nullable
draft_yearstring nullable
first_namestring required
full_namestring required
full_position_liststring nullable
heightinteger nullable
idinteger required

Primary Key

jerseystring nullable
last_namestring required
league_idstring nullable

Official MLB player identifier

league_player_idinteger required

Official MLB player ID (issued by the league)

league_slugstring nullable
position_categorystring nullable
primary_positionstring required
profile_pic_urlstring nullable

URL to player profile picture image

roster_statusstring nullable

Canonical roster status, shared across leagues. Derived from team_player_rosters: "active" (26-man), "non_roster" (on the 40-man but optioned), "injured_reserve" (IL); "inactive"/"free_agent" off-roster. The "on a team now" set is {active, injured_reserve, non_roster}.

schoolstring nullable
team_idinteger nullable
throwsstring nullable
weightinteger nullable

Changes

No recorded changes to this operation across all 3 revisions of this API.