REST API for fetching YouTube video transcripts.
This project is a REST API with Express, TypeScript and TS-REST for fetching YouTube video transcripts. It allows you to get the transcript of a YouTube video by providing the video ID.
- Node modules: Express, Swagger UI, TS-REST, youtube-transcript, zod
- Programming Language: TypeScript
- Build Tool: Webpack
- Install Node.js (LTS version recommended).
- Enable Corepack to use a stable version of Yarn:
corepack enable- Clone the repository:
git clone git@github.com:jhordyess/youtube-transcript-api.git- Open the project folder:
cd youtube-transcript-api-
Create a
.envfile in the root folder by copying the example from the.env.examplefile. Replace the values with your own. -
Install the dependencies:
yarn install- Run the project:
yarn dev- Now you can test the endpoints at http://localhost:3000. The API docs (Swagger UI) will be available at http://localhost:3000/docs.
- Add more API endpoints
- Improve error handling
If you would like to contribute to the project, open an issue or make a pull request on the repository.
© 2025> Jhordyess. Under the MIT license. See the LICENSE file for more details.
Made with 💪 by Jhordyess