MLB

List MLB teams

Lists the 30 MLB clubs for a season (four-digit year, default the current year). Each team has its id, name, club name, location, abbreviation, league, division, venue, first year of play and active flag.

get/mlb/teams

Request

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

Query parameters

seasoninteger

Four-digit season; defaults to current year

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.