A new endpoint is available in the API : players/squads.
Depending on the parameters it returns either the current players of a team when the team
parameter is used or the teams associated to a player
when the player parameter is used.
Documentation : https://www.api-football.com/documentation-v3#operation/get-players-squads