# YouTube Details & Comments Scraper (Free)

Scrape title, view, date, etc from Youtube videos by URLs

- Template page: [https://www.octoparse.com/template/youtube-details-comments-scraper-free](https://www.octoparse.com/template/youtube-details-comments-scraper-free)
- Categories: Social Media
- Status: `PUBLISHED`
- Run mode: `BOTH`

## Pricing

Free.

## What is an Octoparse template?

An Octoparse template is a ready-to-use scraping workflow with predefined inputs and structured outputs. Use the exact parameter keys below; do not invent parameters.

## Overview

This ready-to-use template collects structured data from detail pages, comment pages.

## Output

The current workflow extracts 12 fields, including `Author`, `Comment`, `Comment_count`, `Comment_date`, `Comment_likes`, `Date`, `Description`, `Subscribers`, `Thumbs_up`, `Title`, `View`, `YouTuber`.

## Use Cases

- Use structured results for research, comparison, and monitoring.
- Collect rows without building the extraction workflow from scratch.
- Combine results with other templates for downstream enrichment.
- Review a representative result before starting a large batch.

## Why Octoparse

- **No coding required:** complete YouTube Video URLs (up to 10,000) and start the template in local or cloud mode.
- **Flexible export:** review and export results as CSV, Excel, or JSON.

## Input

### YouTube Video URLs (up to 10,000)

Required. 输入油管视频链接 Constraints: minItems=1; maxItems=10000; items.minLength=1; items.maxLength=100000.

## How to Use

# YouTube Details & Comments Scraper

This template extracts structured data from YouTube video detail and comment pages. It is **free of charge** (no per‑line fee; Octoparse plan or resource limits may still apply).

## Input

- **YouTube Video URLs** (Required) — Enter YouTube video URLs. Up to **10,000** entries per run.

## Output Fields

- `Title`
- `View`
- `Date`
- `Thumbs_up`
- `YouTuber`
- `Subscribers`
- `Description`
- `Comment_count`
- `Author`
- `Comment_date`
- `Comment`
- `Comment_likes`

## How to Use

1. Open **YouTube Details & Comments Scraper** and click **Try it!**.
2. Fill in **YouTube Video URLs** (up to 10,000 entries).
3. Choose a local or cloud run in Octoparse and start the task.
4. Review the extracted fields (e.g., `Title`, `View`, `Date`) and export the rows in your preferred format.

## Tips

- Test with one representative URL before submitting a large batch.
- Use `Title` and `View` to check for duplicates across exports.

## Limitations

Results depend on what the source site exposes at run time. Fields may be empty when a source page does not provide a value. The template enforces the input limits shown above.

## Tips

Use specific, valid inputs and review a representative result before starting a large batch. Remove duplicate inputs when repeated records are not needed.

## FAQ

### What do I need to enter?

Use the exact inputs and limits listed above.

### What data does this template return?

See Output Schema below; availability can vary by source record.

### How is usage billed?

See the Pricing section above for current pricing and billing details.

## Related Templates

- [YouTube Details & Comments Scraper](https://www.octoparse.com/template/youtube-details-comments-scraper)
- [Reddit Post & Comments Scraper (Free)](https://www.octoparse.com/template/reddit-scraper)
- [YouTube Comments & Replies Scraper](https://www.octoparse.com/template/youtube-comments-replies-scraper)
- [YouTube Channel Scraper (Free)](https://www.octoparse.com/template/youtube-channel-scraper-free)
- [TikTok Video Details & Comments Scraper](https://www.octoparse.com/template/tiktok-video-comments-scraper)

## Input Schema

```json
{
  "title": "YouTube Details & Comments Scraper (Free) input",
  "description": "Input parameters configured for the current published template version.",
  "type": "object",
  "schemaVersion": 1,
  "additionalProperties": false,
  "properties": {
    "youTube_Video_URLs": {
      "title": "YouTube Video URLs (up to 10,000)",
      "description": "输入油管视频链接",
      "type": "array",
      "items": {
        "type": "string",
        "minLength": 1,
        "maxLength": 100000
      },
      "minItems": 1,
      "maxItems": 10000,
      "x-octoparse": {
        "apiEnabled": true
      }
    }
  },
  "required": [
    "youTube_Video_URLs"
  ]
}
```

## Input JSON Example

Example 1

```json
{
  "youTube_Video_URLs": [
    "https://www.youtube.com/watch?v=xBBAD407zzU"
  ]
}
```

Example 2

```json
{
  "youTube_Video_URLs": [
    "https://www.youtube.com/watch?v=xBBAD407zzU&t=30s"
  ]
}
```

Example 3

```json
{
  "youTube_Video_URLs": [
    "https://www.youtube.com/watch?v=xBBAD407zzU&t=30s"
  ]
}
```

Example 4

```json
{
  "youTube_Video_URLs": [
    "https://www.youtube.com/watch?v=xBBAD407zzU&t=30s"
  ]
}
```

Example 5

```json
{
  "youTube_Video_URLs": [
    "https://www.youtube.com/watch?v=xBBAD407zzU&t=30s"
  ]
}
```


## Output Schema

```json
{
  "schemaVersion": 1,
  "type": "object",
  "properties": {
    "Author": {
      "type": "string",
      "description": ""
    },
    "Comment": {
      "type": "string",
      "description": ""
    },
    "Comment_count": {
      "type": "string",
      "description": ""
    },
    "Comment_date": {
      "type": "string",
      "description": ""
    },
    "Comment_likes": {
      "type": "string",
      "description": ""
    },
    "Date": {
      "type": "string",
      "description": ""
    },
    "Description": {
      "type": "string",
      "description": ""
    },
    "Subscribers": {
      "type": "string",
      "description": ""
    },
    "Thumbs_up": {
      "type": "string",
      "description": ""
    },
    "Title": {
      "type": "string",
      "description": ""
    },
    "View": {
      "type": "string",
      "description": ""
    },
    "YouTuber": {
      "type": "string",
      "description": ""
    }
  },
  "title": "YouTube Details & Comments Scraper (Free) output",
  "description": "Initial output fields derived from the current published implementation. Field descriptions are maintained by Data Center; production field names and types should be refreshed from recent successful runs.",
  "additionalProperties": false
}
```

## Output Example

Example 1

```json
{
  "Author": "\n             @nanachoi9361 \n          ",
  "Comment": "Want to try it out :)",
  "Comment_count": "22",
  "Comment_date": "2016-10-30",
  "Comment_likes": "\n    1\n  ",
  "Date": "Jun 2, 2016",
  "Description": "Subscribe and Visit Us https://www.octoparse.com\n✨What is a web crawler?\n✨How does a web crawler work?",
  "Subscribers": "12.5K subscribers",
  "Thumbs_up": "44",
  "Title": "\n        What is web scraping - Octoparse, your first web scraper!\n      ",
  "View": "103,584 views",
  "YouTuber": "Octoparse"
}
```

Example 2

```json
{
  "Author": "\n             @nanachoi9361 \n          ",
  "Comment": "Want to try it out :)",
  "Comment_count": "22",
  "Comment_date": "2016-10-14",
  "Comment_likes": "\n    1\n  ",
  "Date": "Jun 2, 2016",
  "Description": "Subscribe and Visit Us https://www.octoparse.com\n✨What is a web crawler?\n✨How does a web crawler work?",
  "Subscribers": "12.5K subscribers",
  "Thumbs_up": "44",
  "Title": "\n        What is web scraping - Octoparse, your first web scraper!\n      ",
  "View": "103,569 views",
  "YouTuber": "Octoparse"
}
```

Example 3

```json
{
  "Author": "\n             @FileHorsecom \n          ",
  "Comment": "Amazing video!",
  "Comment_count": "22",
  "Comment_date": "2017-10-09",
  "Comment_likes": "\n    1\n  ",
  "Date": "Jun 2, 2016",
  "Description": "Subscribe and Visit Us https://www.octoparse.com\n✨What is a web crawler?\n✨How does a web crawler work?",
  "Subscribers": "12.5K subscribers",
  "Thumbs_up": "44",
  "Title": "\n        What is web scraping - Octoparse, your first web scraper!\n      ",
  "View": "103,567 views",
  "YouTuber": "Octoparse"
}
```

Example 4

```json
{
  "Author": "\n             @nanachoi9361 \n          ",
  "Comment": "Want to try it out :)",
  "Comment_count": "22",
  "Comment_date": "2016-09-22",
  "Comment_likes": "\n    1\n  ",
  "Date": "Jun 2, 2016",
  "Description": "Subscribe and Visit Us https://www.octoparse.com\n✨What is a web crawler?\n✨How does a web crawler work?",
  "Subscribers": "12.5K subscribers",
  "Thumbs_up": "44",
  "Title": "\n      What is web scraping - Octoparse, your first web scraper!\n    ",
  "View": "103,552 views",
  "YouTuber": "Octoparse"
}
```

Example 5

```json
{
  "Author": "\n             @nanachoi9361 \n          ",
  "Comment": "Want to try it out :)",
  "Comment_count": "22",
  "Comment_date": "2016-09-15",
  "Comment_likes": "\n    1\n  ",
  "Date": "Jun 2, 2016",
  "Description": "Subscribe and Visit Us https://www.octoparse.com\n✨What is a web crawler?\n✨How does a web crawler work?",
  "Subscribers": "12.5K subscribers",
  "Thumbs_up": "44",
  "Title": "\n      What is web scraping - Octoparse, your first web scraper!\n    ",
  "View": "103,546 views",
  "YouTuber": "Octoparse"
}
```

## API

`POST https://openapi.octoparse.com/api/agentTools/executeTask`

This is the OpenAPI Agent Tools `executeTask` endpoint. Authenticate with a Bearer token.

Request body:

`templateName` is the template slug; `parameters` is a JSON object string whose keys match Input Schema; `taskName`, `idempotencyKey`, and `maxCollectedRows` are optional.

Obtain a token:

```http
POST https://openapi.octoparse.com/token
Content-Type: application/json

{
  "username": "YOUR_USERNAME",
  "password": "YOUR_PASSWORD",
  "grant_type": "password"
}
```

Use `data.access_token` as `Authorization: Bearer <token>`. After starting, poll `getTaskStatus` and export with `exportData`.

```json
{
  "templateName": "youtube-details-comments-scraper-free",
  "taskName": "YouTube Details & Comments Scraper (Free)",
  "parameters": "{\"youTube_Video_URLs\":[\"https://www.youtube.com/watch?v=xBBAD407zzU\"]}"
}
```

## Python Example

```python
import json
import requests

OPENAPI_BASE = "https://openapi.octoparse.com"
ACCESS_TOKEN = "YOUR_ACCESS_TOKEN"

parameters = json.loads("{\"youTube_Video_URLs\":[\"https://www.youtube.com/watch?v=xBBAD407zzU\"]}")

response = requests.post(
    f"{OPENAPI_BASE}/api/agentTools/executeTask",
    headers={
        "Authorization": f"Bearer {ACCESS_TOKEN}",
        "Content-Type": "application/json",
    },
    json={
        "templateName": "youtube-details-comments-scraper-free",
        "taskName": "YouTube Details & Comments Scraper (Free)",
        "parameters": json.dumps(parameters, ensure_ascii=False),
    },
    timeout=60,
)
print(response.status_code)
print(response.json())
```

## HTTP/cURL Example

```bash
curl -X POST "https://openapi.octoparse.com/api/agentTools/executeTask" \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  --data-binary @- <<'JSON'
{
  "templateName": "youtube-details-comments-scraper-free",
  "taskName": "YouTube Details & Comments Scraper (Free)",
  "parameters": "{\"youTube_Video_URLs\":[\"https://www.youtube.com/watch?v=xBBAD407zzU\"]}"
}
JSON
```

## MCP Setup

Connect an MCP-compatible AI client to `https://mcp.octoparse.com` using browser OAuth or an Octoparse API key. Find `youtube-details-comments-scraper-free`, inspect its inputs, create a cloud task with the exact Input Schema keys, and export JSON results.

## Machine-readable Resources

- [Template contract](https://www.octoparse.com/templates/youtube-details-comments-scraper-free.json)
- [Manifest](https://www.octoparse.com/templates/youtube-details-comments-scraper-free-manifest.json)
