Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

https://github.com/valerebron/usetube

search & get datas from youtube no google account needed
https://github.com/valerebron/usetube

crawler typescript video youtube youtube-api

Last synced: 3 months ago
JSON representation

search & get datas from youtube no google account needed

Lists

README

        



Usetube

[![Version](https://img.shields.io/npm/v/usetube.svg)](https://www.npmjs.com/package/usetube)
[![Downloads](https://img.shields.io/npm/dt/usetube.svg)](https://www.npmjs.com/package/usetube)

### Youtube Crawler

### search & get datas from youtube

### no google account needed


This package is initially dev for the site https://massivemusic.fr/add-tracks/,
It's here for sharing & contribute.

# usage

```js
const usetube = require('usetube')
await usetube.searchVideo('Lorn')
```

# methods
```js
searchVideo(terms)
searchChannel(terms)
getChannelVideos(channel_id)
getPlaylistVideos(playlist_id)
getChannelDesc(channel_id)
getVideoDesc(video_id)
getVideoDate(video_id)
getVideosFromDesc(video_id)
getVideoSubtitles(video_id)
```

# returned datas
```js
video {
id
original_title
title
artist
duration
publishedAt
}
```
```js
channel {
name
channel_id
nb_videos
nb_subscriber
official
channel_avatar_small
channel_avatar_medium
channel_avatar_large
}
```