Closed znmeb closed 8 years ago
"Game Logs" are something we assemble when a game has ended.
The game_logs
endpoint and data contains that stats for an individual player; the team_game_logs
for the team as a whole.
Ie, David Oritiz has 2 hits, but the Red Sox have 9 hits in the game.
The http://developers.stattleship.com/#baseball-game-logs and http://developers.stattleship.com/#baseball-team-game-logs docs show an example of the JSON response with the stats present in each.
{
"games": [
{
"id": "ec67ced9-a71e-4144-8a03-1e3fb1d2249c",
"created_at": "2016-03-18T21:06:27-04:00",
"updated_at": "2016-03-19T06:36:33-04:00",
"at_neutral_site": false,
"attendance": 31441,
"away_team_outcome": "loss",
"away_team_score": 0,
"daytime": false,
"duration": 8340,
"ended_at": "2015-10-04T18:27:35-04:00",
"home_team_outcome": "win",
"home_team_score": 2,
"interval": "Regular Season",
"interval_number": "",
"interval_type": "regularseason",
"label": "Cardinals vs Braves",
"name": "Cardinals vs Braves October 4, 2015 at 4:00pm",
"on": "on October 4, 2015",
"score": "0-2",
"score_differential": 2,
"scoreline": "Cardinals 0 - Braves 2",
"slug": "mlb-2015-stl-atl-2015-10-4-1600",
"started_at": "2015-10-04T16:00:00-04:00",
"status": "ended",
"temperature": 69,
"temperature_unit": "f",
"timestamp": 1443988800,
"title": "Cardinals vs Braves",
"weather_conditions": "cloudy",
"wind_direction": "In from Center",
"wind_speed": 11,
"wind_speed_unit": "mph",
"home_team_id": "e0aa8528-46d5-41a4-95fe-50f0a2e3a761",
"away_team_id": "26345a1d-a856-48be-a53b-262367b5437e",
"winning_team_id": "e0aa8528-46d5-41a4-95fe-50f0a2e3a761",
"season_id": "e46014e6-f9e9-41c3-9deb-cd11ee879d75",
"venue_id": "bfbb4850-7975-473c-ba00-0253e816beb7"
}
],
"home_teams": [
{
"id": "e0aa8528-46d5-41a4-95fe-50f0a2e3a761",
"created_at": "2016-03-18T20:56:45-04:00",
"updated_at": "2016-03-21T17:55:10-04:00",
"color": "CE1141",
"colors": [
"CE1141",
"13274F"
],
"hashtag": "Braves",
"hashtags": [
"Braves"
],
"location": "Atlanta",
"name": "Atlanta",
"nickname": "Braves",
"latitude": 33.7005971,
"longitude": -84.354916,
"slug": "mlb-atl",
"division_id": "cbf6f7d2-4f6f-4fe9-b838-cf35bf9385b2",
"league_id": "cb399a17-e581-4f1a-9535-ea3bcb09fa1f"
}
],
"leagues": [
{
"id": "cb399a17-e581-4f1a-9535-ea3bcb09fa1f",
"created_at": "2016-03-18T20:56:43-04:00",
"updated_at": "2016-03-18T20:56:43-04:00",
"abbreviation": "MLB",
"color": null,
"minutes_per_period": null,
"name": "Major League Baseball",
"periods": null,
"slug": "mlb",
"sport": "baseball"
}
],
"away_teams": [
{
"id": "26345a1d-a856-48be-a53b-262367b5437e",
"created_at": "2016-03-18T20:56:45-04:00",
"updated_at": "2016-03-21T18:23:11-04:00",
"color": "C41E3A",
"colors": [
"C41E3A",
"000066",
"FEDB00"
],
"hashtag": "STLCards",
"hashtags": [
"STLCards",
"Cardinals"
],
"location": "St. Louis",
"name": "St. Louis",
"nickname": "Cardinals",
"latitude": 38.6270025,
"longitude": -90.1994042,
"slug": "mlb-stl",
"division_id": "920b37d3-9fd8-45c6-a1fb-047748240732",
"league_id": "cb399a17-e581-4f1a-9535-ea3bcb09fa1f"
}
],
"winning_teams": [
{
"id": "e0aa8528-46d5-41a4-95fe-50f0a2e3a761",
"created_at": "2016-03-18T20:56:45-04:00",
"updated_at": "2016-03-21T17:55:10-04:00",
"color": "CE1141",
"colors": [
"CE1141",
"13274F"
],
"hashtag": "Braves",
"hashtags": [
"Braves"
],
"location": "Atlanta",
"name": "Atlanta",
"nickname": "Braves",
"latitude": 33.7005971,
"longitude": -84.354916,
"slug": "mlb-atl",
"division_id": "cbf6f7d2-4f6f-4fe9-b838-cf35bf9385b2",
"league_id": "cb399a17-e581-4f1a-9535-ea3bcb09fa1f"
}
],
"seasons": [
{
"id": "e46014e6-f9e9-41c3-9deb-cd11ee879d75",
"created_at": "2016-03-18T21:03:28-04:00",
"updated_at": "2016-03-18T21:03:28-04:00",
"name": "2015",
"current_interval_type": "regularseason",
"starts_on": "2015-02-01",
"ends_on": "2015-11-30",
"slug": "mlb-2015",
"league_id": "cb399a17-e581-4f1a-9535-ea3bcb09fa1f"
}
],
"venues": [
{
"id": "bfbb4850-7975-473c-ba00-0253e816beb7",
"created_at": "2016-03-18T21:04:08-04:00",
"updated_at": "2016-03-21T18:12:36-04:00",
"abbreviation": "TF",
"capacity": 54357,
"city": "Atlanta",
"country": "USA",
"field_type": "Grass",
"name": "Turner Field",
"slug": "turner-field",
"state": "Georgia",
"time_zone": "US/Eastern",
"latitude": 33.7005971,
"longitude": -84.354916
}
],
"players": [
{
"id": "7a9b2531-174e-4885-80b3-b67cfc495c73",
"created_at": "2016-03-18T21:12:01-04:00",
"updated_at": "2016-03-21T17:53:13-04:00",
"active": true,
"birth_date": "1985-04-05",
"defensive": false,
"first_name": "Hector",
"handedness": "right",
"bats": "bats_right",
"height": 74,
"unit_of_height": "inches",
"last_name": "Olivera",
"name": "Hector Olivera",
"offensive": true,
"position_abbreviation": "2B",
"position_name": "Second Base",
"salary": 10416667,
"humanized_salary": "10,416,667",
"salary_currency": "USD",
"school": null,
"slug": "mlb-hector-olivera",
"sport": "baseball",
"weight": 220,
"unit_of_weight": "pounds",
"years_of_experience": 1,
"league_id": "cb399a17-e581-4f1a-9535-ea3bcb09fa1f",
"playing_position_id": "f300e31e-61fb-48be-a215-6260d7fde49d",
"team_id": "e0aa8528-46d5-41a4-95fe-50f0a2e3a761"
},
{
"id": "9e5a519e-48f9-4f23-bdee-a1558df717bd",
"created_at": "2016-03-18T21:11:18-04:00",
"updated_at": "2016-03-21T17:53:38-04:00",
"active": true,
"birth_date": "1987-05-12",
"defensive": false,
"first_name": "Lance",
"handedness": "right",
"bats": "bats_right",
"height": 77,
"unit_of_height": "inches",
"last_name": "Lynn",
"name": "Lance Lynn",
"offensive": true,
"position_abbreviation": "SP",
"position_name": "Starter",
"salary": 7500000,
"humanized_salary": "7,500,000",
"salary_currency": "USD",
"school": "Mississippi",
"slug": "mlb-lance-lynn",
"sport": "baseball",
"weight": 240,
"unit_of_weight": "pounds",
"years_of_experience": 4,
"league_id": "cb399a17-e581-4f1a-9535-ea3bcb09fa1f",
"playing_position_id": "738ffd4a-154d-4ccf-9f9a-5ee32466c4d6",
"team_id": "26345a1d-a856-48be-a53b-262367b5437e"
},
{
"id": "3af911e8-2eb4-4ecf-9a7b-1d19b21fb6a4",
"created_at": "2016-03-18T21:10:17-04:00",
"updated_at": "2016-03-21T17:53:12-04:00",
"active": true,
"birth_date": "1987-08-07",
"defensive": false,
"first_name": "Ryan",
"handedness": "right",
"bats": "bats_right",
"height": 76,
"unit_of_height": "inches",
"last_name": "Lavarnway",
"name": "Ryan Lavarnway",
"offensive": true,
"position_abbreviation": "C",
"position_name": "Catcher",
"salary": 0,
"humanized_salary": "0",
"salary_currency": "USD",
"school": "Yale",
"slug": "mlb-ryan-lavarnway",
"sport": "baseball",
"weight": 240,
"unit_of_weight": "pounds",
"years_of_experience": 5,
"league_id": "cb399a17-e581-4f1a-9535-ea3bcb09fa1f",
"playing_position_id": "35d2f5d0-7407-48c2-80ca-8e5d25e099d9",
"team_id": "e0aa8528-46d5-41a4-95fe-50f0a2e3a761"
},
{
"id": "23b2cfb3-6ab7-4398-aabe-ab9fa737d03e",
"created_at": "2016-03-18T21:10:40-04:00",
"updated_at": "2016-03-21T18:09:16-04:00",
"active": true,
"birth_date": "1987-04-04",
"defensive": false,
"first_name": "Cameron",
"handedness": "right",
"bats": "bats_right",
"height": 75,
"unit_of_height": "inches",
"last_name": "Maybin",
"name": "Cameron Maybin",
"offensive": true,
"position_abbreviation": "CF",
"position_name": "Center Outfield",
"salary": 8100000,
"humanized_salary": "8,100,000",
"salary_currency": "USD",
"school": null,
"slug": "mlb-cameron-maybin",
"sport": "baseball",
"weight": 215,
"unit_of_weight": "pounds",
"years_of_experience": 7,
"league_id": "cb399a17-e581-4f1a-9535-ea3bcb09fa1f",
"playing_position_id": "e900e850-ab40-4048-aa57-631ea8390519",
"team_id": "9ab4bef1-ea26-456b-a018-bf2bde1f6599"
},
{
"id": "42a1fe72-6336-4c16-9e60-3202ecb1a689",
"created_at": "2016-03-18T21:11:19-04:00",
"updated_at": "2016-03-21T17:53:39-04:00",
"active": true,
"birth_date": "1988-03-08",
"defensive": false,
"first_name": "Thomas",
"handedness": "right",
"bats": "bats_right",
"height": 73,
"unit_of_height": "inches",
"last_name": "Pham",
"name": "Thomas Pham",
"offensive": true,
"position_abbreviation": "CF",
"position_name": "Center Outfield",
"salary": 0,
"humanized_salary": "0",
"salary_currency": "USD",
"school": "Durango HS",
"slug": "mlb-thomas-pham",
"sport": "baseball",
"weight": 175,
"unit_of_weight": "pounds",
"years_of_experience": 1,
"league_id": "cb399a17-e581-4f1a-9535-ea3bcb09fa1f",
"playing_position_id": "e900e850-ab40-4048-aa57-631ea8390519",
"team_id": "26345a1d-a856-48be-a53b-262367b5437e"
}
],
"teams": [
{
"id": "e0aa8528-46d5-41a4-95fe-50f0a2e3a761",
"created_at": "2016-03-18T20:56:45-04:00",
"updated_at": "2016-03-21T17:55:10-04:00",
"color": "CE1141",
"colors": [
"CE1141",
"13274F"
],
"hashtag": "Braves",
"hashtags": [
"Braves"
],
"location": "Atlanta",
"name": "Atlanta",
"nickname": "Braves",
"latitude": 33.7005971,
"longitude": -84.354916,
"slug": "mlb-atl",
"division_id": "cbf6f7d2-4f6f-4fe9-b838-cf35bf9385b2",
"league_id": "cb399a17-e581-4f1a-9535-ea3bcb09fa1f"
},
{
"id": "26345a1d-a856-48be-a53b-262367b5437e",
"created_at": "2016-03-18T20:56:45-04:00",
"updated_at": "2016-03-21T18:23:11-04:00",
"color": "C41E3A",
"colors": [
"C41E3A",
"000066",
"FEDB00"
],
"hashtag": "STLCards",
"hashtags": [
"STLCards",
"Cardinals"
],
"location": "St. Louis",
"name": "St. Louis",
"nickname": "Cardinals",
"latitude": 38.6270025,
"longitude": -90.1994042,
"slug": "mlb-stl",
"division_id": "920b37d3-9fd8-45c6-a1fb-047748240732",
"league_id": "cb399a17-e581-4f1a-9535-ea3bcb09fa1f"
},
{
"id": "9ab4bef1-ea26-456b-a018-bf2bde1f6599",
"created_at": "2016-03-18T20:56:44-04:00",
"updated_at": "2016-03-21T17:54:29-04:00",
"color": "0C2C56",
"colors": [
"0C2C56"
],
"hashtag": "Tigers",
"hashtags": [
"Tigers"
],
"location": "Detroit",
"name": "Detroit",
"nickname": "Tigers",
"latitude": 42.3300676,
"longitude": -83.0449362,
"slug": "mlb-det",
"division_id": "ca580e37-ee8b-44d3-94ac-6eb2bf35d094",
"league_id": "cb399a17-e581-4f1a-9535-ea3bcb09fa1f"
}
],
"opponents": [
{
"id": "26345a1d-a856-48be-a53b-262367b5437e",
"created_at": "2016-03-18T20:56:45-04:00",
"updated_at": "2016-03-21T18:23:11-04:00",
"color": "C41E3A",
"colors": [
"C41E3A",
"000066",
"FEDB00"
],
"hashtag": "STLCards",
"hashtags": [
"STLCards",
"Cardinals"
],
"location": "St. Louis",
"name": "St. Louis",
"nickname": "Cardinals",
"latitude": 38.6270025,
"longitude": -90.1994042,
"slug": "mlb-stl",
"division_id": "920b37d3-9fd8-45c6-a1fb-047748240732",
"league_id": "cb399a17-e581-4f1a-9535-ea3bcb09fa1f"
},
{
"id": "e0aa8528-46d5-41a4-95fe-50f0a2e3a761",
"created_at": "2016-03-18T20:56:45-04:00",
"updated_at": "2016-03-21T17:55:10-04:00",
"color": "CE1141",
"colors": [
"CE1141",
"13274F"
],
"hashtag": "Braves",
"hashtags": [
"Braves"
],
"location": "Atlanta",
"name": "Atlanta",
"nickname": "Braves",
"latitude": 33.7005971,
"longitude": -84.354916,
"slug": "mlb-atl",
"division_id": "cbf6f7d2-4f6f-4fe9-b838-cf35bf9385b2",
"league_id": "cb399a17-e581-4f1a-9535-ea3bcb09fa1f"
}
],
"game_logs": [
{
"id": "ec67ced9-a71e-4144-8a03-1e3fb1d2249c7a9b2531-174e-4885-80b3-b67cfc495c73",
"created_at": "2016-03-18T21:06:27-04:00",
"updated_at": "2016-03-19T06:36:33-04:00",
"game_played": true,
"game_started": true,
"home_team_outcome": "win",
"home_team_score": 2,
"away_team_outcome": "loss",
"away_team_score": 0,
"team_outcome": "win",
"team_score": 2,
"catcher_interferences": 0,
"catcher_stealers_allowed": 0,
"catcher_stealers_caught": 0,
"fielding_errors": 0,
"outfield_assists": 0,
"passed_balls": 0,
"at_bats": 3,
"batting_average": "0.33333334",
"caught_stealing": 0,
"doubles": 1,
"grounded_into_double_plays": 0,
"hit_by_pitch": 0,
"hits": 1,
"home_runs": 0,
"intentional_walks": 0,
"intentional_walks_against": 0,
"left_on_base": 1,
"on_base_percentage": "0.33333334",
"on_base_plus_slugging": "1.0000000298023224",
"rlisp_two_out": 0,
"runs": 0,
"runs_batted_in": 0,
"sacrifice_flys": 0,
"sacrifice_hits": 0,
"slugging_percentage": "0.6666667",
"stolen_bases": 0,
"strikeouts": 1,
"total_bases": 2,
"triples": 0,
"two_out_rbi": 0,
"walks": 0,
"balks": 0,
"batters_faced": 0,
"blown_saves": 0,
"complete_games": 0,
"earned_run_average": "0.0",
"pitcher_fielding_errors": 0,
"fly_ball_outs": 0,
"ground_ball_outs": 0,
"holds": 0,
"inherited_runners": 0,
"inherited_runners_scored": 0,
"losses": 0,
"no_decisions": 0,
"outs_pitched": 0,
"pickoffs": 0,
"pitcher_caught_stealing": 0,
"pitcher_earned_runs": "0.0",
"pitcher_games_played": 0,
"pitcher_games_started": 0,
"pitcher_hit_by_pitch": 0,
"pitcher_hits": 0,
"pitcher_home_runs": 0,
"pitcher_intentional_walks": 0,
"pitcher_runs": 0,
"pitcher_sacrifice_flys": 0,
"pitcher_sacrifice_hits": 0,
"pitcher_stolen_bases": 0,
"pitcher_strikeouts": 0,
"pitcher_walks": 0,
"pitches_thrown": 0,
"quality_starts": 0,
"saves": 0,
"shutouts": 0,
"starting_pitches_thrown": 0,
"strikes_thrown": 0,
"whip": "0.0",
"wild_pitches": 0,
"wins": 0,
"game_id": "ec67ced9-a71e-4144-8a03-1e3fb1d2249c",
"player_id": "7a9b2531-174e-4885-80b3-b67cfc495c73",
"team_id": "e0aa8528-46d5-41a4-95fe-50f0a2e3a761",
"opponent_id": "26345a1d-a856-48be-a53b-262367b5437e"
},
{
"id": "ec67ced9-a71e-4144-8a03-1e3fb1d2249c9e5a519e-48f9-4f23-bdee-a1558df717bd",
"created_at": "2016-03-18T21:06:27-04:00",
"updated_at": "2016-03-19T06:36:33-04:00",
"game_played": true,
"game_started": true,
"home_team_outcome": "win",
"home_team_score": 2,
"away_team_outcome": "loss",
"away_team_score": 0,
"team_outcome": "loss",
"team_score": 0,
"catcher_interferences": 0,
"catcher_stealers_allowed": 0,
"catcher_stealers_caught": 0,
"fielding_errors": 0,
"outfield_assists": 0,
"passed_balls": 0,
"at_bats": 1,
"batting_average": "0.0",
"caught_stealing": 0,
"doubles": 0,
"grounded_into_double_plays": 0,
"hit_by_pitch": 0,
"hits": 0,
"home_runs": 0,
"intentional_walks": 0,
"intentional_walks_against": 0,
"left_on_base": 0,
"on_base_percentage": "0.0",
"on_base_plus_slugging": "0.0",
"rlisp_two_out": 0,
"runs": 0,
"runs_batted_in": 0,
"sacrifice_flys": 0,
"sacrifice_hits": 0,
"slugging_percentage": "0.0",
"stolen_bases": 0,
"strikeouts": 0,
"total_bases": 0,
"triples": 0,
"two_out_rbi": 0,
"walks": 0,
"balks": 0,
"batters_faced": 20,
"blown_saves": 0,
"complete_games": 0,
"earned_run_average": "1.8",
"pitcher_fielding_errors": 0,
"fly_ball_outs": 1,
"ground_ball_outs": 8,
"holds": 0,
"inherited_runners": 0,
"inherited_runners_scored": 0,
"losses": 1,
"no_decisions": 0,
"outs_pitched": 15,
"pickoffs": 1,
"pitcher_caught_stealing": 0,
"pitcher_earned_runs": "1.0",
"pitcher_games_played": 1,
"pitcher_games_started": 1,
"pitcher_hit_by_pitch": 0,
"pitcher_hits": 7,
"pitcher_home_runs": 0,
"pitcher_intentional_walks": 0,
"pitcher_runs": 1,
"pitcher_sacrifice_flys": 0,
"pitcher_sacrifice_hits": 0,
"pitcher_stolen_bases": 0,
"pitcher_strikeouts": 2,
"pitcher_walks": 0,
"pitches_thrown": 79,
"quality_starts": 0,
"saves": 0,
"shutouts": 0,
"starting_pitches_thrown": 79,
"strikes_thrown": 52,
"whip": "1.4",
"wild_pitches": 0,
"wins": 0,
"game_id": "ec67ced9-a71e-4144-8a03-1e3fb1d2249c",
"player_id": "9e5a519e-48f9-4f23-bdee-a1558df717bd",
"team_id": "26345a1d-a856-48be-a53b-262367b5437e",
"opponent_id": "e0aa8528-46d5-41a4-95fe-50f0a2e3a761"
},
{
"id": "ec67ced9-a71e-4144-8a03-1e3fb1d2249c3af911e8-2eb4-4ecf-9a7b-1d19b21fb6a4",
"created_at": "2016-03-18T21:06:27-04:00",
"updated_at": "2016-03-19T06:36:33-04:00",
"game_played": true,
"game_started": true,
"home_team_outcome": "win",
"home_team_score": 2,
"away_team_outcome": "loss",
"away_team_score": 0,
"team_outcome": "win",
"team_score": 2,
"catcher_interferences": 0,
"catcher_stealers_allowed": 0,
"catcher_stealers_caught": 0,
"fielding_errors": 0,
"outfield_assists": 0,
"passed_balls": 0,
"at_bats": 3,
"batting_average": "0.6666667",
"caught_stealing": 0,
"doubles": 1,
"grounded_into_double_plays": 0,
"hit_by_pitch": 0,
"hits": 2,
"home_runs": 0,
"intentional_walks": 0,
"intentional_walks_against": 0,
"left_on_base": 0,
"on_base_percentage": "0.6666667",
"on_base_plus_slugging": "1.6666666865348816",
"rlisp_two_out": 0,
"runs": 0,
"runs_batted_in": 0,
"sacrifice_flys": 0,
"sacrifice_hits": 0,
"slugging_percentage": "1.0",
"stolen_bases": 0,
"strikeouts": 0,
"total_bases": 3,
"triples": 0,
"two_out_rbi": 0,
"walks": 0,
"balks": 0,
"batters_faced": 0,
"blown_saves": 0,
"complete_games": 0,
"earned_run_average": "0.0",
"pitcher_fielding_errors": 0,
"fly_ball_outs": 0,
"ground_ball_outs": 0,
"holds": 0,
"inherited_runners": 0,
"inherited_runners_scored": 0,
"losses": 0,
"no_decisions": 0,
"outs_pitched": 0,
"pickoffs": 0,
"pitcher_caught_stealing": 0,
"pitcher_earned_runs": "0.0",
"pitcher_games_played": 0,
"pitcher_games_started": 0,
"pitcher_hit_by_pitch": 0,
"pitcher_hits": 0,
"pitcher_home_runs": 0,
"pitcher_intentional_walks": 0,
"pitcher_runs": 0,
"pitcher_sacrifice_flys": 0,
"pitcher_sacrifice_hits": 0,
"pitcher_stolen_bases": 0,
"pitcher_strikeouts": 0,
"pitcher_walks": 0,
"pitches_thrown": 0,
"quality_starts": 0,
"saves": 0,
"shutouts": 0,
"starting_pitches_thrown": 0,
"strikes_thrown": 0,
"whip": "0.0",
"wild_pitches": 0,
"wins": 0,
"game_id": "ec67ced9-a71e-4144-8a03-1e3fb1d2249c",
"player_id": "3af911e8-2eb4-4ecf-9a7b-1d19b21fb6a4",
"team_id": "e0aa8528-46d5-41a4-95fe-50f0a2e3a761",
"opponent_id": "26345a1d-a856-48be-a53b-262367b5437e"
},
{
"id": "ec67ced9-a71e-4144-8a03-1e3fb1d2249c23b2cfb3-6ab7-4398-aabe-ab9fa737d03e",
"created_at": "2016-03-18T21:06:27-04:00",
"updated_at": "2016-03-19T06:36:33-04:00",
"game_played": true,
"game_started": false,
"home_team_outcome": "win",
"home_team_score": 2,
"away_team_outcome": "loss",
"away_team_score": 0,
"team_outcome": "win",
"team_score": 2,
"catcher_interferences": 0,
"catcher_stealers_allowed": 0,
"catcher_stealers_caught": 0,
"fielding_errors": 0,
"outfield_assists": 0,
"passed_balls": 0,
"at_bats": 0,
"batting_average": "0.0",
"caught_stealing": 0,
"doubles": 0,
"grounded_into_double_plays": 0,
"hit_by_pitch": 0,
"hits": 0,
"home_runs": 0,
"intentional_walks": 0,
"intentional_walks_against": 0,
"left_on_base": 0,
"on_base_percentage": "0.0",
"on_base_plus_slugging": "0.0",
"rlisp_two_out": 0,
"runs": 0,
"runs_batted_in": 0,
"sacrifice_flys": 0,
"sacrifice_hits": 0,
"slugging_percentage": "0.0",
"stolen_bases": 0,
"strikeouts": 0,
"total_bases": 0,
"triples": 0,
"two_out_rbi": 0,
"walks": 0,
"balks": 0,
"batters_faced": 0,
"blown_saves": 0,
"complete_games": 0,
"earned_run_average": "0.0",
"pitcher_fielding_errors": 0,
"fly_ball_outs": 0,
"ground_ball_outs": 0,
"holds": 0,
"inherited_runners": 0,
"inherited_runners_scored": 0,
"losses": 0,
"no_decisions": 0,
"outs_pitched": 0,
"pickoffs": 0,
"pitcher_caught_stealing": 0,
"pitcher_earned_runs": "0.0",
"pitcher_games_played": 0,
"pitcher_games_started": 0,
"pitcher_hit_by_pitch": 0,
"pitcher_hits": 0,
"pitcher_home_runs": 0,
"pitcher_intentional_walks": 0,
"pitcher_runs": 0,
"pitcher_sacrifice_flys": 0,
"pitcher_sacrifice_hits": 0,
"pitcher_stolen_bases": 0,
"pitcher_strikeouts": 0,
"pitcher_walks": 0,
"pitches_thrown": 0,
"quality_starts": 0,
"saves": 0,
"shutouts": 0,
"starting_pitches_thrown": 0,
"strikes_thrown": 0,
"whip": "0.0",
"wild_pitches": 0,
"wins": 0,
"game_id": "ec67ced9-a71e-4144-8a03-1e3fb1d2249c",
"player_id": "23b2cfb3-6ab7-4398-aabe-ab9fa737d03e",
"team_id": "e0aa8528-46d5-41a4-95fe-50f0a2e3a761",
"opponent_id": "26345a1d-a856-48be-a53b-262367b5437e"
},
{
"id": "ec67ced9-a71e-4144-8a03-1e3fb1d2249c42a1fe72-6336-4c16-9e60-3202ecb1a689",
"created_at": "2016-03-18T21:06:27-04:00",
"updated_at": "2016-03-19T06:36:33-04:00",
"game_played": true,
"game_started": true,
"home_team_outcome": "win",
"home_team_score": 2,
"away_team_outcome": "loss",
"away_team_score": 0,
"team_outcome": "loss",
"team_score": 0,
"catcher_interferences": 0,
"catcher_stealers_allowed": 0,
"catcher_stealers_caught": 0,
"fielding_errors": 0,
"outfield_assists": 0,
"passed_balls": 0,
"at_bats": 3,
"batting_average": "0.33333334",
"caught_stealing": 0,
"doubles": 0,
"grounded_into_double_plays": 0,
"hit_by_pitch": 0,
"hits": 1,
"home_runs": 0,
"intentional_walks": 0,
"intentional_walks_against": 0,
"left_on_base": 0,
"on_base_percentage": "0.5",
"on_base_plus_slugging": "0.8333333432674408",
"rlisp_two_out": 0,
"runs": 0,
"runs_batted_in": 0,
"sacrifice_flys": 0,
"sacrifice_hits": 0,
"slugging_percentage": "0.33333334",
"stolen_bases": 0,
"strikeouts": 0,
"total_bases": 1,
"triples": 0,
"two_out_rbi": 0,
"walks": 1,
"balks": 0,
"batters_faced": 0,
"blown_saves": 0,
"complete_games": 0,
"earned_run_average": "0.0",
"pitcher_fielding_errors": 0,
"fly_ball_outs": 0,
"ground_ball_outs": 0,
"holds": 0,
"inherited_runners": 0,
"inherited_runners_scored": 0,
"losses": 0,
"no_decisions": 0,
"outs_pitched": 0,
"pickoffs": 0,
"pitcher_caught_stealing": 0,
"pitcher_earned_runs": "0.0",
"pitcher_games_played": 0,
"pitcher_games_started": 0,
"pitcher_hit_by_pitch": 0,
"pitcher_hits": 0,
"pitcher_home_runs": 0,
"pitcher_intentional_walks": 0,
"pitcher_runs": 0,
"pitcher_sacrifice_flys": 0,
"pitcher_sacrifice_hits": 0,
"pitcher_stolen_bases": 0,
"pitcher_strikeouts": 0,
"pitcher_walks": 0,
"pitches_thrown": 0,
"quality_starts": 0,
"saves": 0,
"shutouts": 0,
"starting_pitches_thrown": 0,
"strikes_thrown": 0,
"whip": "0.0",
"wild_pitches": 0,
"wins": 0,
"game_id": "ec67ced9-a71e-4144-8a03-1e3fb1d2249c",
"player_id": "42a1fe72-6336-4c16-9e60-3202ecb1a689",
"team_id": "26345a1d-a856-48be-a53b-262367b5437e",
"opponent_id": "e0aa8528-46d5-41a4-95fe-50f0a2e3a761"
}
]
}
{
"games": [
{
"id": "e66091de-9ecf-4539-8f16-24a0a3d8c1bc",
"created_at": "2016-03-18T21:06:27-04:00",
"updated_at": "2016-03-19T06:34:00-04:00",
"at_neutral_site": false,
"attendance": 33224,
"away_team_outcome": "loss",
"away_team_score": 4,
"daytime": false,
"duration": 13140,
"ended_at": "2015-10-04T18:49:02-04:00",
"home_team_outcome": "win",
"home_team_score": 9,
"interval": "Regular Season",
"interval_number": "",
"interval_type": "regularseason",
"label": "Yankees vs Orioles",
"name": "Yankees vs Orioles October 4, 2015 at 3:05pm",
"on": "on October 4, 2015",
"score": "4-9",
"score_differential": 5,
"scoreline": "Yankees 4 - Orioles 9",
"slug": "mlb-2015-nyy-bal-2015-10-4-1505",
"started_at": "2015-10-04T15:05:00-04:00",
"status": "ended",
"temperature": 56,
"temperature_unit": "f",
"timestamp": 1443985500,
"title": "Yankees vs Orioles",
"weather_conditions": "cloudy",
"wind_direction": "In from Center",
"wind_speed": 8,
"wind_speed_unit": "mph",
"home_team_id": "4745e78b-83e2-4296-ae11-d1330e665667",
"away_team_id": "a7768b3c-3700-41a8-b97d-4670e044d036",
"winning_team_id": "4745e78b-83e2-4296-ae11-d1330e665667",
"season_id": "e46014e6-f9e9-41c3-9deb-cd11ee879d75",
"venue_id": "606786fd-175d-4976-91b3-612c14a9a155"
},
{
"id": "335251f2-5f37-4fd2-b10e-0d45b8bd4547",
"created_at": "2016-03-18T21:06:26-04:00",
"updated_at": "2016-03-19T06:34:58-04:00",
"at_neutral_site": false,
"attendance": 35198,
"away_team_outcome": "loss",
"away_team_score": 3,
"daytime": false,
"duration": 9060,
"ended_at": "2015-10-03T21:42:48-04:00",
"home_team_outcome": "win",
"home_team_score": 4,
"interval": "Regular Season",
"interval_number": "",
"interval_type": "regularseason",
"label": "Yankees vs Orioles",
"name": "Yankees vs Orioles October 3, 2015 at 7:05pm",
"on": "on October 3, 2015",
"score": "3-4",
"score_differential": 1,
"scoreline": "Yankees 3 - Orioles 4",
"slug": "mlb-2015-nyy-bal-2015-10-3-1905",
"started_at": "2015-10-03T19:05:00-04:00",
"status": "ended",
"temperature": 54,
"temperature_unit": "f",
"timestamp": 1443913500,
"title": "Yankees vs Orioles",
"weather_conditions": "light-rain",
"wind_direction": "Varying",
"wind_speed": 12,
"wind_speed_unit": "mph",
"home_team_id": "4745e78b-83e2-4296-ae11-d1330e665667",
"away_team_id": "a7768b3c-3700-41a8-b97d-4670e044d036",
"winning_team_id": "4745e78b-83e2-4296-ae11-d1330e665667",
"season_id": "e46014e6-f9e9-41c3-9deb-cd11ee879d75",
"venue_id": "606786fd-175d-4976-91b3-612c14a9a155"
},
{
"id": "0d193d00-01f4-4310-9c72-9c4ac080a62e",
"created_at": "2016-03-18T21:06:25-04:00",
"updated_at": "2016-03-19T06:26:57-04:00",
"at_neutral_site": false,
"attendance": 29227,
"away_team_outcome": "loss",
"away_team_score": 2,
"daytime": false,
"duration": 11700,
"ended_at": "2015-10-03T15:28:08-04:00",
"home_team_outcome": "win",
"home_team_score": 9,
"interval": "Regular Season",
"interval_number": "",
"interval_type": "regularseason",
"label": "Yankees vs Orioles",
"name": "Yankees vs Orioles October 3, 2015 at 12:05pm",
"on": "on October 3, 2015",
"score": "2-9",
"score_differential": 7,
"scoreline": "Yankees 2 - Orioles 9",
"slug": "mlb-2015-nyy-bal-2015-10-3-1205",
"started_at": "2015-10-03T12:05:00-04:00",
"status": "ended",
"temperature": 53,
"temperature_unit": "f",
"timestamp": 1443888300,
"title": "Yankees vs Orioles",
"weather_conditions": "cloudy",
"wind_direction": "Left to Right",
"wind_speed": 10,
"wind_speed_unit": "mph",
"home_team_id": "4745e78b-83e2-4296-ae11-d1330e665667",
"away_team_id": "a7768b3c-3700-41a8-b97d-4670e044d036",
"winning_team_id": "4745e78b-83e2-4296-ae11-d1330e665667",
"season_id": "e46014e6-f9e9-41c3-9deb-cd11ee879d75",
"venue_id": "606786fd-175d-4976-91b3-612c14a9a155"
}
],
"home_teams": [
{
"id": "4745e78b-83e2-4296-ae11-d1330e665667",
"created_at": "2016-03-18T20:56:44-04:00",
"updated_at": "2016-03-21T17:54:20-04:00",
"color": "DF4601",
"colors": [
"DF4601",
"000000"
],
"hashtag": "Orioles",
"hashtags": [
"Orioles"
],
"location": "Baltimore",
"name": "Baltimore",
"nickname": "Orioles",
"latitude": 39.2828878,
"longitude": -76.6206139,
"slug": "mlb-bal",
"division_id": "d4f9e9e2-18fb-4e61-8bfd-32d0e8502e09",
"league_id": "cb399a17-e581-4f1a-9535-ea3bcb09fa1f"
}
],
"leagues": [
{
"id": "cb399a17-e581-4f1a-9535-ea3bcb09fa1f",
"created_at": "2016-03-18T20:56:43-04:00",
"updated_at": "2016-03-18T20:56:43-04:00",
"abbreviation": "MLB",
"color": null,
"minutes_per_period": null,
"name": "Major League Baseball",
"periods": null,
"slug": "mlb",
"sport": "baseball"
}
],
"away_teams": [
{
"id": "a7768b3c-3700-41a8-b97d-4670e044d036",
"created_at": "2016-03-18T20:56:44-04:00",
"updated_at": "2016-03-21T17:54:14-04:00",
"color": "E4002B",
"colors": [
"E4002B",
"003087"
],
"hashtag": "Yankees",
"hashtags": [
"Yankees"
],
"location": "New York",
"name": "NY Yankees",
"nickname": "Yankees",
"latitude": 40.8260966,
"longitude": -73.93031,
"slug": "mlb-nyy",
"division_id": "d4f9e9e2-18fb-4e61-8bfd-32d0e8502e09",
"league_id": "cb399a17-e581-4f1a-9535-ea3bcb09fa1f"
}
],
"winning_teams": [
{
"id": "4745e78b-83e2-4296-ae11-d1330e665667",
"created_at": "2016-03-18T20:56:44-04:00",
"updated_at": "2016-03-21T17:54:20-04:00",
"color": "DF4601",
"colors": [
"DF4601",
"000000"
],
"hashtag": "Orioles",
"hashtags": [
"Orioles"
],
"location": "Baltimore",
"name": "Baltimore",
"nickname": "Orioles",
"latitude": 39.2828878,
"longitude": -76.6206139,
"slug": "mlb-bal",
"division_id": "d4f9e9e2-18fb-4e61-8bfd-32d0e8502e09",
"league_id": "cb399a17-e581-4f1a-9535-ea3bcb09fa1f"
}
],
"seasons": [
{
"id": "e46014e6-f9e9-41c3-9deb-cd11ee879d75",
"created_at": "2016-03-18T21:03:28-04:00",
"updated_at": "2016-03-18T21:03:28-04:00",
"name": "2015",
"current_interval_type": "regularseason",
"starts_on": "2015-02-01",
"ends_on": "2015-11-30",
"slug": "mlb-2015",
"league_id": "cb399a17-e581-4f1a-9535-ea3bcb09fa1f"
}
],
"venues": [
{
"id": "606786fd-175d-4976-91b3-612c14a9a155",
"created_at": "2016-03-18T21:04:07-04:00",
"updated_at": "2016-03-21T18:11:19-04:00",
"abbreviation": "OP",
"capacity": 45971,
"city": "Baltimore",
"country": "USA",
"field_type": "Grass",
"name": "Oriole Park at Camden Yards",
"slug": "oriole-park-at-camden-yards",
"state": "Maryland",
"time_zone": "US/Eastern",
"latitude": 39.2828878,
"longitude": -76.6206139
}
],
"opponents": [
{
"id": "4745e78b-83e2-4296-ae11-d1330e665667",
"created_at": "2016-03-18T20:56:44-04:00",
"updated_at": "2016-03-21T17:54:20-04:00",
"color": "DF4601",
"colors": [
"DF4601",
"000000"
],
"hashtag": "Orioles",
"hashtags": [
"Orioles"
],
"location": "Baltimore",
"name": "Baltimore",
"nickname": "Orioles",
"latitude": 39.2828878,
"longitude": -76.6206139,
"slug": "mlb-bal",
"division_id": "d4f9e9e2-18fb-4e61-8bfd-32d0e8502e09",
"league_id": "cb399a17-e581-4f1a-9535-ea3bcb09fa1f"
}
],
"teams": [
{
"id": "a7768b3c-3700-41a8-b97d-4670e044d036",
"created_at": "2016-03-18T20:56:44-04:00",
"updated_at": "2016-03-21T17:54:14-04:00",
"color": "E4002B",
"colors": [
"E4002B",
"003087"
],
"hashtag": "Yankees",
"hashtags": [
"Yankees"
],
"location": "New York",
"name": "NY Yankees",
"nickname": "Yankees",
"latitude": 40.8260966,
"longitude": -73.93031,
"slug": "mlb-nyy",
"division_id": "d4f9e9e2-18fb-4e61-8bfd-32d0e8502e09",
"league_id": "cb399a17-e581-4f1a-9535-ea3bcb09fa1f"
}
],
"team_game_logs": [
{
"id": "e66091de-9ecf-4539-8f16-24a0a3d8c1bca7768b3c-3700-41a8-b97d-4670e044d036",
"created_at": "2016-03-18T21:06:27-04:00",
"updated_at": "2016-03-19T06:34:00-04:00",
"home_team_outcome": "win",
"home_team_score": 9,
"away_team_outcome": "loss",
"away_team_score": 4,
"team_outcome": "loss",
"team_score": 4,
"at_bats": 37,
"balks": 0,
"batting_average": "0.27027026",
"caught_stealing": 0,
"complete_games": 0,
"double_plays": 0,
"doubles": 2,
"earned_run_average": "10.0",
"earned_runs_against": 9,
"errors_made": 0,
"games_lost": 0,
"games_played": 0,
"games_won": 0,
"grounded_into_double_plays": 0,
"hit_batters": 0,
"hit_by_pitch": 0,
"hits": 10,
"home_runs": 0,
"intentional_walks": 1,
"intentional_walks_against": 0,
"left_on_base": 17,
"on_base_percentage": "0.35714287",
"on_base_plus_slugging": "0.7895753085613251",
"outs_pitched": 24,
"passed_balls": 0,
"pickoffs": 0,
"rlisp_two_out": 6,
"runs": 4,
"runs_batted_in": 4,
"runs_inning_1": 0,
"runs_inning_2": 1,
"runs_inning_3": 0,
"runs_inning_4": 0,
"runs_inning_5": 0,
"runs_inning_6": 1,
"runs_inning_7": 2,
"runs_inning_8": 0,
"runs_inning_9": 0,
"runs_inning_10": 0,
"runs_inning_11": 0,
"runs_inning_12": 0,
"runs_inning_13": 0,
"runs_inning_14": 0,
"runs_inning_15": 0,
"runs_inning_16": 0,
"runs_inning_17": 0,
"runs_inning_18": 0,
"runs_inning_19": 0,
"runs_inning_20": 0,
"runs_inning_21": 0,
"runs_inning_22": 0,
"runs_inning_23": 0,
"runs_inning_24": 0,
"runs_inning_extra": 0,
"sacrifice_flys": 0,
"sacrifice_hits": 0,
"saves": 0,
"shutouts": 0,
"slugging_percentage": "0.43243244",
"stolen_bases": 0,
"strikeouts": 7,
"team_left_on_base": 11,
"total_bases": 16,
"triple_plays": 0,
"triples": 2,
"two_out_left_on_base": 6,
"walks": 5,
"whip": "2.25",
"wild_pitches": 0,
"game_id": "e66091de-9ecf-4539-8f16-24a0a3d8c1bc",
"opponent_id": "4745e78b-83e2-4296-ae11-d1330e665667",
"team_id": "a7768b3c-3700-41a8-b97d-4670e044d036"
},
{
"id": "335251f2-5f37-4fd2-b10e-0d45b8bd4547a7768b3c-3700-41a8-b97d-4670e044d036",
"created_at": "2016-03-18T21:06:26-04:00",
"updated_at": "2016-03-19T06:34:58-04:00",
"home_team_outcome": "win",
"home_team_score": 4,
"away_team_outcome": "loss",
"away_team_score": 3,
"team_outcome": "loss",
"team_score": 3,
"at_bats": 30,
"balks": 0,
"batting_average": "0.2",
"caught_stealing": 1,
"complete_games": 0,
"double_plays": 0,
"doubles": 2,
"earned_run_average": "4.0",
"earned_runs_against": 4,
"errors_made": 1,
"games_lost": 0,
"games_played": 0,
"games_won": 0,
"grounded_into_double_plays": 1,
"hit_batters": 1,
"hit_by_pitch": 2,
"hits": 6,
"home_runs": 0,
"intentional_walks": 1,
"intentional_walks_against": 0,
"left_on_base": 15,
"on_base_percentage": "0.30555555",
"on_base_plus_slugging": "0.5722222328186035",
"outs_pitched": 24,
"passed_balls": 0,
"pickoffs": 0,
"rlisp_two_out": 3,
"runs": 3,
"runs_batted_in": 3,
"runs_inning_1": 0,
"runs_inning_2": 1,
"runs_inning_3": 0,
"runs_inning_4": 0,
"runs_inning_5": 2,
"runs_inning_6": 0,
"runs_inning_7": 0,
"runs_inning_8": 0,
"runs_inning_9": 0,
"runs_inning_10": 0,
"runs_inning_11": 0,
"runs_inning_12": 0,
"runs_inning_13": 0,
"runs_inning_14": 0,
"runs_inning_15": 0,
"runs_inning_16": 0,
"runs_inning_17": 0,
"runs_inning_18": 0,
"runs_inning_19": 0,
"runs_inning_20": 0,
"runs_inning_21": 0,
"runs_inning_22": 0,
"runs_inning_23": 0,
"runs_inning_24": 0,
"runs_inning_extra": 0,
"sacrifice_flys": 1,
"sacrifice_hits": 0,
"saves": 0,
"shutouts": 0,
"slugging_percentage": "0.26666668",
"stolen_bases": 1,
"strikeouts": 8,
"team_left_on_base": 6,
"total_bases": 8,
"triple_plays": 0,
"triples": 0,
"two_out_left_on_base": 3,
"walks": 3,
"whip": "1.0",
"wild_pitches": 2,
"game_id": "335251f2-5f37-4fd2-b10e-0d45b8bd4547",
"opponent_id": "4745e78b-83e2-4296-ae11-d1330e665667",
"team_id": "a7768b3c-3700-41a8-b97d-4670e044d036"
},
{
"id": "0d193d00-01f4-4310-9c72-9c4ac080a62ea7768b3c-3700-41a8-b97d-4670e044d036",
"created_at": "2016-03-18T21:06:25-04:00",
"updated_at": "2016-03-19T06:26:57-04:00",
"home_team_outcome": "win",
"home_team_score": 9,
"away_team_outcome": "loss",
"away_team_score": 2,
"team_outcome": "loss",
"team_score": 2,
"at_bats": 33,
"balks": 0,
"batting_average": "0.18181819",
"caught_stealing": 0,
"complete_games": 0,
"double_plays": 1,
"doubles": 0,
"earned_run_average": "10.0",
"earned_runs_against": 9,
"errors_made": 0,
"games_lost": 0,
"games_played": 0,
"games_won": 0,
"grounded_into_double_plays": 0,
"hit_batters": 1,
"hit_by_pitch": 0,
"hits": 6,
"home_runs": 0,
"intentional_walks": 0,
"intentional_walks_against": 0,
"left_on_base": 19,
"on_base_percentage": "0.27027026",
"on_base_plus_slugging": "0.5126945078372955",
"outs_pitched": 24,
"passed_balls": 0,
"pickoffs": 0,
"rlisp_two_out": 5,
"runs": 2,
"runs_batted_in": 2,
"runs_inning_1": 0,
"runs_inning_2": 0,
"runs_inning_3": 0,
"runs_inning_4": 0,
"runs_inning_5": 0,
"runs_inning_6": 0,
"runs_inning_7": 2,
"runs_inning_8": 0,
"runs_inning_9": 0,
"runs_inning_10": 0,
"runs_inning_11": 0,
"runs_inning_12": 0,
"runs_inning_13": 0,
"runs_inning_14": 0,
"runs_inning_15": 0,
"runs_inning_16": 0,
"runs_inning_17": 0,
"runs_inning_18": 0,
"runs_inning_19": 0,
"runs_inning_20": 0,
"runs_inning_21": 0,
"runs_inning_22": 0,
"runs_inning_23": 0,
"runs_inning_24": 0,
"runs_inning_extra": 0,
"sacrifice_flys": 0,
"sacrifice_hits": 0,
"saves": 0,
"shutouts": 0,
"slugging_percentage": "0.24242425",
"stolen_bases": 0,
"strikeouts": 7,
"team_left_on_base": 8,
"total_bases": 8,
"triple_plays": 0,
"triples": 1,
"two_out_left_on_base": 5,
"walks": 4,
"whip": "2.625",
"wild_pitches": 1,
"game_id": "0d193d00-01f4-4310-9c72-9c4ac080a62e",
"opponent_id": "4745e78b-83e2-4296-ae11-d1330e665667",
"team_id": "a7768b3c-3700-41a8-b97d-4670e044d036"
}
]
}
FYI - Just noticed that the JSON example we show (and I pasted in) is slightly out of date.
Decimal JSON values are no longer represented as string, but proper numeric values.
For example:
"slugging_percentage": "0.24242425",
will be
"slugging_percentage": 0.24242425,
This allows R to coerce the value to the proper numeric data type.
Thanks!!
On developers.stattleship.com I see two endpoints: "game_logs" and "team_game_logs". What's the difference between the two for MLB?