MLB

Get an MLB team roster

Returns a team's players, jersey numbers, positions, and roster status. The roster_type parameter accepts every value in the live MLB value set returned by mlb_discovery.

get/mlb/team-roster

Request

  • Base URL: https://api.crawlora.net/api/v1
  • URL: https://api.crawlora.net/api/v1/mlb/team-roster
  • Auth: API key in header x-api-key

Query parameters

team_idstring required

Numeric MLB team id

seasoninteger

Four-digit season; defaults to current year

roster_type'40Man' | 'fullSeason' | 'fullRoster' | 'nonRosterInvitees' | 'active' | 'allTime' | 'depthChart' | 'gameday' | 'coach'

Roster type

Headers

x-api-keystring required

API key required

Response

OK

codeinteger
msgstring

Example response

{
  "code": 200,
  "msg": "OK"
}

Changes

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