An open API service indexing awesome lists of open source software.

https://github.com/dedevsclub/youtube-api

Generates transcript for YouTube videos with a URL.
https://github.com/dedevsclub/youtube-api

Last synced: 10 months ago
JSON representation

Generates transcript for YouTube videos with a URL.

Awesome Lists containing this project

README

          

# YouTube Transcript API

A simple serverless API to fetch YouTube video transcripts, deployable on Vercel.

## Usage

### Request

GET /api/transcript?videoUrl=https://www.youtube.com/watch?v=dQw4w9WgXcQ

### Response

{
"videoId": "dQw4w9WgXcQ",
"transcript": [
{ "text": "Hello world", "start": 0.0, "duration": 4.2 },
...
]
}

## Deployment

[![Deploy to Vercel](https://vercel.com/button)](https://vercel.com/import/project?template=https://github.com/DeDevsClub/youtube-api)

1. Click the button above
2. Import into your Vercel account
3. Done!

## Local Development

`npm install && vercel dev`