TheRundown

GRATIS CON POSSIBILITÀ DI UPGRADE
Da TheRundown | Aggiornamento 4일 전 | Sports
Popolarità

9.7 / 10

Latenza

252ms

Livello di servizio

100%

Health Check

100%

Torna a tutte le discussioni

GET Events by sport

Rapid account: Sbaner
sbaner
5년 전

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년 전

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.

Partecipa alla discussione - aggiungi un commento di seguito:

Accedi/Iscriviti per pubblicare nuovi commenti