const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
videoIds: ['<string>'],
playlistId: '<string>',
channelId: '<string>',
limit: 123
})
};
fetch('https://api.urltodata.ai/v1/youtube/video/batch', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));