var axios = require("axios").default; var options = { method: 'GET', url: 'https://u-s-a-sales-taxes-per-zip-code.p.rapidapi.com/33166', headers: {'x-rapidapi-host': 'u-s-a-sales-taxes-per-zip-code.p.rapidapi.com'} }; axios.request(options).then(function (response) { console.log(response.data); }).catch(function (error) { console.error(error); });