# ytfps

> scraps youtube playlist metadata and all its videos (not limited to 100), does not require API key

Latest version **1.2.0** (published 2024-05-21) · MIT license · 0 weekly downloads

## Install

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

## Health

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

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

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.2.0 |
| Published | 2024-05-21 |
| First published | 2020-08-05 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 43.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 17 |
| Author | caier |
| Maintainers | caier |
| Keywords | youtube, playlist, youtube playlist, scraper, yt |

## Links

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

## Dependencies (1)

- [axios](https://npm.io/package/axios.md) ^1.7.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

- 1.2.0 (latest) — 2024-05-21
- 1.1.0 — 2022-10-12
- 1.0.6 — 2022-03-29
- 1.0.5 — 2021-04-04
- 1.0.4 — 2021-01-08
- 1.0.3 — 2021-01-03
- 1.0.2 — 2020-11-15
- 1.0.1 — 2020-10-09
- 1.0.0 — 2020-08-05

## README

# ytfps
##### **YouTube Full Playlist Scraper**

Tiny module to scrap youtube playlist or album metadata and their videos (not limited to 100)

# Install

    npm install ytfps

# Usage

```js
const ytfps = require('ytfps');
// TypeScript: import ytfps from 'ytfps'; //with --esModuleInterop

ytfps('PLAbeRqyTx1rIGWY13HgPyh0VF0LdoTQFp').then(playlist => {
    do_something(playlist);
}).catch(err => {
    handle_error(err);
});

//you can also pass an YTFPSOptions object to limit the amount of videos you want to scrap:
let playlist = await ytfps(playlistId, { limit: 13 });
```

# API
    ytfps(id, opts?);

Scraps the supplied playlist and returns a promise with its metadata.

* `id`
    * youtube playlist's id
    * or youtube playlist's URL
* `opts`
    * an optional YTFPSOptions object:
        ```ts
        interface YTFPSOptions {
            limit?: number
        }
        ```

* [Example response](https://github.com/Caier/ytfps/blob/master/example/output.json)


# License
MIT

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