var axios = require("axios").default; var options = { method: 'POST', url: 'https://sameer-kumar-aztro-v1.p.rapidapi.com/', params: {sign: 'cancer', day: 'today'}, headers: { 'x-rapidapi-host': 'sameer-kumar-aztro-v1.p.rapidapi.com', 'x-rapidapi-key': '3150966ec2msh1fc99336a065e5ep1de81ejsnec3040699bc9' } }; axios.request(options).then(function (response) { console.log(response.data); }).catch(function (error) { console.error(error); });