Provide Game Score for completed Events

Issue No. 158

Type

Improvement

Status

Closed

Reported By

Tarik Ourchane

Component

API

Resolution

Fixed

Votes

2

Created

19/Dec/13 9:55 PM EST

Closed

20/Mar/2015 2:33 AM EDT

Description

If an event is completed provide the final score for the game in the Event object. You can do this similar to how the period_scores are provided in the NBA Box Score object. The final_score could be an array of integers. For completed events you can provide the actual score, for events that are scheduled, postponed, etc, you can just provide -1 as a placeholder for the final_score. This would be beneficial for any one attempting to display a schedule for events. Providing the score might save an API call to get the box score if all the user wants is the final score for the event.

Closing Comment

Each Event object (https://erikberg.com/api/objects/event) now includes away_period_scores and home_period_scores.

Comments

1. Josh Renaud 26/Sep/2014 at 11:55 AM EDT

I want to echo this. I'd like to see each completed Event include the home_period_scores and the away_period_scores arrays. I could calculate the final score from those arrays. In this way, I could just make 1 API request to build a simple MLB results page, rather than ~16 requests, which requires 2.5 minutes with rate limits.