GET teams

Description

Returns a list of all teams for a specific year.

Resource URL

http://clutchwin.com/api/v1/teams.json

Parameters

Field Default Description

season

required
Specifies the year for which teams should be returned.

game_type

optional
regular Filters the list for a particular type of game (regular, all-star, or post-season). Valid values: asg, post, regular.

max_entries

optional
100 Number of entries to return per request.

start_index

optional
1 The index of the first entry to be returned (used for paging).

Example Requests

Show all teams that participated in the post season in 1969.

GET

http://clutchwin.com/api/v1/teams.json?season=1969&game_type=post&access_token=[token]

Response:

[
  {
    "season": 1969,
    "team_abbr": "ATL",
    "game_type": "post",
    "league": "N",
    "location": "Atlanta",
    "name": "Braves"
  },
  {
    "season": 1969,
    "team_abbr": "BAL",
    "game_type": "post",
    "league": "A",
    "location": "Baltimore",
    "name": "Orioles"
  },
  {
    "season": 1969,
    "team_abbr": "MIN",
    "game_type": "post",
    "league": "A",
    "location": "Minnesota",
    "name": "Twins"
  },
  {
    "season": 1969,
    "team_abbr": "NYN",
    "game_type": "post",
    "league": "N",
    "location": "New York",
    "name": "Mets"
  }
]
              

Resource Information

Rate Limited? No
Requests per rate limit window N/A
Response Formats json, xml
HTTP Methods GET
Resource family teams
API Version API v1.0