Simple unofficial y2mate API
const y2matez = new Y2Matez();
// get video info by query
y2matez.useQuery("taylor swift blank space").getInfo("mp4", "720p")
    .then(console.log)
    .catch(console.error);
// get audio info by url
y2matez.useUrl("https://youtube.com/watch?v=xxxxxcvvvvv").getInfo("mp3", "128kbps")
    .then(console.log)
    .catch(console.error);