# YouTube Caption Extractor Demo

This is a Next.js project demonstrating the use of the `youtube-caption-extractor` npm package. It allows users to fetch subtitles and video details from YouTube videos using this package.

## Features

- Fetch subtitles from YouTube videos
- Retrieve video details including title and description
- Support for multiple languages

## Getting Started

First, install the dependencies:

````bash
npm install
# or
yarn install
# or
pnpm install

Then, run the development server:

```bash
npm run dev
# or
yarn dev
# or
pnpm dev
````

Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.

## Usage

1. Enter the YouTube video ID in the "Video ID" field.
2. Specify the desired language code in the "Language" field (e.g., 'en', 'es', 'fr') or leave it empty.
3. Click "Fetch Data" to retrieve the subtitles and video details.
