# YouTube Video List Scraper

Collect YouTube video list data by keywords. Extract video titles, links, channel names, publish dates, views, and descriptions, then export structured results for analysis or reporting.

- Template page: [https://www.octoparse.com/template/youtube-video-list-scraper](https://www.octoparse.com/template/youtube-video-list-scraper)
- Categories: Social Media
- Status: `PUBLISHED`
- Run mode: `CLOUD`

## 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 search-results pages.

## Output

The current workflow extracts 9 fields, including `Channel_Link`, `Channel_Name`, `Description`, `Image_Url`, `Keyword`, `Publish_Date`, `Total_Views`, `Video_Link`, `Video_Title`.

## 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 Keywords or YouTube URLs (up to 10,000), Recently uploaded (search only), Max Results per Keyword/URL (1-100,000) and start the template in cloud mode.
- **Flexible export:** review and export results as CSV, Excel, or JSON.

## Input

### Keywords or YouTube URLs (up to 10,000)

Required. Enter keywords or search/channel/playlist/video URLs, one per line; mixed inputs are supported. Constraints: minItems=1; maxItems=10000; items.minLength=0; items.maxLength=100000000.

### Recently uploaded (search only)

Optional. Off by default: keywords and search-result URLs select YouTube's Videos category. Turn on to select Recently uploaded instead. Category selection does not change the page URL. Channel, playlist and single-video URLs are unaffected. Recently uploaded does not mean a fixed date range or guaranteed chronological order. If the requested category cannot be selected, the task reports a failure instead of collecting another category. Constraints: default=false.

### Max Results per Keyword/URL (1-100,000)

Required. Maximum number of unique videos to collect for each keyword or URL. Default: 1,000. Enter 10,000 to collect up to 10,000 videos per input. Collection stops when this limit is reached or YouTube has no more results. This is an upper limit, not a guaranteed result count. Constraints: minimum=1, maximum=100000.

## How to Use

# YouTube Video List Scraper

Collect video metadata from YouTube search results using keywords or YouTube URLs. Runs on Octoparse Cloud; no coding required.

## Open the template
1. Sign in or [sign up for Octoparse](https://www.octoparse.com/console/trial).
2. Open [YouTube Video List Scraper](https://www.octoparse.com/console/template/youtube-video-list-scraper).

## Configure inputs
Enter each keyword or URL on its own line.

- **Keywords or YouTube URLs (up to 10,000):** Required. Enter up to 10,000 keywords or YouTube URLs, one per line. You can mix keywords with search, channel, playlist, and video URLs.
- **Recently uploaded (search only):** Optional; off by default. For keywords and search-result URLs, leave it off for YouTube's Videos category or turn it on for Recently uploaded. This switch leaves channel, playlist, and single-video URLs unchanged. Recently uploaded is a YouTube category; it does not define a date range or guarantee chronological order.
- **Max Results per Keyword/URL (1-100,000):** Required; default `1,000`. Set a whole number from `1` to `100,000` unique videos per keyword or URL. The limit applies separately to each input. Collection stops at that limit or when YouTube has no more results.

Example:

```
Octoparse
https://www.youtube.com/results?search_query=python+tutorial
https://www.youtube.com/@Google/videos
```

## Run and export
1. Click **Start**. The task runs on Octoparse Cloud.
2. Review the video rows when the run finishes.
3. Export to CSV, Excel, or JSON.

## Notes
- Collects video metadata from search results, not comments.
- YouTube may filter results by location, personalized suggestions, or search depth. If videos are missing, raise **Max Results per Keyword/URL** to collect more available videos.

## 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 Video List Scraper (by URL)](https://www.octoparse.com/template/youtube-video-list-scraper-by-url)
- [YouTube Comments Scraper (Short Video)](https://www.octoparse.com/template/youtube-comments-scraper-shortvideo)
- [TikTok Video Details & Comments Scraper](https://www.octoparse.com/template/tiktok-video-comments-scraper)
- [YouTube Details & Comments Scraper (Free)](https://www.octoparse.com/template/youtube-details-comments-scraper-free)

## Input Schema

```json
{
  "title": "YouTube Video List Scraper input",
  "description": "Input parameters configured for the current published template version.",
  "type": "object",
  "schemaVersion": 1,
  "additionalProperties": false,
  "properties": {
    "keywords_or_YouTube_URLs": {
      "title": "Keywords or YouTube URLs (up to 10,000)",
      "description": "Enter keywords or search/channel/playlist/video URLs, one per line; mixed inputs are supported.",
      "type": "array",
      "items": {
        "type": "string",
        "minLength": 0,
        "maxLength": 100000000
      },
      "minItems": 1,
      "maxItems": 10000,
      "x-octoparse": {
        "apiEnabled": true
      }
    },
    "recently_uploaded": {
      "title": "Recently uploaded (search only)",
      "description": "Off by default: keywords and search-result URLs select YouTube's Videos category. Turn on to select Recently uploaded instead. Category selection does not change the page URL. Channel, playlist and single-video URLs are unaffected. Recently uploaded does not mean a fixed date range or guaranteed chronological order. If the requested category cannot be selected, the task reports a failure instead of collecting another category.",
      "type": "boolean",
      "default": false,
      "x-octoparse": {
        "apiEnabled": false
      }
    },
    "max_Results_per_Keyword/URL": {
      "title": "Max Results per Keyword/URL (1-100,000)",
      "description": "Maximum number of unique videos to collect for each keyword or URL. Default: 1,000. Enter 10,000 to collect up to 10,000 videos per input. Collection stops when this limit is reached or YouTube has no more results. This is an upper limit, not a guaranteed result count.",
      "type": "integer",
      "minimum": 1,
      "maximum": 100000,
      "x-octoparse": {
        "apiEnabled": true
      }
    }
  },
  "required": [
    "keywords_or_YouTube_URLs",
    "max_Results_per_Keyword/URL"
  ]
}
```

## Input JSON Example

Example 1

```json
{
  "keywords_or_YouTube_URLs": [
    "avis master marketing",
    "mon master marketing IAE",
    "master marketing alternance avis",
    "MSc marketing école de commerce avis",
    "IAE vs école de commerce marketing"
  ],
  "max_Results_per_Keyword/URL": 10.0
}
```

Example 2

```json
{
  "keywords_or_YouTube_URLs": [
    "avis master marketing",
    "mon master marketing IAE",
    "master marketing alternance avis",
    "MSc marketing école de commerce avis",
    "IAE vs école de commerce marketing"
  ],
  "max_Results_per_Keyword/URL": 10.0
}
```

Example 3

```json
{
  "keywords_or_YouTube_URLs": [
    "avis master marketing",
    "mon master marketing IAE",
    "master marketing alternance avis",
    "MSc marketing école de commerce avis",
    "IAE vs école de commerce marketing"
  ],
  "max_Results_per_Keyword/URL": 10.0
}
```

Example 4

```json
{
  "keywords_or_YouTube_URLs": [
    "avis master marketing",
    "mon master marketing IAE",
    "master marketing alternance avis",
    "MSc marketing école de commerce avis",
    "IAE vs école de commerce marketing"
  ],
  "max_Results_per_Keyword/URL": 10.0
}
```

Example 5

```json
{
  "keywords_or_YouTube_URLs": [
    "avis master marketing",
    "mon master marketing IAE",
    "master marketing alternance avis",
    "MSc marketing école de commerce avis",
    "IAE vs école de commerce marketing"
  ],
  "max_Results_per_Keyword/URL": 10.0
}
```


## Output Schema

```json
{
  "schemaVersion": 1,
  "type": "object",
  "properties": {
    "Channel_Link": {
      "type": "string",
      "description": ""
    },
    "Channel_Name": {
      "type": "string",
      "description": ""
    },
    "Description": {
      "type": "string",
      "description": ""
    },
    "Image_Url": {
      "type": "string",
      "description": ""
    },
    "Keyword": {
      "type": "string",
      "description": ""
    },
    "Publish_Date": {
      "type": "string",
      "description": ""
    },
    "Total_Views": {
      "type": "string",
      "description": ""
    },
    "Video_Link": {
      "type": "string",
      "description": ""
    },
    "Video_Title": {
      "type": "string",
      "description": ""
    }
  },
  "title": "YouTube Video List Scraper 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
{
  "Channel_Link": "https://www.youtube.com/@ESCPBusinessSchool",
  "Channel_Name": "ESCP",
  "Description": "Découvrez le témoignage de Guillaume Simionesco, Alumnus du MSc Marketing & Communication et actuellement chez Unilever ...",
  "Image_Url": "https://i.ytimg.com/vi/OpT7X_vXWJM/hq720.jpg",
  "Keyword": "MSc marketing école de commerce avis",
  "Publish_Date": "4y ago",
  "Total_Views": "1,056 views",
  "Video_Link": "https://www.youtube.com/watch?v=OpT7X_vXWJM",
  "Video_Title": "Parcours d'étudiant | MSc Marketing & Communication"
}
```

Example 2

```json
{
  "Channel_Link": "https://www.youtube.com/@simon_ast",
  "Channel_Name": "SimonAST",
  "Description": "Enjoy the video – and good luck with your studies 💪\n\nThe AST 2025 entrance exam guide (free): https://guide-concours-ast ...",
  "Image_Url": "https://i.ytimg.com/vi/i8VLU76in18/hq720.jpg",
  "Keyword": "IAE vs école de commerce marketing",
  "Publish_Date": "1y ago",
  "Total_Views": "30,379 views",
  "Video_Link": "https://www.youtube.com/watch?v=i8VLU76in18",
  "Video_Title": "IAE vs Business School: Which is better?"
}
```

Example 3

```json
{
  "Channel_Link": "https://www.youtube.com/@simon_ast",
  "Channel_Name": "SimonAST",
  "Description": "Enjoy the video – and good luck with your studies 💪\n\nThe AST 2025 entrance exam guide (free): https://guide-concours-ast ...",
  "Image_Url": "https://i.ytimg.com/vi/i8VLU76in18/hq720.jpg",
  "Keyword": "IAE vs école de commerce marketing",
  "Publish_Date": "1y ago",
  "Total_Views": "30,324 views",
  "Video_Link": "https://www.youtube.com/watch?v=i8VLU76in18",
  "Video_Title": "IAE vs Business School: Which is better?"
}
```

Example 4

```json
{
  "Channel_Link": "https://www.youtube.com/@PULLPISTACHE",
  "Channel_Name": "PULL PISTACHE",
  "Description": "Avec des études à l'IAE, je travaille au département marketing d'une entreprise industrielle et je vous fais part de mon expérience ...",
  "Image_Url": "https://i.ytimg.com/vi/r74Q-7gZhlI/hq720.jpg",
  "Keyword": "master marketing alternance avis",
  "Publish_Date": "3y ago",
  "Total_Views": "1,636 views",
  "Video_Link": "https://www.youtube.com/watch?v=r74Q-7gZhlI",
  "Video_Title": "Diplôme IAE : 3 ans après un master en marketing : je vous dis tout sur mes études en marketing"
}
```

Example 5

```json
{
  "Channel_Link": "https://www.youtube.com/@underratedbusiness",
  "Channel_Name": "The Underrated",
  "Description": "In the late 50s and early 60s, the car rental business was booming, and Hertz quickly became the top rental car company in the ...",
  "Image_Url": "https://i.ytimg.com/vi/w4qrpZi7GTY/hq720.jpg",
  "Keyword": "avis master marketing",
  "Publish_Date": "2y ago",
  "Total_Views": "1,720 views",
  "Video_Link": "https://www.youtube.com/watch?v=w4qrpZi7GTY",
  "Video_Title": "How Avis Created One of The Greatest Ads of All Time"
}
```

## 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-video-list-scraper",
  "taskName": "YouTube Video List Scraper",
  "parameters": "{\"keywords_or_YouTube_URLs\":[\"avis master marketing\",\"mon master marketing IAE\",\"master marketing alternance avis\",\"MSc marketing école de commerce avis\",\"IAE vs école de commerce marketing\"],\"max_Results_per_Keyword/URL\":10.0}"
}
```

## Python Example

```python
import json
import requests

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

parameters = json.loads("{\"keywords_or_YouTube_URLs\":[\"avis master marketing\",\"mon master marketing IAE\",\"master marketing alternance avis\",\"MSc marketing école de commerce avis\",\"IAE vs école de commerce marketing\"],\"max_Results_per_Keyword/URL\":10.0}")

response = requests.post(
    f"{OPENAPI_BASE}/api/agentTools/executeTask",
    headers={
        "Authorization": f"Bearer {ACCESS_TOKEN}",
        "Content-Type": "application/json",
    },
    json={
        "templateName": "youtube-video-list-scraper",
        "taskName": "YouTube Video List Scraper",
        "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-video-list-scraper",
  "taskName": "YouTube Video List Scraper",
  "parameters": "{\"keywords_or_YouTube_URLs\":[\"avis master marketing\",\"mon master marketing IAE\",\"master marketing alternance avis\",\"MSc marketing école de commerce avis\",\"IAE vs école de commerce marketing\"],\"max_Results_per_Keyword/URL\":10.0}"
}
JSON
```

## MCP Setup

Connect an MCP-compatible AI client to `https://mcp.octoparse.com` using browser OAuth or an Octoparse API key. Find `youtube-video-list-scraper`, 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-video-list-scraper.json)
- [Manifest](https://www.octoparse.com/templates/youtube-video-list-scraper-manifest.json)
