GET games/for_team/summary

Description

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

Resource URL

http://clutchwin.com/api/v1/games/for_team/summary.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.

group

optional
Specify a field (or list of fields) in the games table to group the results by that field. For example, specify 'season' to get a summary of a team's record each year. For more than one field, separate the entries with a comma.

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 a summary of all Orioles world series games for 1969.

GET

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

Response:

[
  {
    "g": 5,
    "win": 1,
    "loss": 4,
    "tie": 0,
    "score": 9,
    "opp_score": 15,
    "team_ab": 157,
    "team_h": 23,
    "team_2b": 1,
    "team_3b": 0,
    "team_hr": 3,
    "team_rbi": 9,
    "team_sh": 0,
    "team_sf": 1,
    "team_hbp": 0,
    "team_bb": 15,
    "team_ibb": 0,
    "team_k": 28,
    "team_sb": 1,
    "team_cs": 1,
    "team_gidp": 0,
    "team_ci": 0,
    "team_lob": 29,
    "team_pitchers_used": 10,
    "team_ind_er": 13,
    "team_team_er": 13,
    "team_wp": 1,
    "team_balks": 0,
    "team_putouts": 129,
    "team_a": 51,
    "team_e": 4,
    "team_pb": 0,
    "team_dp": 4,
    "team_tp": 0,
    "opp_ab": 159,
    "opp_h": 35,
    "opp_2b": 8,
    "opp_3b": 0,
    "opp_hr": 6,
    "opp_rbi": 13,
    "opp_sh": 2,
    "opp_sf": 1,
    "opp_hbp": 1,
    "opp_bb": 15,
    "opp_ibb": 2,
    "opp_k": 35,
    "opp_sb": 1,
    "opp_cs": 1,
    "opp_gidp": 3,
    "opp_ci": 0,
    "opp_lob": 34,
    "opp_pitchers_used": 9,
    "opp_ind_er": 9,
    "opp_team_er": 9,
    "opp_wp": 0,
    "opp_balks": 0,
    "opp_putouts": 135,
    "opp_a": 42,
    "opp_e": 2,
    "opp_pb": 0,
    "opp_dp": 0,
    "opp_tp": 0
  }
]
              

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