I am able to get the title of a youtube video without using and api key using the jQuery code below, how can I use ES6 fetch
to do the same?
const vidurl = 'https://www.youtube.com/watch?v=dQw4w9WgXcQ';
$.getJSON('https://noembed.com/embed',
{dataType: 'json', url: vidurl}, data => {
console.log("JQUERY", data.title);
});