API-NBA

FREEMIUM
Verified
Por API-SPORTS | Actualizada hace 5 meses | Sports
Popularidad

9.9 / 10

Latencia

326ms

Nivel de servicio

100%

Volver a todas las conversaciones

Not allowing me to get players for all NBA teams in one API call

avatar
ejones0606
hace 3 meses

In your “Endpoints” examples for players, you say that the “team” parameter is optional. However, when I try querystring = {“season”: “2021”}, I get an error saying “The Team Field is Required”.

Please let me know if there is a way to fix this or get around this error, because I am trying to get all the players on all NBA teams, and it takes way too much time to get the data when I have to do 30 API calls (one for each NBA team).

avatar
api-sports commented hace 3 meses

Hi,

It’s impossible to get all players in one call, Indeed the parameter “team” is optional because it is possible to mix the parameters between them, you have some examples in the documentation: https://api-sports.io/documentation/nba/v2#tag/Players

Best

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

Inicie sesió/Regístrese para publicar nuevos comentarios
Valoración: 2.5 - Votos: 4