API-FOOTBALL

פרמיום
Verified
על ידי API-SPORTS | מְעוּדכָּן 5 days ago | Sports
פּוֹפּוּלָרִיוּת

10 / 10

חֶבִיוֹן

386ms

רמת שירות

100%

Health Check

N/A

חזרה לכל הדיונים

Fixture status

Rapid account: Xat
Xat
2 years ago

H guys,

I want to get all fixtures of the day that are planned or still in progress.

That’s how I do it :

fixtures = json.loads(requests.request(“GET”, "https://api-football-v1.p.rapidapi.com/v3/fixtures?date=2022-06-26&status=NS-1H-HT-2H-ET-LIVE, headers).text)

But I note in the response I get fixtures that are already terminated.
For instance, the fixture with id 845509 is in the response, while the fixture has been terminated hours ago.

Did I miss something there ?
Thanks a lot.
Regards.

Rapid account: Xat
Xat Commented 2 years ago

Alright, thanks.

I will add some checks regarding the starting date of the match to control it.

Rapid account: Api Sports
api-sports Commented 2 years ago

Hi,

Not all competitions have the livescore available and only have the final result which is updated within 24 hours after the match. That’s why you still have “NS” status

Best

הצטרף לדיון - הוסף תגובה למטה:

התחבר / הירשם כדי לפרסם תגובות חדשות