# youtube-chapters-finder

> A tiny npm library that gets chapters from any Youtube video

Latest version **0.2.2** (published 2026-05-29) · MIT license · 0 weekly downloads

## Install

```sh
npm install youtube-chapters-finder
pnpm add youtube-chapters-finder
yarn add youtube-chapters-finder
bun add youtube-chapters-finder
```

## Health

**Score 50/100 (C)** — status: active.

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support; pre 1.0.

## Facts

| | |
|---|---|
| Version | 0.2.2 |
| Published | 2026-05-29 |
| First published | 2023-09-24 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 9.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 5 |
| Author | Casey Bui |
| Maintainers | caseybui |
| Keywords | youtube chapters, get youtube chapters, youtube chapters finder, get chapters from a youtube video, youtube chapters npm, youtube chapters nodejs, get youtube chapters npm, get youtube chapters nodejs, youtube chapters node, get chapters from a youtube video npm, youtube, chapters |

## Links

- npm: https://www.npmjs.com/package/youtube-chapters-finder
- Repository: https://github.com/buikhacnam/youtube-chapters-finder
- Homepage: https://github.com/buikhacnam/youtube-chapters-finder#readme
- Issues: https://github.com/buikhacnam/youtube-chapters-finder/issues
- npm.io page: https://npm.io/package/youtube-chapters-finder

## Alternatives

- [@sindresorhus/slugify](https://npm.io/package/@sindresorhus/slugify.md) — 3.7M weekly downloads
- [solid-js](https://npm.io/package/solid-js.md) — 2.7M weekly downloads
- [expo-glass-effect](https://npm.io/package/expo-glass-effect.md) — 2.5M weekly downloads
- [nanoassert](https://npm.io/package/nanoassert.md) — 780.8K weekly downloads
- [@ffmpeg/ffmpeg](https://npm.io/package/@ffmpeg/ffmpeg.md) — 529.5K weekly downloads

## Recent versions

- 0.2.2 (latest) — 2026-05-29
- 0.2.1 — 2024-08-24
- 0.2.0 — 2024-08-24
- 0.1.3 — 2024-04-10
- 0.1.2 — 2023-09-24
- 0.1.1 — 2023-09-24
- 0.1.0 — 2023-09-24

## README

<div align="center">
  <div>
    <h1 align="center">youtube-chapters-finder</h1>
  </div>
	<p>A tiny npm library that helps get chapters from any Youtube video.

<a href="https://www.npmjs.com/package/youtube-chapters-finder"><img src="https://img.shields.io/npm/v/youtube-chapters-finder" alt="Current version"></a>

</div>

---

## Problem
I wanted to get the chapters from a youtube video, but I couldn't find such functionality in the [Youtube API](https://developers.google.com/youtube/v3). So I made one.

## Installation

`npm i youtube-chapters-finder`

## Example

Get all chapters from this youtube video: https://youtube.com/watch?v=Gi8LUnhP5yU

```js
import YoutubeChaptersGetter from 'youtube-chapters-finder'

async function getChapters() {
  return await YoutubeChaptersGetter.getChapter('Gi8LUnhP5yU') // video id
}

// expected output:
[
  {
    title: 'Introduction',
    time: '0:00',
    url: 'https://youtube.com/watch?v=Gi8LUnhP5yU'
  },
  {
    title: 'Are there intelligent life out there',
    time: '2:27',
    url: 'https://youtube.com/watch?v=Gi8LUnhP5yU&t=147s'
  },
  {
    title: 'We dont mean all of space',
    time: '3:02',
    url: 'https://youtube.com/watch?v=Gi8LUnhP5yU&t=182s'
  },
  {
    title: 'Intelligent life',
    time: '5:42',
    url: 'https://youtube.com/watch?v=Gi8LUnhP5yU&t=342s'
  },
  ...
]

```

[![Edit bold-ellis-6rg1t](https://codesandbox.io/static/img/play-codesandbox.svg)](https://codesandbox.io/p/devbox/youtube-chapters-finder-v4mz2m?file=%2Findex.ts%3A13%2C22)

## Usage

This package is intended to be used in server-side applications (Next.js included). I may add support for client-side applications in the future.


## License

MIT License

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