ytapi-roffineru4k
Version:
Fetch Url Downloads From YouTube
51 lines (43 loc) • 2.11 kB
Markdown
[](https://git.io/typing-svg)

# What?
This is a module from ytdl-core but with JSON API output.
## Installation
```bash
npm i ytapi-roffineru4k
```
## Example of use
```js
const { ytdown } = require("ytapi-roffineru4k");
const url = 'https://youtu.be/Y8qPp4pBNz8?si=trSJOTHg7-bMh4cB';
ytdown(url).then(data => {
console.log(data);
});
```
## Example output
```js
{
creator: 'RoffiNeru4K',
community: 'https://ungu.in/ChennelRoffiNeru4K',
status: true,
data: {
title: 'BRODYAGA FUNK (SPED UP) RYOIKI TENKAI (RAIDEN SHOGUN) #phonk',
video: 'https://rr4---sn-4g5ednsz.googlevideo.com/videoplayback?expire=1721549119&ei=32yc...',
video_hd: 'https://rr4---sn-4g5ednsz.googlevideo.com/videoplayback?expire=1721549119&ei=32yc...',
audio: 'https://rr4---sn-4g5ednsz.googlevideo.com/videoplayback?expire=1721549119&ei=32yc...',
quality: '360p',
thumbnail: 'https://i.ytimg.com/vi/5Ue8HyyrUNg/default.jpg',
channel: 'yuki',
desc: '#phonk #phonkmusic #phonkradio #phonkbeat #trillphonk #phonkdrift'
}
}
```
## Main Functions
- Get thumbnail
- Get title
- Get description
- Get video
- Get audio
## Contribution
- RoffiNeru4K
- Nayan