let auth = ``; //auth key let url = ``; //api url const axios = require(`axios`); axios({ method: 'get', url: url, headers: { "Authorization": auth }, }).then(function (res) { console.log(res.data) });