TheRundown

FREEMIUM
By TheRundown | Updated 15 days ago | Sports
Popularity

9.7 / 10

Latency

243ms

Service Level

100%

Health Check

N/A

Back to All Discussions

GET Events by sport

Rapid account: Sbaner
sbaner
5 anni fa

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?

Rapid account: Therundown
therundown Commented 5 anni fa

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.

Join in the discussion - add comment below:

Login / Signup to post new comments