API-FOOTBALL

FREEMIUM
Verified
Por API-SPORTS | Actualizada il y a 13 jours | Sports
Popularidad

10 / 10

Latencia

367ms

Nivel de servicio

100%

Health Check

N/A

Volver a todas las conversaciones

leagueTable endpoint returns nested array

Rapid account: Choxxy
Choxxy
il y a 5 ans

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 il y a 5 ans

Ok, thanks hadn’t noticed that

Rapid account: Api Sports
api-sports Commented il y a 5 ans

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…

Únase a la conversación, añada un comentario a continuación:

Inicie sesió/Regístrese para publicar nuevos comentarios