UNPKG

youtube-transcript-node

Version:

This is a Node.js API which allows you to get the transcripts/subtitles for a given YouTube video. It also works for automatically generated subtitles and supports translating subtitles.

18 lines 662 B
import { AxiosInstance } from 'axios'; import { TranscriptList } from './transcript.js'; import { ProxyConfig } from './types.js'; export declare class TranscriptListFetcher { private _httpClient; private _proxyConfig; constructor(httpClient: AxiosInstance, proxyConfig?: ProxyConfig | null); fetch(videoId: string): Promise<TranscriptList>; private _fetchCaptionsJson; private _extractInnertubeApiKey; private _extractCaptionsJson; private _assertPlayability; private _createConsentCookie; private _fetchVideoHtml; private _fetchHtml; private _fetchInnertubeData; } //# sourceMappingURL=transcriptFetcher.d.ts.map