# usetube

> crawl youtube without api key (search videos channels or get all channel/playlist's videos)

Latest version **2.2.7** (published 2023-04-03) · AGPL-3.0-or-later license · 0 weekly downloads

## Install

```sh
npm install usetube
pnpm add usetube
yarn add usetube
bun add usetube
```

## Health

**Score 23/100 (F)** — status: abandoned.

Positive: has types package; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.2.7 |
| Published | 2023-04-03 |
| First published | 2020-09-21 |
| Weekly downloads | 0 |
| License | AGPL-3.0-or-later |
| TypeScript types | separate (@types/usetube) |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 129.3 KB |
| Known vulnerabilities | 0 (+23 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 51 |
| Author | valerebron |
| Maintainers | valerebron |
| Keywords | youtube, crawler, scraper, api, no, key, simple, javascript, youtube api, youtube search, youtube api no key, youtube crawler, youtube scrapper, youtube open api, youtube open source, youtube simple, youtube playlist, yt |

## Links

- npm: https://www.npmjs.com/package/usetube
- Repository: https://github.com/valerebron/usetube
- Homepage: https://github.com/valerebron/usetube#readme
- Issues: https://github.com/valerebron/usetube/issues
- npm.io page: https://npm.io/package/usetube

## Dependencies (3)

- [axios](https://npm.io/package/axios.md) ^0.21.1
- [dayjs](https://npm.io/package/dayjs.md) ^1.11.7
- [youtubei](https://npm.io/package/youtubei.md) ^1.1.2

## Alternatives

- [@tsparticles/shape-image](https://npm.io/package/@tsparticles/shape-image.md) — 303.7K weekly downloads
- [@tsparticles/shape-line](https://npm.io/package/@tsparticles/shape-line.md) — 233.7K weekly downloads
- [stringify-attributes](https://npm.io/package/stringify-attributes.md) — 58.6K weekly downloads
- [mobile-drag-drop](https://npm.io/package/mobile-drag-drop.md) — 46.3K weekly downloads
- [@comunica/actor-rdf-parse-html](https://npm.io/package/@comunica/actor-rdf-parse-html.md) — 29.2K weekly downloads

## Recent versions

- 2.2.7 (latest) — 2023-04-03
- 2.2.6 — 2023-04-03
- 2.2.5 — 2023-04-03
- 2.2.4 — 2023-04-02
- 2.2.3 — 2023-04-01
- 2.2.2 — 2022-11-11
- 2.2.1 — 2022-11-11
- 2.2.0 — 2022-11-08
- 2.1.5 — 2022-11-07
- 2.1.4 — 2021-09-23
- 2.1.3 — 2021-08-08
- 2.1.2 — 2021-08-08
- 2.1.1 — 2021-07-21
- 2.1.0 — 2021-04-25
- 2.0.5 — 2021-04-05
- … 22 more at https://npm.io/package/usetube/versions

## README

<h1 align="center">
  <picture>
    <img align="center" alt="Usetube" src="./logo.svg" height="50">
  </picture>
</h1>

[![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

<br>

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
}
```

---
_Source: https://npm.io/package/usetube · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
