Hi,
The GET Events by Sport request does not seem to return all of the games that occur on a sport on a given day. For example, there are 16 MLB games today (May 25), but the request
"https://therundown-therundown-v1.p.rapidapi.com/sports/3/events?include=all_periods%2C+scores%2C+and%2For+teams"
returns only 13 games on that date.
Is there a way to ensure that all games are returned?
Join in the discussion - add comment below:
Hi sbaner,
Yes, this is because that endpoint only returns games that have not yet begun for that sport. In order to get all games for a particular date, you will need to use the /sports/{sport-id}/events/{date} endpoint. Note that this defaults to using UTC, but an offset query parameter can be specified in the request to offset for a particular number of minutes as described in the API documentation.