Teams by organization

/sports/organizations/:organizationId

Returns a listing of all teams and associated metadata for one or more organizations.

Request Parameters

Parameter

Mandatory?

Description

organizationId Yes Comma-separated list of organizationIds
imageSize No Requested size of image returned in preferredImage URI.
Valid values are: Sm, Md, Lg, Ms. See Image Sizing for details.
If not specified, defaults to Md.
If requested image size is not available, generic image will be returned.

api_key

Yes

24-character key obtained during application registration

Response Body

Response

Description

organizationId Resource identifier for organization
organizationName Name of organization; see Organization Metadata for listing of currently categorized organizations by sport.
preferredImage Organization logo, if available; see Image Metadata for details
teams List of teams associated with organization (for team sports only)
teamBrandId Resource identifier for team
teamId For linking of cross reference purpose
sportsId Resource identifier for sport
teamBrandName Team name
nickName Team nickname
properName Proper name of team
abbreviation Team abbreviation
university Object with the following university metadata (included only if team is associated with a college or university, and university info is available)
universityId Resource identifier for university
universityName University name

Sample Request

http://data.tmsapi.com/v1.1/sports/organizations/8?api_key=1234567890

Sample Response

[
{
"organizationName": "MLB Baseball",
"preferredImage": {
"width": "360",
"height": "270",
"uri": "assets/o17_l_h3_ac.png",
"category": "Logo",
"text": "yes",
"primary": "true",
"tier": "Sport"
},
"organizationId": 17,
"teams": [
{
"teamBrandId": "22",
"teamId": "22",
"sportsId": "58",
"teamBrandName": "Pittsburgh Pirates",
"nickName": "Pirates",
"properName": "Pittsburgh",
"abbreviation": "PIT"
},
{
"teamBrandId": "9",
"teamId": "9",
"sportsId": "58",
"teamBrandName": "Colorado Rockies",
"nickName": "Rockies",
"properName": "Colorado",
"abbreviation": "COL"
},
{
"teamBrandId": "16",
"teamId": "16",
"sportsId": "58",
"teamBrandName": "Milwaukee Brewers",
"nickName": "Brewers",
"properName": "Milwaukee",
"abbreviation": "MIL"
},
{
"teamBrandId": "21",
"teamId": "21",
"sportsId": "58",
"teamBrandName": "Philadelphia Phillies",
"nickName": "Phillies",
"properName": "Philadelphia",
"abbreviation": "PHI"
},
{
"teamBrandId": "1",
"teamId": "1",
"sportsId": "58",
"teamBrandName": "Arizona Diamondbacks",
"nickName": "Diamondbacks",
"properName": "Arizona",
"abbreviation": "ARI"
},
{
"teamBrandId": "13556",
"teamId": "13489",
"teamBrandName": "National League",
"nickName": "All-Stars",
"properName": "National League"
},
{
"teamBrandId": "23",
"teamId": "23",
"sportsId": "58",
"teamBrandName": "San Diego Padres",
"nickName": "Padres",
"properName": "San Diego",
"abbreviation": "SD"
},
{
"teamBrandId": "6075",
"teamId": "11",
"sportsId": "58",
"teamBrandName": "Miami Marlins",
"nickName": "Marlins",
"properName": "Miami",
"abbreviation": "MIA"
},
{
"teamBrandId": "30",
"teamId": "30",
"sportsId": "58",
"teamBrandName": "Washington Nationals",
"nickName": "Nationals",
"properName": "Washington",
"abbreviation": "WAS"
},
{
"teamBrandId": "19",
"teamId": "19",
"sportsId": "58",
"teamBrandName": "New York Yankees",
"nickName": "Yankees",
"properName": "New York",
"abbreviation": "NYY"
},
{
"teamBrandId": "13555",
"teamId": "13488",
"teamBrandName": "American League",
"nickName": "All-Stars",
"properName": "American League"
},
{
"teamBrandId": "18",
"teamId": "18",
"sportsId": "58",
"teamBrandName": "New York Mets",
"nickName": "Mets",
"properName": "New York",
"abbreviation": "NYM"
},
{
"teamBrandId": "5",
"teamId": "5",
"sportsId": "58",
"teamBrandName": "Chicago Cubs",
"nickName": "Cubs",
"properName": "Chicago",
"abbreviation": "CHC"
},
{
"teamBrandId": "10",
"teamId": "10",
"sportsId": "58",
"teamBrandName": "Detroit Tigers",
"nickName": "Tigers",
"properName": "Detroit",
"abbreviation": "DET"
},
{
"teamBrandId": "20",
"teamId": "20",
"sportsId": "58",
"teamBrandName": "Oakland Athletics",
"nickName": "Athletics",
"properName": "Oakland",
"abbreviation": "OAK"
},
{
"teamBrandId": "8",
"teamId": "8",
"sportsId": "58",
"teamBrandName": "Cleveland Indians",
"nickName": "Indians",
"properName": "Cleveland",
"abbreviation": "CLE"
},
{
"teamBrandId": "12",
"teamId": "12",
"sportsId": "58",
"teamBrandName": "Houston Astros",
"nickName": "Astros",
"properName": "Houston",
"abbreviation": "HOU"
},
{
"teamBrandId": "24",
"teamId": "24",
"sportsId": "58",
"teamBrandName": "San Francisco Giants",
"nickName": "Giants",
"properName": "San Francisco",
"abbreviation": "SF"
},
{
"teamBrandId": "14",
"teamId": "14",
"sportsId": "58",
"teamBrandName": "Los Angeles Angels of Anaheim",
"nickName": "Angels",
"properName": "Los Angeles",
"abbreviation": "LAA"
},
{
"teamBrandId": "29",
"teamId": "29",
"sportsId": "58",
"teamBrandName": "Toronto Blue Jays",
"nickName": "Blue Jays",
"properName": "Toronto",
"abbreviation": "TOR"
},
{
"teamBrandId": "27",
"teamId": "27",
"sportsId": "58",
"teamBrandName": "Tampa Bay Rays",
"nickName": "Rays",
"properName": "Tampa Bay",
"abbreviation": "TB"
},
{
"teamBrandId": "28",
"teamId": "28",
"sportsId": "58",
"teamBrandName": "Texas Rangers",
"nickName": "Rangers",
"properName": "Texas",
"abbreviation": "TEX"
},
{
"teamBrandId": "3",
"teamId": "3",
"sportsId": "58",
"teamBrandName": "Baltimore Orioles",
"nickName": "Orioles",
"properName": "Baltimore",
"abbreviation": "BAL"
},
{
"teamBrandId": "15",
"teamId": "15",
"sportsId": "58",
"teamBrandName": "Los Angeles Dodgers",
"nickName": "Dodgers",
"properName": "Los Angeles",
"abbreviation": "LAD"
},
{
"teamBrandId": "25",
"teamId": "25",
"sportsId": "58",
"teamBrandName": "Seattle Mariners",
"nickName": "Mariners",
"properName": "Seattle",
"abbreviation": "SEA"
},
{
"teamBrandId": "7",
"teamId": "7",
"sportsId": "58",
"teamBrandName": "Cincinnati Reds",
"nickName": "Reds",
"properName": "Cincinnati",
"abbreviation": "CIN"
},
{
"teamBrandId": "17",
"teamId": "17",
"sportsId": "58",
"teamBrandName": "Minnesota Twins",
"nickName": "Twins",
"properName": "Minnesota",
"abbreviation": "MIN"
},
{
"teamBrandId": "6",
"teamId": "6",
"sportsId": "58",
"teamBrandName": "Chicago White Sox",
"nickName": "White Sox",
"properName": "Chicago",
"abbreviation": "CWS"
},
{
"teamBrandId": "26",
"teamId": "26",
"sportsId": "58",
"teamBrandName": "St. Louis Cardinals",
"nickName": "Cardinals",
"properName": "St. Louis",
"abbreviation": "STL"
},
{
"teamBrandId": "13",
"teamId": "13",
"sportsId": "58",
"teamBrandName": "Kansas City Royals",
"nickName": "Royals",
"properName": "Kansas City",
"abbreviation": "KC"
},
{
"teamBrandId": "2",
"teamId": "2",
"sportsId": "58",
"teamBrandName": "Atlanta Braves",
"nickName": "Braves",
"properName": "Atlanta",
"abbreviation": "ATL"
},
{
"teamBrandId": "4",
"teamId": "4",
"sportsId": "58",
"teamBrandName": "Boston Red Sox",
"nickName": "Red Sox",
"properName": "Boston",
"abbreviation": "BOS"
}
]
}
]

Docs Navigation