"XXXXXXXXXXXXXXXXXXXXXXXXX", "Accept" => "application/json" ) ); Response body 200 / JSON { "api": { "results": 28, "coachs": [ "Jose Mourinho" ], "players": [ { "number": "", "player": "David De Gea" }, { "number": "", "player": "Victor Nilsson-Lindelof" }, { "number": "", "player": "Chris Smalling" }, { "number": "", "player": "Ashley Young" }, { "number": "", "player": "Matteo Darmian" }, { "number": "", "player": "Paul Pogba" }, { "number": "", "player": "Juan Mata" }, { "number": "", "player": "Anthony Martial" }, { "number": "", "player": "Jesse Lingard" }, { "number": "", "player": "Nemanja Matic" }, { "number": "", "player": "Romelu Lukaku" }, { "number": "", "player": "Phil Jones" }, { "number": "", "player": "Alexis Sanchez" }, { "number": "", "player": "Marcus Rashford" }, { "number": "", "player": "Lee Grant" }, { "number": "", "player": "Fred" }, { "number": "", "player": "Antonio Valencia" }, { "number": "", "player": "Marouane Fellaini" }, { "number": "", "player": "Luke Shaw" }, { "number": "", "player": "Eric Bailly" }, { "number": "", "player": "Andreas Pereira" }, { "number": "", "player": "Sergio Romero" }, { "number": "", "player": "Scott McTominay" }, { "number": "39", "player": "Scott Mctominay" }, { "number": "21", "player": "Ander Herrera" }, { "number": "5", "player": "Faustino Marcos Alberto Rojo" }, { "number": "20", "player": "Diogo Dalot" } ] } } " /> "XXXXXXXXXXXXXXXXXXXXXXXXX", "Accept" => "application/json" ) ); Response body 200 / JSON { "api": { "results": 28, "coachs": [ "Jose Mourinho" ], "players": [ { "number": "", "player": "David De Gea" }, { "number": "", "player": "Victor Nilsson-Lindelof" }, { "number": "", "player": "Chris Smalling" }, { "number": "", "player": "Ashley Young" }, { "number": "", "player": "Matteo Darmian" }, { "number": "", "player": "Paul Pogba" }, { "number": "", "player": "Juan Mata" }, { "number": "", "player": "Anthony Martial" }, { "number": "", "player": "Jesse Lingard" }, { "number": "", "player": "Nemanja Matic" }, { "number": "", "player": "Romelu Lukaku" }, { "number": "", "player": "Phil Jones" }, { "number": "", "player": "Alexis Sanchez" }, { "number": "", "player": "Marcus Rashford" }, { "number": "", "player": "Lee Grant" }, { "number": "", "player": "Fred" }, { "number": "", "player": "Antonio Valencia" }, { "number": "", "player": "Marouane Fellaini" }, { "number": "", "player": "Luke Shaw" }, { "number": "", "player": "Eric Bailly" }, { "number": "", "player": "Andreas Pereira" }, { "number": "", "player": "Sergio Romero" }, { "number": "", "player": "Scott McTominay" }, { "number": "39", "player": "Scott Mctominay" }, { "number": "21", "player": "Ander Herrera" }, { "number": "5", "player": "Faustino Marcos Alberto Rojo" }, { "number": "20", "player": "Diogo Dalot" } ] } } " />

blog image COACHS & PLAYERS

COACHS & PLAYERS

ENDPOINTS

  • December 4, 2018
  • API SPORTS

Good news !

We have just added the endpoint "Players" which allows you to recover the coachs and the players of a team according to the season and the id of the team.

Php Request example
$response = Unirest\Request::get("https://api-football-v1.p.rapidapi.com/players/2018/33",
   array(
      "X-RapidAPI-Key" => "XXXXXXXXXXXXXXXXXXXXXXXXX",
      "Accept" => "application/json"
   )
);

Response body 200 / JSON
{
  "api": {
    "results": 28,
    "coachs": [
      "Jose Mourinho"
    ],
    "players": [
      {
        "number": "",
        "player": "David De Gea"
      },
      {
        "number": "",
        "player": "Victor Nilsson-Lindelof"
      },
      {
        "number": "",
        "player": "Chris Smalling"
      },
      {
        "number": "",
        "player": "Ashley Young"
      },
      {
        "number": "",
        "player": "Matteo Darmian"
      },
      {
        "number": "",
        "player": "Paul Pogba"
      },
      {
        "number": "",
        "player": "Juan Mata"
      },
      {
        "number": "",
        "player": "Anthony Martial"
      },
      {
        "number": "",
        "player": "Jesse Lingard"
      },
      {
        "number": "",
        "player": "Nemanja Matic"
      },
      {
        "number": "",
        "player": "Romelu Lukaku"
      },
      {
        "number": "",
        "player": "Phil Jones"
      },
      {
        "number": "",
        "player": "Alexis Sanchez"
      },
      {
        "number": "",
        "player": "Marcus Rashford"
      },
      {
        "number": "",
        "player": "Lee Grant"
      },
      {
        "number": "",
        "player": "Fred"
      },
      {
        "number": "",
        "player": "Antonio Valencia"
      },
      {
        "number": "",
        "player": "Marouane Fellaini"
      },
      {
        "number": "",
        "player": "Luke Shaw"
      },
      {
        "number": "",
        "player": "Eric Bailly"
      },
      {
        "number": "",
        "player": "Andreas Pereira"
      },
      {
        "number": "",
        "player": "Sergio Romero"
      },
      {
        "number": "",
        "player": "Scott McTominay"
      },
      {
        "number": "39",
        "player": "Scott Mctominay"
      },
      {
        "number": "21",
        "player": "Ander Herrera"
      },
      {
        "number": "5",
        "player": "Faustino Marcos Alberto Rojo"
      },
      {
        "number": "20",
        "player": "Diogo Dalot"
      }
    ]
  }
}