Type
Improvement
Status
Open
Reported By
Josh Renaud
Component
API
Votes
Created
1/Jan/15 2:09 PM EST
Tracking
Sign in to track this issue
Description
Here's an idea. It would be useful if there were some way to know what the requested date's season_status is. For example, if I requested <a href="/events.json?date=20140101&sport=mlb">/events.json?date=20140101&sport=mlb</a>, I basically just get back empty JSON: {"events_date":"2014-01-01T00:00:00-05:00","event":[]} From this data, I can't tell whether this date falls within a regular (or post) season and it's just an off day -- or if the date is during the offseason. Perhaps it could return something like: {"events_date":"2014-01-01T00:00:00-05:00","event":[], "season_type": "OFF"} or {"events_date":"2014-01-01T00:00:00-05:00","event":[], "season_type": null }
Comments
1. Erik Berg 1/Jan/2015 at 4:59 PM EST
That is a good addition, season_type should be in the response.
2. Erik Berg 5/Jan/2015 at 6:51 AM EST
I looked into this, but there are a couple of problems incorporating it into the existing Events method. One, since the API method is not sport specific, the "season_type" could have different values for MLB and NBA (and NFL and other future sports). Second, MLB has scheduled regular season games simultaneously with preseason games in the past. Am planning to add new methods to return data similar to what is displayed at /nba/scores and /mlb/scores. It may be easier to add a "season_type" field to these methods, although would still have to think about a way to solve MLB's mixing of regular and preseason games...