What is the team connection parameter(squad.index)?
While requesting endpoint squad.index you can get a list of team members for selected team and season, you can find important “team_connection” parameter.
Example of the query:
In the list of team members for selected team and season, sometimes you can find more players than it is available in the official source. We can have a larger number of players than the official sites, because we also take into account players called up for individual matches from other teams (for example youth team). There can be also players who changed clubs and these players have changed “team_connection” status.
Team_connection shows the status of the player in the seasonal squad
There can be few different statuses associated with the “team_connection” parameter."team_connection": "current"
”Current” status indicates, that player is part of the team for the season, and he can play in the games for the team. This status confirms the participant presence in the team's actual squad.
"team_connection": "transfer_outer"
”Transfer outer” status tells us that the player was a part of the team at the time of squad update, but changed the club and will no longer play in the team. He should not be taken into account if you are willing to show the actual squad. It means that the player has transferred to another team that is playing in different season_id (different league). You can think of it as a player transferred out of the league.
"team_connection": "transfer_inner"
”Transfer inner” status point out that the player is transferred to the team which is taking part in the same competition in this season. Nevertheless, if you only want to display current players in your system, you should not count this player as part of the team.
With this in mind it is important to check the “team_connection” paramter, and use the players with “current” status if you want to see actua anl squad for selected team.