TheRundown

FREEMIUM
От TheRundown | Обновлено vor 4 Tagen | Sports
Популярность

9.7 / 10

Задержка

252ms

Уровень обслуживания

100%

Health Check

100%

Назад ко всем обсуждениям

GET Events by sport

Rapid account: Sbaner
sbaner
vor 5 Jahren

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 vor 5 Jahren

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.

Присоединяйтесь к обсуждению – добавьте комментарий ниже:

Войдите / Зарегистрируйтесь, чтобы публиковать новые комментарии