Teams

Last updated February 12, 2016

This is a convenience endpoint that returns the list of active teams. This endpoint could be used in loops, for example, to retrieve each team's roster, schedule/results, etc.

get teams
for each team in teams:
    get team roster

URL

GET /sport/teams.format

Sport

Format

  1. json

Authorization

None.

Parameters

None.

Returned Values

Name Type Description
team array of objects Array of Team objects

Example Request

curl https://erikberg.com/mlb/teams.json

Example Result

[ {
  "team_id" : "arizona-diamondbacks",
  "abbreviation" : "ARI",
  "active" : true,
  "first_name" : "Arizona",
  "last_name" : "Diamondbacks",
  "conference" : "National",
  "division" : "West",
  "site_name" : "Chase Field",
  "city" : "Phoenix",
  "state" : "Arizona",
  "full_name" : "Arizona Diamondbacks"
}, {
  "team_id" : "atlanta-braves",
  "abbreviation" : "ATL",
  "active" : true,
  "first_name" : "Atlanta",
  "last_name" : "Braves",
  "conference" : "National",
  "division" : "East",
  "site_name" : "Turner Field",
  "city" : "Atlanta",
  "state" : "Georgia",
  "full_name" : "Atlanta Braves"
}, {
  "team_id" : "baltimore-orioles",
  "abbreviation" : "BAL",
  "active" : true,
  "first_name" : "Baltimore",
  "last_name" : "Orioles",
  "conference" : "American",
  "division" : "East",
  "site_name" : "Oriole Park at Camden Yards",
  "city" : "Baltimore",
  "state" : "Maryland",
  "full_name" : "Baltimore Orioles"
}, {
  "team_id" : "boston-red-sox",
  "abbreviation" : "BOS",
  "active" : true,
  "first_name" : "Boston",
  "last_name" : "Red Sox",
  "conference" : "American",
  "division" : "East",
  "site_name" : "Fenway Park",
  "city" : "Boston",
  "state" : "Massachusetts",
  "full_name" : "Boston Red Sox"
}, {
  "team_id" : "chicago-cubs",
  "abbreviation" : "CHC",
  "active" : true,
  "first_name" : "Chicago",
  "last_name" : "Cubs",
  "conference" : "National",
  "division" : "Central",
  "site_name" : "Wrigley Field",
  "city" : "Chicago",
  "state" : "Illinois",
  "full_name" : "Chicago Cubs"
}, {
  "team_id" : "chicago-white-sox",
  "abbreviation" : "CHW",
  "active" : true,
  "first_name" : "Chicago",
  "last_name" : "White Sox",
  "conference" : "American",
  "division" : "Central",
  "site_name" : "U.S. Cellular Field",
  "city" : "Chicago",
  "state" : "Illinois",
  "full_name" : "Chicago White Sox"
}, {
  "team_id" : "cincinnati-reds",
  "abbreviation" : "CIN",
  "active" : true,
  "first_name" : "Cincinnati",
  "last_name" : "Reds",
  "conference" : "National",
  "division" : "Central",
  "site_name" : "Great American Ball Park",
  "city" : "Cincinnati",
  "state" : "Ohio",
  "full_name" : "Cincinnati Reds"
}, {
  "team_id" : "cleveland-indians",
  "abbreviation" : "CLE",
  "active" : true,
  "first_name" : "Cleveland",
  "last_name" : "Indians",
  "conference" : "American",
  "division" : "Central",
  "site_name" : "Progressive Field",
  "city" : "Cleveland",
  "state" : "Ohio",
  "full_name" : "Cleveland Indians"
}, {
  "team_id" : "colorado-rockies",
  "abbreviation" : "COL",
  "active" : true,
  "first_name" : "Colorado",
  "last_name" : "Rockies",
  "conference" : "National",
  "division" : "West",
  "site_name" : "Coors Field",
  "city" : "Denver",
  "state" : "Colorado",
  "full_name" : "Colorado Rockies"
}, {
  "team_id" : "detroit-tigers",
  "abbreviation" : "DET",
  "active" : true,
  "first_name" : "Detroit",
  "last_name" : "Tigers",
  "conference" : "American",
  "division" : "Central",
  "site_name" : "Comerica Park",
  "city" : "Detroit",
  "state" : "Michigan",
  "full_name" : "Detroit Tigers"
}, {
  "team_id" : "houston-astros",
  "abbreviation" : "HOU",
  "active" : true,
  "first_name" : "Houston",
  "last_name" : "Astros",
  "conference" : "American",
  "division" : "West",
  "site_name" : "Minute Maid Park",
  "city" : "Houston",
  "state" : "Texas",
  "full_name" : "Houston Astros"
}, {
  "team_id" : "kansas-city-royals",
  "abbreviation" : "KC",
  "active" : true,
  "first_name" : "Kansas City",
  "last_name" : "Royals",
  "conference" : "American",
  "division" : "Central",
  "site_name" : "Kauffman Stadium",
  "city" : "Kansas City",
  "state" : "Missouri",
  "full_name" : "Kansas City Royals"
}, {
  "team_id" : "los-angeles-angels",
  "abbreviation" : "LAA",
  "active" : true,
  "first_name" : "Los Angeles",
  "last_name" : "Angels",
  "conference" : "American",
  "division" : "West",
  "site_name" : "Angel Stadium of Anaheim",
  "city" : "Anaheim",
  "state" : "California",
  "full_name" : "Los Angeles Angels"
}, {
  "team_id" : "los-angeles-dodgers",
  "abbreviation" : "LAD",
  "active" : true,
  "first_name" : "Los Angeles",
  "last_name" : "Dodgers",
  "conference" : "National",
  "division" : "West",
  "site_name" : "Dodger Stadium",
  "city" : "Los Angeles",
  "state" : "California",
  "full_name" : "Los Angeles Dodgers"
}, {
  "team_id" : "miami-marlins",
  "abbreviation" : "MIA",
  "active" : true,
  "first_name" : "Miami",
  "last_name" : "Marlins",
  "conference" : "National",
  "division" : "East",
  "site_name" : "Marlins Park",
  "city" : "Miami",
  "state" : "Florida",
  "full_name" : "Miami Marlins"
}, {
  "team_id" : "milwaukee-brewers",
  "abbreviation" : "MIL",
  "active" : true,
  "first_name" : "Milwaukee",
  "last_name" : "Brewers",
  "conference" : "National",
  "division" : "Central",
  "site_name" : "Miller Park",
  "city" : "Milwaukee",
  "state" : "Wisconsin",
  "full_name" : "Milwaukee Brewers"
}, {
  "team_id" : "minnesota-twins",
  "abbreviation" : "MIN",
  "active" : true,
  "first_name" : "Minnesota",
  "last_name" : "Twins",
  "conference" : "American",
  "division" : "Central",
  "site_name" : "Target Field",
  "city" : "Minneapolis",
  "state" : "Minnesota",
  "full_name" : "Minnesota Twins"
}, {
  "team_id" : "new-york-mets",
  "abbreviation" : "NYM",
  "active" : true,
  "first_name" : "New York",
  "last_name" : "Mets",
  "conference" : "National",
  "division" : "East",
  "site_name" : "Citi Field",
  "city" : "Flushing",
  "state" : "New York",
  "full_name" : "New York Mets"
}, {
  "team_id" : "new-york-yankees",
  "abbreviation" : "NYY",
  "active" : true,
  "first_name" : "New York",
  "last_name" : "Yankees",
  "conference" : "American",
  "division" : "East",
  "site_name" : "Yankee Stadium",
  "city" : "Bronx",
  "state" : "New York",
  "full_name" : "New York Yankees"
}, {
  "team_id" : "oakland-athletics",
  "abbreviation" : "OAK",
  "active" : true,
  "first_name" : "Oakland",
  "last_name" : "Athletics",
  "conference" : "American",
  "division" : "West",
  "site_name" : "O.co Coliseum",
  "city" : "Oakland",
  "state" : "California",
  "full_name" : "Oakland Athletics"
}, {
  "team_id" : "philadelphia-phillies",
  "abbreviation" : "PHI",
  "active" : true,
  "first_name" : "Philadelphia",
  "last_name" : "Phillies",
  "conference" : "National",
  "division" : "East",
  "site_name" : "Citizens Bank Park",
  "city" : "Philadelphia",
  "state" : "Pennsylvania",
  "full_name" : "Philadelphia Phillies"
}, {
  "team_id" : "pittsburgh-pirates",
  "abbreviation" : "PIT",
  "active" : true,
  "first_name" : "Pittsburgh",
  "last_name" : "Pirates",
  "conference" : "National",
  "division" : "Central",
  "site_name" : "PNC Park",
  "city" : "Pittsburgh",
  "state" : "Pennsylvania",
  "full_name" : "Pittsburgh Pirates"
}, {
  "team_id" : "san-diego-padres",
  "abbreviation" : "SD",
  "active" : true,
  "first_name" : "San Diego",
  "last_name" : "Padres",
  "conference" : "National",
  "division" : "West",
  "site_name" : "PETCO Park",
  "city" : "San Diego",
  "state" : "California",
  "full_name" : "San Diego Padres"
}, {
  "team_id" : "san-francisco-giants",
  "abbreviation" : "SF",
  "active" : true,
  "first_name" : "San Francisco",
  "last_name" : "Giants",
  "conference" : "National",
  "division" : "West",
  "site_name" : "AT&T Park",
  "city" : "San Francisco",
  "state" : "California",
  "full_name" : "San Francisco Giants"
}, {
  "team_id" : "seattle-mariners",
  "abbreviation" : "SEA",
  "active" : true,
  "first_name" : "Seattle",
  "last_name" : "Mariners",
  "conference" : "American",
  "division" : "West",
  "site_name" : "Safeco Field",
  "city" : "Seattle",
  "state" : "Washington",
  "full_name" : "Seattle Mariners"
}, {
  "team_id" : "st-louis-cardinals",
  "abbreviation" : "STL",
  "active" : true,
  "first_name" : "St. Louis",
  "last_name" : "Cardinals",
  "conference" : "National",
  "division" : "Central",
  "site_name" : "Busch Stadium",
  "city" : "Saint Louis",
  "state" : "Missouri",
  "full_name" : "St. Louis Cardinals"
}, {
  "team_id" : "tampa-bay-rays",
  "abbreviation" : "TB",
  "active" : true,
  "first_name" : "Tampa Bay",
  "last_name" : "Rays",
  "conference" : "American",
  "division" : "East",
  "site_name" : "Tropicana Field",
  "city" : "Saint Petersburg",
  "state" : "Florida",
  "full_name" : "Tampa Bay Rays"
}, {
  "team_id" : "texas-rangers",
  "abbreviation" : "TEX",
  "active" : true,
  "first_name" : "Texas",
  "last_name" : "Rangers",
  "conference" : "American",
  "division" : "West",
  "site_name" : "Rangers Ballpark in Arlington",
  "city" : "Arlington",
  "state" : "Texas",
  "full_name" : "Texas Rangers"
}, {
  "team_id" : "toronto-blue-jays",
  "abbreviation" : "TOR",
  "active" : true,
  "first_name" : "Toronto",
  "last_name" : "Blue Jays",
  "conference" : "American",
  "division" : "East",
  "site_name" : "Rogers Centre",
  "city" : "Toronto",
  "state" : "Ontario",
  "full_name" : "Toronto Blue Jays"
}, {
  "team_id" : "washington-nationals",
  "abbreviation" : "WAS",
  "active" : true,
  "first_name" : "Washington",
  "last_name" : "Nationals",
  "conference" : "National",
  "division" : "East",
  "site_name" : "Nationals Park",
  "city" : "Washington",
  "state" : "District of Columbia",
  "full_name" : "Washington Nationals"
} ]