API-FOOTBALL

부분 유료
Verified
분류별 API-SPORTS | 업데이트됨 2달 전 | Sports
인기

9.9 / 10

지연 시간

400ms

서비스 수준

100%

모든 토론으로 돌아가기

Fixture with league identifier

X
Xat
2달 전

H guys,

Trying to get fixtures for “Brazil - Serie A” with this URL :

https://api-football-v1.p.rapidapi.com/v3/fixtures?league=71

But I get 0 fixtures while it should return something.

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

X
Xat commented 2달 전

Ouh yeah, thanks a lot for this tip 😃

avatar
api-sports commented 2달 전

It’s indicated in the API response :

{
get: "fixtures"
parameters: {
league: “71”
}
errors: {
season: “The Season field is required.”
}
results: 0
paging: {
current: 1
total: 1
}
response: [
]
}

And you have also all examples in the API documentation in the right section.

Best

X
Xat commented 2달 전

Ok but there is no indication what are mandatories parameters when using league.

For the future, can I know what is the problem when doing a bad request, such as missing parameters ?

avatar
api-sports commented 2달 전

Hi,

you need to add the “season” parameter : fixtures?league=71&season=2022.

https://www.api-football.com/documentation-v3#tag/Fixtures/operation/get-fixtures

Best

아래에 의견을 추가하고 토론에 참여하세요.

새 댓글을 게시하려면 로그인 / 가입
등급: 4.1 - 투표: 15