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.
Присоединяйтесь к обсуждению – добавьте комментарий ниже:
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?
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.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.