soccer.js 437 Bytes
var request = require('request');

var options = {
    method: 'GET',
    url: 'https://v3.football.api-sports.io/players',  
    qs: {id: '276', season: '2019'},
    headers: {
        'x-rapidapi-host': 'v3.football.api-sports.io',
        'x-rapidapi-key': 'e8a0e218c8msh6742d80e6af318ep11271fjsn9b0927b5f4de'
  }
};

request(options, function (error, response) {
  if (error) throw new Error(error);
  console.log(response.body);
});