• Stars
    star
    245
  • Rank 165,304 (Top 4 %)
  • Language
    TypeScript
  • Created about 4 years ago
  • Updated 4 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Fetch transcript from a youtube video

youtube-transcript

npm version

I wanted to extract a transcript from a youtube video but there was only a python script so I created this to do it in node. This package use unofficial YTB API so it can be broken over the time if no update appears.

Installation

$ npm i youtube-transcript

or

$ yarn add youtube-transcript

Usage

import { YoutubeTranscript } from 'youtube-transcript';

YoutubeTranscript.fetchTranscript('videoId or URL').then(console.log);

Methods

  • fetchTranscript(videoId: string [,options: TranscriptConfig]): Promise<TranscriptResponse[]>;

License

MIT Licensed