api for cda
const { CdaSearchApi, CdaVideoApi } = require("cda-api");
let search = await CdaSearchApi.search("<search query>"); // search query
let videoApi = await CdaVideoApi.fromURL(search[0].link); // you can also use method fromID to get video api from id
let qualities = videoApi.getQualities(); // get qualities
let videoURL = await videoApi.getDirectVideoLink(Array.from(qualities.values()).reverse()[0]); // get video link (highest quality)
let videoData = await videoApi.getVideoData(); // gets most info about video (including comments)