why im request with postman,and i get result only /json???
router.get(’/’, async (req,res) => {
try {
const link = 'https://ytapi.p.mashape.com/json?id=kELQmfcnKqQ’
const data = await axios.get(link,{
headers : {
‘X-Mashape-Key’: ‘vJBHPWNJ4GmshgKmdSZMiSeVv47Sp1pxSuyjsnGhDOS2ui6F6e’,
‘Accept’ : ‘application/json’
}
})
res.json(data)
} catch (error) {
res.json(error)
}
});
아래에 의견을 추가하고 토론에 참여하세요.
Hi , use this api https://rapidapi.com/OthmaneDch/api/youtube-video-to-mp3/