SportScore

FREEMIUM
Verified
От Tipsters CO | Обновлено 9 days ago | Sports
Популярность

9.9 / 10

Задержка

122ms

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

100%

Health Check

100%

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

Tennis Stats is an unstable API

Rapid account: Danikgan
danikgan
2 years ago

I’m running the following command:

def test():
    live_data = request_live_data()
    for match in live_data["data"]:
        print(request_event_stats(match["id"]))
        print("\n\n")
test()

where request_live_data() is for this API: "https://sportscore1.p.rapidapi.com/sports/2/events/live"
and request_event_stats(event_id) if for this API: "https://sportscore1.p.rapidapi.com/events/" + str(event_id) + "/statistics"

However, very often and sometimes more often than not I am getting a response of:

{'data': [], 'meta': None}

I am wondering whether this is something expected or you’re able to fix this. It is the only complaint I have about the service, but it is crucial for me as at times I’m not getting live data on time.

https://ibb.co/LpFwwXv

Rapid account: Tipsters
tipsters Commented 2 years ago

On other sites? or on this site? https://tipsscore.com/en/tennis
Can you confirm that it is on this site for the match, but it is not in the api response?

Rapid account: Danikgan
danikgan Commented 2 years ago

Hello, I can confirm that these matches have stats on other websites. I can also confirm that at times the same match may fetch stats correctly, and sometimes it does not fetch the same match. I would recommend running the simple function above and test for yourself as it is easy to replicate. Usually, when you fetch the first time, you get almost all matches and their stats. But if you re-run the function a few times, the same matches will fetch null more and more often.

Rapid account: Tipsters
tipsters Commented 2 years ago

Hi. Can you confirm that these matches have statistics?
Perhaps you get this because the match has no statistics, i.e. this is an unpopular game.

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

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