Live Squad Queries
The live_squad
section of the LIVE Data API lists the players currently playing for each team, even those not in a current match lineup. Its output is similar to the line_linup
query.
Search for players in a team's squad
Find the details of all players playing for a particular team.
query TeamPlayers {
live_squad(
where: { team_id: { _eq: 29 } })
{
team_name
player_id
player_name
player_nationality
player_nickname
player_preferred_foot
player_weight
player_date_of_birth
player_firstname
player_lastname
}
}
{
"data": {
"live_squad": [
{
"team_name": "Everton",
"player_id": 20,
"player_name": "Alex Iwobi",
"player_nationality": 12,
"player_nickname": "A. Iwobi",
"player_preferred_foot": "Right",
"player_weight": 75,
"player_date_of_birth": "1996-05-03",
"player_firstname": "Alexander Chuka",
"player_lastname": "Iwobi"
},
{
"team_name": "Everton",
"player_id": 40,
"player_name": "Demarai Gray",
"player_nationality": 2,
"player_nickname": "D. Gray",
"player_preferred_foot": "Both",
"player_weight": 74,
"player_date_of_birth": "1996-06-28",
"player_firstname": "Demarai",
"player_lastname": "Gray"
},
⋮
Search for all squads in a competition
Find the details of all players playing in a particular competition.
query CompetitionSquads {
live_squad(
where: { license_competition_id: { _eq: 2 } })
{
team_id
team_name
player_id
player_name
player_nationality
player_date_of_birth
player_firstname
player_lastname
license_season_id
license_competition_id
}
}
{
"data": {
"live_squad": [
{
"team_id": 61,
"team_name": "Aston Villa",
"player_id": 1,
"player_name": "Calum Chambers",
"player_nationality": 2,
"player_date_of_birth": "1995-01-20",
"player_firstname": "Calum",
"player_lastname": "Chambers",
"license_season_id": 235,
"license_competition_id": 2
},
{
"team_id": 21,
"team_name": "Arsenal",
"player_id": 9,
"player_name": "Rob Holding",
"player_nationality": 2,
"player_date_of_birth": "1995-09-20",
"player_firstname": "Rob",
"player_lastname": "Holding",
"license_season_id": 235,
"license_competition_id": 2
},
⋮