# Get a YouTube transcript from a video URL

**Use case:** 

Paste a YouTube video URL and get its full transcript: plain text plus timestamped segments, video title, caption language and whether captions are auto-generated. Works with watch, youtu.be, shorts, live and embed links or video IDs. Export to JSON, CSV or Excel, or call it as a YouTube transcript API.

## Input

```json
{
  "videos": [
    "https://www.youtube.com/watch?v=UF8uR6Z6KLc"
  ],
  "language": "en"
}
```

## Output

```json
{
  "videoId": {
    "label": "Video id",
    "format": "string"
  },
  "title": {
    "label": "Title",
    "format": "string"
  },
  "language": {
    "label": "Language",
    "format": "string"
  },
  "autoGenerated": {
    "label": "Auto generated",
    "format": "boolean"
  },
  "text": {
    "label": "Text",
    "format": "string"
  },
  "error": {
    "label": "Error",
    "format": "string"
  }
}
```

## How it works

### 1. Sign up on Apify or log in

The YouTube Transcript Scraper API Actor is ready to run with the inputs already set for "Get a YouTube transcript from a video URL". [Sign up or log in](https://console.apify.com/create-task-from-example/gSAdHa3Q1dp5nrlT7) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "Get a YouTube transcript from a video URL" task

The YouTube Transcript Scraper API Actor will start running based on the input automatically. You can also change all the input fields, like videos and language, to match your specific use case.

### 3. Receive the "Get a YouTube transcript from a video URL" output

Monitor the progress in real time. You will be notified as soon as your dataset is complete and ready for review. Each result includes data such as video id, title, language, and more.

### 4. Integrate into your workflow

The final output is delivered in JSON, CSV, or Excel format, ready to be plugged into your workflow. You can also [run the "Get a YouTube transcript from a video URL" task via API](https://apify.com/api_harbor/youtube-transcript-scraper.md).

## FAQ

### What does the YouTube transcript from URL task return?

The YouTube transcript from URL task returns video ID, title, caption language, an autoGenerated flag, the full transcript text and timestamped segments (start, end, text).

### Which YouTube links can I paste?

The YouTube transcript from URL task accepts watch, youtu.be, shorts, live and embed URLs, or the bare 11-character video ID.

### What if the video has no captions?

The YouTube transcript from URL task returns a row with an error field for videos without captions. That row is never charged.

### Do I need a YouTube account or API key?

No. The YouTube transcript from URL task reads public captions, so no login, cookies, YouTube Data API key or Google Cloud quota are needed.

### Can I call it via API, on a schedule or from Make, Zapier or n8n?

The YouTube transcript from URL task runs from the Apify API, Python and JavaScript clients, Make, Zapier, n8n or a schedule, and from MCP clients like Claude or Cursor.

### How much does it cost?

The YouTube transcript from URL task costs $1 per 1,000 transcripts ($0.001 each) plus $0.00005 per run. Videos without captions return an error row that is never charged.

## About this Actor

This example demonstrates how to use [YouTube Transcript Scraper API](https://apify.com/api_harbor/youtube-transcript-scraper.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/api_harbor/youtube-transcript-scraper.md) to learn more, explore other use cases, and run it yourself.


## How to integrate an Actor?

This Task's input is already configured above. Use it as-is rather than inventing a new one.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For full API examples (JavaScript, Python, CLI, MCP, OpenAPI), see this Task's Actor page: https://apify.com/api_harbor/youtube-transcript-scraper.md

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).
