Type
Improvement
Status
Closed
Reported By
kat padilla
Component
API
Resolution
Fixed
Votes
1
Created
1/Nov/13 9:20 AM EDT
Closed
8/Nov/2013 4:12 AM EST
Description
I know there is a date parameter but I can't find a date range param. Is there an existing one? Thanks.
Closing Comment
Added :since and :until parameters. Take note that :since returns events occurring on or after date specified while :until returns events that happened before date specified. For example, to return all events in November, use: since=20131101&until=20131201 Both parameters are optional. Use one, both, or none.
Comments
1. Erik Berg 1/Nov/2013 at 11:07 AM EDT
Unfortunately, there is no existing date range param. Are you looking for date ranges so you can span seasons or limit counters like events_won, events_lost to the specified date range or something else?
2. kat padilla 2/Nov/2013 at 6:06 AM EDT
Hello! Thanks for answering. I am just looking for a way to limit the range. Say, I'm going to get the next 10 games in the schedule for a team. I am doing that in my codes so far. I was just wondering if there is an existing date range param so I could fetch small amount of data only. :)
3. Erik Berg 4/Nov/2013 at 9:21 AM EST
Will add :since and :until operators in next update. These parameters can filter dates for the season specified, but will not include results that are before or after the season start and finish dates. Both parameters are optional, use one, both, or neither. For example, season: 2014, since: 2014-02-01 returns all events that take place on or after Feb 1, 2014. season: 2014, since: 2014-02-01, until: 2014-02-28 returns all events that take place between Feb 1, 2014 and February 28, 2014. season: 2013, until: 2012-11-15 returns events from the beginning of the 2012-2013 season until November 15, 2012. season: 2014, since: 2012-12-01, until: 2013-01-01 would return nothing since December 1, 2012 and January 1, 2013 are outside the start and finish dates of the 2013-2014 season.
4. kat padilla 5/Nov/2013 at 5:44 AM EST
Alright. I'll be waiting for that! :) Thank you again!