GET games/for_team

Description

Returns a list of a team's games that meet the search criteria.

Resource URL

http://clutchwin.com/api/v1/games/for_team.json

Parameters

Field Default Description

team

optional
Specifies the team using the team's abbreviated name.

start_date

optional
Specifies the beginning of the time period for which games should be returned. Format: YYYY-MM-DD

end_date

optional
Specifies the end of the time period for which games should be returned Format: YYYY-MM-DD

game_type

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

day_of_week

optional
Return only games played on the specified day of the week Valid values: mon, tue, wed, thu, fri, sat, sun.

opponent

optional
Return only games where the specified team is the opponent.

season

optional
Return only games played in the specified season.

franchise_abbr

optional
Return only games for the specified franchise.

opp_franchise_abbr

optional
Return only games for the specified opponent franchise.

fieldset

optional
Return a limited set of fields. Valid values: basic.

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

Return all Orioles world series games for 1969.

GET

http://clutchwin.com/api/v1/games/for_team.json?team=BAL&season=1969&game_type=ws&access_token=[token]

Response:

[
  {
    "gamelog_id": 271377,
    "game_date": "1969-10-11",
    "game_number": "0",
    "team_abbr": "BAL",
    "team_league": "AL",
    "team_game_number": 1,
    "opp_abbr": "NYN",
    "opp_league": "NL",
    "opp_game_number": 1,
    "is_home": "T",
    "result": "W",
    "win": 1,
    "loss": 0,
    "tie": 0,
    "score": 4,
    "opp_score": 1,
    "line_score": "10030000x",
    "opp_line_score": "000000100",
    "team_ab": 30,
    "team_h": 6,
    "team_2b": 1,
    "team_3b": 0,
    "team_hr": 1,
    "team_rbi": 4,
    "team_sh": 0,
    "team_sf": 0,
    "team_hbp": 0,
    "team_bb": 2,
    "team_ibb": 0,
    "team_k": 6,
    "team_sb": 0,
    "team_cs": 0,
    "team_gidp": 0,
    "team_ci": 0,
    "team_lob": 4,
    "team_pitchers_used": 1,
    "team_ind_er": 1,
    "team_team_er": 1,
    "team_wp": 0,
    "team_balks": 0,
    "team_putouts": 27,
    "team_a": 12,
    "team_e": 0,
    "team_pb": 0,
    "team_dp": 1,
    "team_tp": 0,
    "opp_ab": 31,
    "opp_h": 6,
    "opp_2b": 1,
    "opp_3b": 0,
    "opp_hr": 0,
    "opp_rbi": 1,
    "opp_sh": 0,
    "opp_sf": 1,
    "opp_hbp": 0,
    "opp_bb": 4,
    "opp_ibb": 0,
    "opp_k": 8,
    "opp_sb": 0,
    "opp_cs": 0,
    "opp_gidp": 1,
    "opp_ci": 0,
    "opp_lob": 8,
    "opp_pitchers_used": 3,
    "opp_ind_er": 4,
    "opp_team_er": 4,
    "opp_wp": 0,
    "opp_balks": 0,
    "opp_putouts": 24,
    "opp_a": 8,
    "opp_e": 1,
    "opp_pb": 0,
    "opp_dp": 0,
    "opp_tp": 0,
    "manager_id": "weave801",
    "manager_name": "Earl Weaver",
    "starting_pitcher_id": "cuelm101",
    "starting_pitcher_name": "Mike Cuellar",
    "batter_1_id": "bufod101",
    "batter_1_name": "Don Buford",
    "batter_1_pos": 7,
    "batter_2_id": "blaip101",
    "batter_2_name": "Paul Blair",
    "batter_2_pos": 8,
    "batter_3_id": "robif103",
    "batter_3_name": "Frank Robinson",
    "batter_3_pos": 9,
    "batter_4_id": "poweb101",
    "batter_4_name": "Boog Powell",
    "batter_4_pos": 3,
    "batter_5_id": "robib104",
    "batter_5_name": "Brooks Robinson",
    "batter_5_pos": 5,
    "batter_6_id": "hende103",
    "batter_6_name": "Elrod Hendricks",
    "batter_6_pos": 2,
    "batter_7_id": "johnd105",
    "batter_7_name": "Davey Johnson",
    "batter_7_pos": 4,
    "batter_8_id": "belam101",
    "batter_8_name": "Mark Belanger",
    "batter_8_pos": 6,
    "batter_9_id": "cuelm101",
    "batter_9_name": "Mike Cuellar",
    "batter_9_pos": 1,
    "game_type": "ws",
    "season": 1969,
    "team_id": 2272,
    "opp_franchise_abbr": "NYN",
    "franchise_abbr": "BAL"
  },
  {
    "gamelog_id": 271378,
    "game_date": "1969-10-12",
    "game_number": "0",
    "team_abbr": "BAL",
    "team_league": "AL",
    "team_game_number": 2,
    "opp_abbr": "NYN",
    "opp_league": "NL",
    "opp_game_number": 2,
    "is_home": "T",
    "result": "L",
    "win": 0,
    "loss": 1,
    "tie": 0,
    "score": 1,
    "opp_score": 2,
    "line_score": "000000100",
    "opp_line_score": "000100001",
    "team_ab": 29,
    "team_h": 2,
    "team_2b": 0,
    "team_3b": 0,
    "team_hr": 0,
    "team_rbi": 1,
    "team_sh": 0,
    "team_sf": 0,
    "team_hbp": 0,
    "team_bb": 3,
    "team_ibb": 0,
    "team_k": 4,
    "team_sb": 1,
    "team_cs": 0,
    "team_gidp": 0,
    "team_ci": 0,
    "team_lob": 4,
    "team_pitchers_used": 1,
    "team_ind_er": 2,
    "team_team_er": 2,
    "team_wp": 1,
    "team_balks": 0,
    "team_putouts": 27,
    "team_a": 11,
    "team_e": 0,
    "team_pb": 0,
    "team_dp": 0,
    "team_tp": 0,
    "opp_ab": 33,
    "opp_h": 6,
    "opp_2b": 1,
    "opp_3b": 0,
    "opp_hr": 1,
    "opp_rbi": 2,
    "opp_sh": 0,
    "opp_sf": 0,
    "opp_hbp": 0,
    "opp_bb": 3,
    "opp_ibb": 1,
    "opp_k": 7,
    "opp_sb": 0,
    "opp_cs": 0,
    "opp_gidp": 0,
    "opp_ci": 0,
    "opp_lob": 7,
    "opp_pitchers_used": 2,
    "opp_ind_er": 1,
    "opp_team_er": 1,
    "opp_wp": 0,
    "opp_balks": 0,
    "opp_putouts": 27,
    "opp_a": 8,
    "opp_e": 0,
    "opp_pb": 0,
    "opp_dp": 0,
    "opp_tp": 0,
    "manager_id": "weave801",
    "manager_name": "Earl Weaver",
    "starting_pitcher_id": "mcnad102",
    "starting_pitcher_name": "Dave McNally",
    "batter_1_id": "bufod101",
    "batter_1_name": "Don Buford",
    "batter_1_pos": 7,
    "batter_2_id": "blaip101",
    "batter_2_name": "Paul Blair",
    "batter_2_pos": 8,
    "batter_3_id": "robif103",
    "batter_3_name": "Frank Robinson",
    "batter_3_pos": 9,
    "batter_4_id": "poweb101",
    "batter_4_name": "Boog Powell",
    "batter_4_pos": 3,
    "batter_5_id": "robib104",
    "batter_5_name": "Brooks Robinson",
    "batter_5_pos": 5,
    "batter_6_id": "johnd105",
    "batter_6_name": "Davey Johnson",
    "batter_6_pos": 4,
    "batter_7_id": "etcha101",
    "batter_7_name": "Andy Etchebarren",
    "batter_7_pos": 2,
    "batter_8_id": "belam101",
    "batter_8_name": "Mark Belanger",
    "batter_8_pos": 6,
    "batter_9_id": "mcnad102",
    "batter_9_name": "Dave McNally",
    "batter_9_pos": 1,
    "game_type": "ws",
    "season": 1969,
    "team_id": 2272,
    "opp_franchise_abbr": "NYN",
    "franchise_abbr": "BAL"
  },
  {
    "gamelog_id": 271379,
    "game_date": "1969-10-14",
    "game_number": "0",
    "team_abbr": "BAL",
    "team_league": "AL",
    "team_game_number": 3,
    "opp_abbr": "NYN",
    "opp_league": "NL",
    "opp_game_number": 3,
    "is_home": "F",
    "result": "L",
    "win": 0,
    "loss": 1,
    "tie": 0,
    "score": 0,
    "opp_score": 5,
    "line_score": "000000000",
    "opp_line_score": "12000101x",
    "team_ab": 31,
    "team_h": 4,
    "team_2b": 0,
    "team_3b": 0,
    "team_hr": 0,
    "team_rbi": 0,
    "team_sh": 0,
    "team_sf": 0,
    "team_hbp": 0,
    "team_bb": 7,
    "team_ibb": 0,
    "team_k": 7,
    "team_sb": 0,
    "team_cs": 0,
    "team_gidp": 0,
    "team_ci": 0,
    "team_lob": 11,
    "team_pitchers_used": 2,
    "team_ind_er": 5,
    "team_team_er": 5,
    "team_wp": 0,
    "team_balks": 0,
    "team_putouts": 24,
    "team_a": 6,
    "team_e": 1,
    "team_pb": 0,
    "team_dp": 0,
    "team_tp": 0,
    "opp_ab": 29,
    "opp_h": 6,
    "opp_2b": 2,
    "opp_3b": 0,
    "opp_hr": 2,
    "opp_rbi": 5,
    "opp_sh": 1,
    "opp_sf": 0,
    "opp_hbp": 0,
    "opp_bb": 5,
    "opp_ibb": 0,
    "opp_k": 6,
    "opp_sb": 0,
    "opp_cs": 0,
    "opp_gidp": 0,
    "opp_ci": 0,
    "opp_lob": 6,
    "opp_pitchers_used": 2,
    "opp_ind_er": 0,
    "opp_team_er": 0,
    "opp_wp": 0,
    "opp_balks": 0,
    "opp_putouts": 27,
    "opp_a": 6,
    "opp_e": 0,
    "opp_pb": 0,
    "opp_dp": 0,
    "opp_tp": 0,
    "manager_id": "weave801",
    "manager_name": "Earl Weaver",
    "starting_pitcher_id": "palmj001",
    "starting_pitcher_name": "Jim Palmer",
    "batter_1_id": "bufod101",
    "batter_1_name": "Don Buford",
    "batter_1_pos": 7,
    "batter_2_id": "blaip101",
    "batter_2_name": "Paul Blair",
    "batter_2_pos": 8,
    "batter_3_id": "robif103",
    "batter_3_name": "Frank Robinson",
    "batter_3_pos": 9,
    "batter_4_id": "poweb101",
    "batter_4_name": "Boog Powell",
    "batter_4_pos": 3,
    "batter_5_id": "robib104",
    "batter_5_name": "Brooks Robinson",
    "batter_5_pos": 5,
    "batter_6_id": "hende103",
    "batter_6_name": "Elrod Hendricks",
    "batter_6_pos": 2,
    "batter_7_id": "johnd105",
    "batter_7_name": "Davey Johnson",
    "batter_7_pos": 4,
    "batter_8_id": "belam101",
    "batter_8_name": "Mark Belanger",
    "batter_8_pos": 6,
    "batter_9_id": "palmj001",
    "batter_9_name": "Jim Palmer",
    "batter_9_pos": 1,
    "game_type": "ws",
    "season": 1969,
    "team_id": 2272,
    "opp_franchise_abbr": "NYN",
    "franchise_abbr": "BAL"
  },
  {
    "gamelog_id": 271380,
    "game_date": "1969-10-15",
    "game_number": "0",
    "team_abbr": "BAL",
    "team_league": "AL",
    "team_game_number": 4,
    "opp_abbr": "NYN",
    "opp_league": "NL",
    "opp_game_number": 4,
    "is_home": "F",
    "result": "L",
    "win": 0,
    "loss": 1,
    "tie": 0,
    "score": 1,
    "opp_score": 2,
    "line_score": "0000000010",
    "opp_line_score": "0100000001",
    "team_ab": 35,
    "team_h": 6,
    "team_2b": 0,
    "team_3b": 0,
    "team_hr": 0,
    "team_rbi": 1,
    "team_sh": 0,
    "team_sf": 1,
    "team_hbp": 0,
    "team_bb": 2,
    "team_ibb": 0,
    "team_k": 6,
    "team_sb": 0,
    "team_cs": 1,
    "team_gidp": 0,
    "team_ci": 0,
    "team_lob": 7,
    "team_pitchers_used": 4,
    "team_ind_er": 1,
    "team_team_er": 1,
    "team_wp": 0,
    "team_balks": 0,
    "team_putouts": 27,
    "team_a": 17,
    "team_e": 1,
    "team_pb": 0,
    "team_dp": 3,
    "team_tp": 0,
    "opp_ab": 34,
    "opp_h": 10,
    "opp_2b": 1,
    "opp_3b": 0,
    "opp_hr": 1,
    "opp_rbi": 1,
    "opp_sh": 1,
    "opp_sf": 0,
    "opp_hbp": 0,
    "opp_bb": 1,
    "opp_ibb": 1,
    "opp_k": 7,
    "opp_sb": 0,
    "opp_cs": 1,
    "opp_gidp": 2,
    "opp_ci": 0,
    "opp_lob": 7,
    "opp_pitchers_used": 1,
    "opp_ind_er": 1,
    "opp_team_er": 1,
    "opp_wp": 0,
    "opp_balks": 0,
    "opp_putouts": 30,
    "opp_a": 10,
    "opp_e": 1,
    "opp_pb": 0,
    "opp_dp": 0,
    "opp_tp": 0,
    "manager_id": "weave801",
    "manager_name": "Earl Weaver",
    "starting_pitcher_id": "cuelm101",
    "starting_pitcher_name": "Mike Cuellar",
    "batter_1_id": "bufod101",
    "batter_1_name": "Don Buford",
    "batter_1_pos": 7,
    "batter_2_id": "blaip101",
    "batter_2_name": "Paul Blair",
    "batter_2_pos": 8,
    "batter_3_id": "robif103",
    "batter_3_name": "Frank Robinson",
    "batter_3_pos": 9,
    "batter_4_id": "poweb101",
    "batter_4_name": "Boog Powell",
    "batter_4_pos": 3,
    "batter_5_id": "robib104",
    "batter_5_name": "Brooks Robinson",
    "batter_5_pos": 5,
    "batter_6_id": "hende103",
    "batter_6_name": "Elrod Hendricks",
    "batter_6_pos": 2,
    "batter_7_id": "johnd105",
    "batter_7_name": "Davey Johnson",
    "batter_7_pos": 4,
    "batter_8_id": "belam101",
    "batter_8_name": "Mark Belanger",
    "batter_8_pos": 6,
    "batter_9_id": "cuelm101",
    "batter_9_name": "Mike Cuellar",
    "batter_9_pos": 1,
    "game_type": "ws",
    "season": 1969,
    "team_id": 2272,
    "opp_franchise_abbr": "NYN",
    "franchise_abbr": "BAL"
  },
  {
    "gamelog_id": 271381,
    "game_date": "1969-10-16",
    "game_number": "0",
    "team_abbr": "BAL",
    "team_league": "AL",
    "team_game_number": 5,
    "opp_abbr": "NYN",
    "opp_league": "NL",
    "opp_game_number": 5,
    "is_home": "F",
    "result": "L",
    "win": 0,
    "loss": 1,
    "tie": 0,
    "score": 3,
    "opp_score": 5,
    "line_score": "003000000",
    "opp_line_score": "00000212x",
    "team_ab": 32,
    "team_h": 5,
    "team_2b": 0,
    "team_3b": 0,
    "team_hr": 2,
    "team_rbi": 3,
    "team_sh": 0,
    "team_sf": 0,
    "team_hbp": 0,
    "team_bb": 1,
    "team_ibb": 0,
    "team_k": 5,
    "team_sb": 0,
    "team_cs": 0,
    "team_gidp": 0,
    "team_ci": 0,
    "team_lob": 3,
    "team_pitchers_used": 2,
    "team_ind_er": 4,
    "team_team_er": 4,
    "team_wp": 0,
    "team_balks": 0,
    "team_putouts": 24,
    "team_a": 5,
    "team_e": 2,
    "team_pb": 0,
    "team_dp": 0,
    "team_tp": 0,
    "opp_ab": 32,
    "opp_h": 7,
    "opp_2b": 3,
    "opp_3b": 0,
    "opp_hr": 2,
    "opp_rbi": 4,
    "opp_sh": 0,
    "opp_sf": 0,
    "opp_hbp": 1,
    "opp_bb": 2,
    "opp_ibb": 0,
    "opp_k": 7,
    "opp_sb": 1,
    "opp_cs": 0,
    "opp_gidp": 0,
    "opp_ci": 0,
    "opp_lob": 6,
    "opp_pitchers_used": 1,
    "opp_ind_er": 3,
    "opp_team_er": 3,
    "opp_wp": 0,
    "opp_balks": 0,
    "opp_putouts": 27,
    "opp_a": 10,
    "opp_e": 0,
    "opp_pb": 0,
    "opp_dp": 0,
    "opp_tp": 0,
    "manager_id": "weave801",
    "manager_name": "Earl Weaver",
    "starting_pitcher_id": "mcnad102",
    "starting_pitcher_name": "Dave McNally",
    "batter_1_id": "bufod101",
    "batter_1_name": "Don Buford",
    "batter_1_pos": 7,
    "batter_2_id": "blaip101",
    "batter_2_name": "Paul Blair",
    "batter_2_pos": 8,
    "batter_3_id": "robif103",
    "batter_3_name": "Frank Robinson",
    "batter_3_pos": 9,
    "batter_4_id": "poweb101",
    "batter_4_name": "Boog Powell",
    "batter_4_pos": 3,
    "batter_5_id": "robib104",
    "batter_5_name": "Brooks Robinson",
    "batter_5_pos": 5,
    "batter_6_id": "johnd105",
    "batter_6_name": "Davey Johnson",
    "batter_6_pos": 4,
    "batter_7_id": "etcha101",
    "batter_7_name": "Andy Etchebarren",
    "batter_7_pos": 2,
    "batter_8_id": "belam101",
    "batter_8_name": "Mark Belanger",
    "batter_8_pos": 6,
    "batter_9_id": "mcnad102",
    "batter_9_name": "Dave McNally",
    "batter_9_pos": 1,
    "game_type": "ws",
    "season": 1969,
    "team_id": 2272,
    "opp_franchise_abbr": "NYN",
    "franchise_abbr": "BAL"
  }
]
              

Resource Information

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