API-FOOTBALL

부분 유료
Verified
분류별 API-SPORTS | 업데이트됨 13 дней назад | Sports
인기

10 / 10

지연 시간

369ms

서비스 수준

100%

Health Check

N/A

모든 토론으로 돌아가기

leagueTable endpoint returns nested array

Rapid account: Choxxy
Choxxy
5 лет назад

calling this endpoint https://api-football-v1.p.rapidapi.com/v2/leagueTable/88, return json in the format below, why is the array nested?

{
“api”: {
“results”: 1,
“standings”: [
[
{
“rank”: 1,
“team_id”: 727,
“teamName”: “Osasuna”,
“logo”: “https://www.api-football.com/public/teams/727.png”,
“group”: “Segunda División: Regular Season”,
“forme”: “WWDWD”,
“description”: “Promotion”,
“all”: {
“matchsPlayed”: 41,
“win”: 25,
“draw”: 9,
“lose”: 7,
“goalsFor”: 58,
“goalsAgainst”: 35
},
“home”: {
“matchsPlayed”: 20,
“win”: 18,
“draw”: 2,
“lose”: 0,
“goalsFor”: 33,
“goalsAgainst”: 7
},
“away”: {
“matchsPlayed”: 21,
“win”: 7,
“draw”: 7,
“lose”: 7,
“goalsFor”: 25,
“goalsAgainst”: 28
},
“goalsDiff”: 23,
“points”: 84,
“lastUpdate”: “2019-06-04”
},
. . .
]
]
}
}

Rapid account: Choxxy
Choxxy Commented 5 лет назад

Ok, thanks hadn’t noticed that

Rapid account: Api Sports
api-sports Commented 5 лет назад

hi,
This is explained in our documentation, (https://www.api-football.com/documentation#standings), Some competitions have several rankings in a year, group phase, opening ranking, closing ranking etc…

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

새 댓글을 게시하려면 로그인 / 가입