Skip to content

qba210/cda-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cda-api

api for cda

example of use

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)

Releases

No releases published

Packages

No packages published