# YouTube Search Scraper

Run a YouTube keyword search and collect matching videos with full metadata — engagement, channel details, and description links and hashtags — in a single task, ready for spreadsheets or downstream analysis.

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

## Pricing

Current price: **$0.96/1,000 lines**. Billing is based on output rows; an Octoparse subscription may be required.

## 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 web pages.

## Output

The current workflow extracts 33 fields, including `accountAvatarUrl`, `accountBadgeList`, `accountDisplayId`, `accountFansCount`, `accountHomeUrl`, `accountId`, `accountName`, `articleType`, `channelThumbnailList`, `coCreatorInfo`, `commentCount`, `commentsTurnedOff`, `contentBadgeList`, `contentId`, `contentText`, `contentTitle`, `contentUrl`, `coverImageList`, `descriptionLinks`, `detailCoCreatorInfo`, `detailContentText`, `hashtags`, `isCollaboration`, `isVerified`, `isVerifiedArtist`, `keyword`, `likeCount`, `playCount`, `publishTime`, `rawPublishTime`, `videoDuration`, `videoSummary`, `viewCount`.

## 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 Search Keywords, crawlNum (up to 600) and start the template in cloud mode.
- **Flexible export:** review and export results as CSV, Excel, or JSON.

## Input

### Search Keywords

Required. keywords to search. Constraints: minItems=1; maxItems=10000; items.minLength=1; items.maxLength=512.

### crawlNum (up to 600)

Optional. crawlNum for each keyword. Constraints: minimum=1, maximum=600.

## How to Use

### 📌 What is YouTube Search Scraper?

Collects YouTube search results for one or more keywords, returning each video's metadata, engagement, channel info, and description links/hashtags in a single task.

### 💰 Pricing

$0.96 per 1,000 rows collected.

### 📦 Output

High-value field groups:

- Video identity and content: title, video ID, URL, type, badges (e.g., New, 4K), duration, publish time (relative and exact), description snippet and full description.
- Search context: the keyword that matched this video.
- Channel: name, ID, home URL, avatar, thumbnail, subscriber count, badges (e.g., Official Artist Channel), verified and verified-artist status.
- Engagement: view/play count, like count, comment count, whether comments are turned off.
- Description extras: outbound links (Spotify, Instagram, official sites, etc.) and hashtags parsed from the video description.
- Collaboration context: co-creator info for official YouTube collabs.

### 📝 Input

- **keywords**: One or more YouTube search keywords, one per line. No limit on the number of keywords per task.
- **crawlNum (up to 600)**: Maximum number of videos to collect per keyword. Leave blank to collect up to 600 (the confirmed ceiling YouTube allows for a single keyword's search results).

### 🚀 How to Use

1. Open YouTube Search Scraper and click **Try it!**.
2. Enter one or more keywords in `keywords`, one per line.
3. Set `crawlNum` (up to 600) to control how many videos each keyword returns, or leave blank to collect up to the maximum.
4. Start the task – it runs in the cloud.
5. Review the collected video rows.
6. Export the data in the format you need.

### ⚠️ Limitations

- `crawlNum` accepts any value, but YouTube limits a single keyword's search results to roughly 600 videos; requesting more will not return more.
- No fixed limit on keyword lines per task; very large keyword lists take proportionally longer.
- If a video's detail lookup fails, its search result row is still uploaded; detail-only fields (comment count, like count, subscriber count, etc.) are left blank.
- `isCollaboration`, `coCreatorInfo`, and `detailCoCreatorInfo` only populate for official YouTube collabs.
- `isVerifiedArtist` only populates for verified music-artist channels; `videoSummary` only when YouTube provides an AI-generated summary.
- Runs in the cloud only.

### 💡 Tips

- Start with a short keyword list and default `crawlNum` to confirm the fields you need before scaling up.
- Lower `crawlNum` on broad keywords if you only need a representative sample.
- Use `descriptionLinks` and `hashtags` to trace a video's outbound promotion without opening it manually.
- Use the `keyword` field to group results by search term when running many keywords in one task.

## 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](https://www.octoparse.com/template/youtube-video-list-scraper)
- [YouTube Details & Comments Scraper (Free)](https://www.octoparse.com/template/youtube-details-comments-scraper-free)
- [YouTube Community Scraper](https://www.octoparse.com/template/youtube-community-scraper)
- [YouTube Comments & Replies Scraper](https://www.octoparse.com/template/youtube-comments-replies-scraper)
- [YouTube Channel Scraper](https://www.octoparse.com/template/youtube-channel-scraper)

## Input Schema

```json
{
  "title": "YouTube Search Scraper input",
  "description": "Input parameters configured for the current published template version.",
  "type": "object",
  "schemaVersion": 1,
  "additionalProperties": false,
  "properties": {
    "search_Keywords": {
      "title": "Search Keywords",
      "description": "keywords to search.",
      "type": "array",
      "items": {
        "type": "string",
        "minLength": 1,
        "maxLength": 512
      },
      "minItems": 1,
      "maxItems": 10000,
      "x-octoparse": {
        "apiEnabled": true
      }
    },
    "crawlNum": {
      "title": "crawlNum (up to 600)",
      "description": "crawlNum for each keyword.",
      "type": "integer",
      "minimum": 1,
      "maximum": 600,
      "x-octoparse": {
        "apiEnabled": true
      }
    }
  },
  "required": [
    "search_Keywords"
  ]
}
```

## Input JSON Example

Example 1

```json
{
  "crawlNum": 100,
  "search_Keywords": [
    "Octoparse",
    "apple",
    "Iphone"
  ]
}
```

Example 2

```json
{
  "crawlNum": 30,
  "search_Keywords": [
    "Dubai chocolate after:2024-11-01 before:2025-02-01",
    "Dubai chocolate after:2025-02-01 before:2025-05-01",
    "Dubai chocolate after:2025-05-01 before:2025-08-01"
  ]
}
```

Example 3

```json
{
  "crawlNum": 200,
  "search_Keywords": [
    "apple"
  ]
}
```

Example 4

```json
{
  "crawlNum": 100,
  "search_Keywords": [
    "bluetooth",
    "yellow",
    "red"
  ]
}
```

Example 5

```json
{
  "crawlNum": 200,
  "search_Keywords": [
    "cool",
    "beach",
    "sea"
  ]
}
```


## Output Schema

```json
{
  "schemaVersion": 1,
  "type": "object",
  "properties": {
    "accountAvatarUrl": {
      "type": "string",
      "description": ""
    },
    "accountBadgeList": {
      "type": "string",
      "description": ""
    },
    "accountDisplayId": {
      "type": "string",
      "description": ""
    },
    "accountFansCount": {
      "type": "string",
      "description": ""
    },
    "accountHomeUrl": {
      "type": "string",
      "description": ""
    },
    "accountId": {
      "type": "string",
      "description": ""
    },
    "accountName": {
      "type": "string",
      "description": ""
    },
    "articleType": {
      "type": "string",
      "description": ""
    },
    "channelThumbnailList": {
      "type": "string",
      "description": ""
    },
    "coCreatorInfo": {
      "type": "string",
      "description": ""
    },
    "commentCount": {
      "type": "string",
      "description": ""
    },
    "commentsTurnedOff": {
      "type": "string",
      "description": ""
    },
    "contentBadgeList": {
      "type": "string",
      "description": ""
    },
    "contentId": {
      "type": "string",
      "description": ""
    },
    "contentText": {
      "type": "string",
      "description": ""
    },
    "contentTitle": {
      "type": "string",
      "description": ""
    },
    "contentUrl": {
      "type": "string",
      "description": ""
    },
    "coverImageList": {
      "type": "string",
      "description": ""
    },
    "descriptionLinks": {
      "type": "string",
      "description": ""
    },
    "detailCoCreatorInfo": {
      "type": "string",
      "description": ""
    },
    "detailContentText": {
      "type": "string",
      "description": ""
    },
    "hashtags": {
      "type": "string",
      "description": ""
    },
    "isCollaboration": {
      "type": "string",
      "description": ""
    },
    "isVerified": {
      "type": "string",
      "description": ""
    },
    "isVerifiedArtist": {
      "type": "string",
      "description": ""
    },
    "keyword": {
      "type": "string",
      "description": ""
    },
    "likeCount": {
      "type": "string",
      "description": ""
    },
    "playCount": {
      "type": "string",
      "description": ""
    },
    "publishTime": {
      "type": "string",
      "description": ""
    },
    "rawPublishTime": {
      "type": "string",
      "description": ""
    },
    "videoDuration": {
      "type": "string",
      "description": ""
    },
    "videoSummary": {
      "type": "string",
      "description": ""
    },
    "viewCount": {
      "type": "string",
      "description": ""
    }
  },
  "title": "YouTube Search 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
{
  "accountAvatarUrl": "https://yt3.ggpht.com/po4hm8Z9c6wECka6Ct_jQ8stwZCDKqYYds2uXuk6LtRFoO_bxWAi-QP8vlpXuW8qBFVqMxBnLg=s48-c-k-c0x00ffffff-no-rj",
  "accountBadgeList": "[\"Verified\"]",
  "accountDisplayId": "@9to5Mac",
  "accountFansCount": "983K",
  "accountHomeUrl": "https://www.youtube.com/@9to5Mac",
  "accountId": "UChjRM_qQAaOAiLNbOGbYcRA",
  "accountName": "9to5Mac",
  "articleType": "video",
  "channelThumbnailList": "[{\"height\": 68, \"url\": \"https://yt3.ggpht.com/po4hm8Z9c6wECka6Ct_jQ8stwZCDKqYYds2uXuk6LtRFoO_bxWAi-QP8vlpXuW8qBFVqMxBnLg=s68-c-k-c0x00ffffff-no-rj\", \"width\": 68}]",
  "coCreatorInfo": "",
  "commentCount": "145",
  "commentsTurnedOff": "false",
  "contentBadgeList": "[\"New\", \"3 products\"]",
  "contentId": "v3fC_iajwkc",
  "contentText": "AirPods Pro 3: $199 - https://amzn.to/4za3q7i Apple HomeView: $299 - https://amzn.to/47i1cXK ⚡ Best 140W Charging Station: ...",
  "contentTitle": "Apple Just Announced ANOTHER Event... This Is HUGE! | Pro and Tell What To Expect!",
  "contentUrl": "https://www.youtube.com/watch?v=v3fC_iajwkc",
  "coverImageList": "[{\"height\": 202, \"url\": \"https://i.ytimg.com/vi/v3fC_iajwkc/hq720.jpg?sqp=-oaymwEnCOgCEMoBSFryq4qpAxkIARUAAIhCGAHYAQHiAQoIGBACGAY4AUAB&rs=AOn4CLDFb5pssBk-2o1SUGngalfqZSMcNA\", \"width\": 360}, {\"height\": 404, \"url\": \"https://i.ytimg.com/vi/v3fC_iajwkc/hq720.jpg?sqp=-oaymwEnCNAFEJQDSFryq4qpAxkIARUAAIhCGAHYAQHiAQoIGBACGAY4AUAB&rs=AOn4CLAGXt4oldRFgPZN93a3iZGV_JRFiw\", \"width\": 720}]",
  "descriptionLinks": "[{\"text\": \"https://amzn.to/4za3q7i\", \"url\": \"https://amzn.to/4za3q7i\"}, {\"text\": \"https://amzn.to/47i1cXK\", \"url\": \"https://amzn.to/47i1cXK\"}, {\"text\": \"https://amzn.to/4yEoMtL\", \"url\": \"https://amzn.to/4yEoMtL\"}, {\"text\": \"https://amzn.to/4e0zJ0h\", \"url\": \"https://amzn.to/4e0zJ0h\"}, {\"text\": \"https://amzn.to/4hBWx8U\", \"url\": \"https://amzn.to/4hBWx8U\"}, {\"text\": \"https://amzn.to/4hAbQz2\", \"url\": \"https://amzn.to/4hAbQz2\"}, {\"text\": \"https://amzn.to/4hNznLw\", \"url\": \"https://amzn.to/4hNznLw\"}, {\"text\": \"   / @9to5mac  \", \"url\": \"https://www.youtube.com/channel/UChjRM_qQAaOAiLNbOGbYcRA/join\"}, {\"text\": \"   • 9to5Mac Overtime  \", \"url\": \"https://www.youtube.com/playlist?list=PLP3DOW_eX2AwO_whrINOi-TuAdgsSR83i\"}, {\"text\": \"https://podcasts.apple.com/us/podcast...\", \"url\": \"https://podcasts.apple.com/us/podcast/9to5mac-overtime/id1727206360\"}, {\"text\": \"  / nandoprince93  \", \"url\": \"https://www.twitter.com/nandoprince93\"}, {\"text\": \"#Apple\", \"url\": \"https://www.youtube.com/hashtag/apple\"}, {\"text\": \"#MacBookPro\", \"url\": \"https://www.youtube.com/hashtag/macbookpro\"}, {\"text\": \"#AppleEvent\", \"url\": \"https://www.youtube.com/hashtag/appleevent\"}, {\"text\": \"#TouchscreenMacBook\", \"url\": \"https://www.youtube.com/hashtag/touchscreenmacbook\"}, {\"text\": \"#OLED\", \"url\": \"https://www.youtube.com/hashtag/oled\"}, {\"text\": \"#M6\", \"url\": \"https://www.youtube.com/hashtag/m6\"}, {\"text\": \"#iPadMini\", \"url\": \"https://www.youtube.com/hashtag/ipadmini\"}, {\"text\": \"#9to5Mac\", \"url\": \"https://www.youtube.com/hashtag/9to5mac\"}, {\"text\": \"https://9to5mac.com/about/#affiliaten...\", \"url\": \"https://9to5mac.com/about/#affiliatenetwork\"}]",
  "detailCoCreatorInfo": "",
  "detailContentText": "🎧 AirPods Pro 3: $199 - https://amzn.to/4za3q7i\n🏠 Apple HomeView: $299 - https://amzn.to/47i1cXK\n⚡ Best 140W Charging Station: https://amzn.to/4yEoMtL\n🔌 Best 100W Wall Charger under $50: https://amzn.to/4e0zJ0h\n🌡️ Ecobee Smart Thermostat: https://amzn.to/4hBWx8U\n🔐 Avia Smart Lock: https://amzn.to/4hAbQz2\n🔋 Favorite Charging Cable: https://amzn.to/4hNznLw\n\nApple just announced its brand-new “Pro and tell.” event for October 28, 2026, and this could be one of the BIGGEST Mac announcements in years! 👀\n\nApple is expected to finally unveil its first-ever OLED touchscreen MacBook Pro, alongside several other exciting products, including a new M6 MacBook Pro, M6 iMac, and OLED iPad mini!\n\nBut what's really interesting is Apple's mysterious event invitation. Between the glowing, layered Apple logo, the unusual “Pro and tell” tagline, and all the recent leaks, there could be some hidden clues about what Apple has planned.\n\nIn this video, we're breaking down EVERYTHING we know about Apple's upcoming October event, the biggest rumors, potential surprises, and what the invitation might be teasing.\n\nApple's October 28 event is shaping up to be a big one, especially if the company finally brings touchscreen functionality to the MacBook Pro.\n\nThe big question: Do we actually NEED a touchscreen MacBook Pro, or is Apple fixing something that was never broken?\n\n👇 Let me know which rumored Apple product you're most excited about!\n\n👍 LIKE if you're excited for Apple's next announcements!\n\n🔔 SUBSCRIBE for more Apple news, hands-on coverage, comparisons, reviews, and everything happening in the Apple ecosystem!\n\nJoin this channel to get access to perks:\n   / @9to5mac  \n\nSubscribe to our Podcast\n   • 9to5Mac Overtime  \n\nhttps://podcasts.apple.com/us/podcast...\n\nFollow Fernando\n  / nandoprince93  \n\n⏱️ Timestamps\n\n#Apple #MacBookPro #AppleEvent #TouchscreenMacBook #OLED #M6 #iPadMini #9to5Mac\n\nAffiliate disclaimer\nFTC: We use income-earning affiliate links and participate in the Amazon Services LLC Associates Program. For more details, visit: https://9to5mac.com/about/#affiliaten...",
  "hashtags": "[\"#Apple\", \"#MacBookPro\", \"#AppleEvent\", \"#TouchscreenMacBook\", \"#OLED\", \"#M6\", \"#iPadMini\", \"#9to5Mac\"]",
  "isCollaboration": "",
  "isVerified": "true",
  "isVerifiedArtist": "",
  "keyword": "apple",
  "likeCount": "1358",
  "playCount": "80223",
  "publishTime": "2026-10-19T00:00:00",
  "rawPublishTime": "8h ago",
  "videoDuration": "519000",
  "videoSummary": "{\"summary\": \"Fernando examines the hidden clues within Apple's \\\"Pro and Tell\\\" event invitation. The discussion covers anticipated hardware updates, including potential design changes for the MacBook Pro, refreshed iMac models, and an updated iPad Mini with an OLED display.\", \"title\": \"AI-generated video summary\"}",
  "viewCount": "80223"
}
```

Example 2

```json
{
  "accountAvatarUrl": "https://yt3.ggpht.com/sS9OtcPLL1vQNfGnRudALfNzfpHVy7qwRRKTYF4HEfyICGTfXfHsfP2hhIPgKK0iBxW7p1lH1g=s48-c-k-c0x00ffffff-no-rj",
  "accountBadgeList": "[\"Verified\"]",
  "accountDisplayId": "@CNBC",
  "accountFansCount": "4.17M",
  "accountHomeUrl": "https://www.youtube.com/@CNBC",
  "accountId": "UCvJJ_dzjViJCoLf5uKUTwoA",
  "accountName": "CNBC",
  "articleType": "video",
  "channelThumbnailList": "[{\"height\": 68, \"url\": \"https://yt3.ggpht.com/sS9OtcPLL1vQNfGnRudALfNzfpHVy7qwRRKTYF4HEfyICGTfXfHsfP2hhIPgKK0iBxW7p1lH1g=s68-c-k-c0x00ffffff-no-rj\", \"width\": 68}]",
  "coCreatorInfo": "",
  "commentCount": "1.2K",
  "commentsTurnedOff": "false",
  "contentBadgeList": "[\"CC\"]",
  "contentId": "UzwkKjIAnes",
  "contentText": "Originally sold by Fix Dessert Chocolatier in 2022, Dubai Chocolate bars have exploded in popularity. Their scarcity has fueled ...",
  "contentTitle": "How The Dubai Chocolate Craze Won Over Trader Joe's, Costco And Crumbl",
  "contentUrl": "https://www.youtube.com/watch?v=UzwkKjIAnes",
  "coverImageList": "[{\"height\": 202, \"url\": \"https://i.ytimg.com/vi/UzwkKjIAnes/hq720.jpg?sqp=-oaymwEnCOgCEMoBSFryq4qpAxkIARUAAIhCGAHYAQHiAQoIGBACGAY4AUAB&rs=AOn4CLBnHYDD6RaJmhSBhGEH3TZlwJY-uQ\", \"width\": 360}, {\"height\": 404, \"url\": \"https://i.ytimg.com/vi/UzwkKjIAnes/hq720.jpg?sqp=-oaymwEnCNAFEJQDSFryq4qpAxkIARUAAIhCGAHYAQHiAQoIGBACGAY4AUAB&rs=AOn4CLBZw4VANWVlD5cOpMBNLebJCn0TOw\", \"width\": 720}]",
  "descriptionLinks": "[{\"text\": \"0:00\", \"url\": \"https://www.youtube.com/watch?v=UzwkKjIAnes\"}, {\"text\": \"1:25\", \"url\": \"https://www.youtube.com/watch?v=UzwkKjIAnes&t=85s\"}, {\"text\": \"2:40\", \"url\": \"https://www.youtube.com/watch?v=UzwkKjIAnes&t=160s\"}, {\"text\": \"5:17\", \"url\": \"https://www.youtube.com/watch?v=UzwkKjIAnes&t=317s\"}, {\"text\": \"6:16\", \"url\": \"https://www.youtube.com/watch?v=UzwkKjIAnes&t=376s\"}, {\"text\": \"https://cnb.cx/SubscribeCNBC\", \"url\": \"https://cnb.cx/SubscribeCNBC\"}, {\"text\": \"https://cnb.cx/SubscribeCNBCtelevision\", \"url\": \"https://cnb.cx/SubscribeCNBCtelevision\"}, {\"text\": \"https://www.cnbc.com/WatchCNBCPlus\", \"url\": \"https://www.cnbc.com/WatchCNBCPlus\"}, {\"text\": \"https://cnb.cx/4k2Cf7b\", \"url\": \"https://cnb.cx/4k2Cf7b\"}, {\"text\": \"https://www.cnbc.com/\", \"url\": \"https://www.cnbc.com/\"}, {\"text\": \"https://cnb.cx/LinkedInCNBC\", \"url\": \"https://cnb.cx/LinkedInCNBC\"}, {\"text\": \"https://cnb.cx/InstagramCNBC\", \"url\": \"https://cnb.cx/InstagramCNBC\"}, {\"text\": \"https://cnb.cx/LikeCNBC\", \"url\": \"https://cnb.cx/LikeCNBC\"}, {\"text\": \"https://cnb.cx/threads\", \"url\": \"https://cnb.cx/threads\"}, {\"text\": \"https://cnb.cx/FollowCNBC\", \"url\": \"https://cnb.cx/FollowCNBC\"}, {\"text\": \"https://cnb.cx/WhatsAppCNBC\", \"url\": \"https://cnb.cx/WhatsAppCNBC\"}, {\"text\": \"#CNBC\", \"url\": \"https://www.youtube.com/hashtag/cnbc\"}]",
  "detailCoCreatorInfo": "",
  "detailContentText": "Originally sold by Fix Dessert Chocolatier in 2022, Dubai Chocolate bars have exploded in popularity. Their scarcity has fueled black markets and price gouging on resale marketplaces like eBay. Now, companies like Lindt, Walmart, Costco, Shake Shack, Crumbl and Trader Joe’s are capitalizing on the trend with their own spinoffs and dupes. As consumers seek out more mediterranean flavors, the chocolate-pistachio combination is one that could be here to stay. But there are some challenges ahead. Watch the video to learn more.\n\nChapters:\n0:00 Introduction\n1:25 Chapter 1. An Unexpected invention\n2:40 Chapter 2. Capitalizing on a trend\n5:17 Chapter 3. The rise of Mediterranean flavors\n6:16 Chapter 4. Staying power?\n\nProduced and Shot by: Natalie Rice\nEdited by: Nic Golden Henry\nAdditional Camera: Ryan Baker, Tasia Jensen\nSenior Managing Producing: Tala Hadavi\nAdditional Sources: Administrative Committee for Pistachios, IBISWorld\nAdditional Footage: Getty Images, Crumbl, Shake Shack, Lindt Switzerland. FIX Dessert Chocolatier, TODAY, KSEE\n\n» Subscribe to CNBC: https://cnb.cx/SubscribeCNBC\n» Subscribe to CNBC TV: https://cnb.cx/SubscribeCNBCtelevision\n» Watch CNBC on the go with CNBC+: https://www.cnbc.com/WatchCNBCPlus\n\nAbout CNBC: From 'Wall Street' to 'Main Street' to award winning original documentaries and Reality TV series, CNBC has you covered. Experience special sneak peeks of your favorite shows, exclusive video and more.\n\nWant to boost your confidence, income and career success? Take one of Smarter by CNBC Make It’s expert-led online courses. Use coupon code MEMORIAL for a discount of 30% off the regular course prices (plus tax). Offer valid May 19, 2025, through June 2, 2025. Terms apply. https://cnb.cx/4k2Cf7b\n\nConnect with CNBC News Online\nGet the latest news: https://www.cnbc.com/\nFollow CNBC on LinkedIn: https://cnb.cx/LinkedInCNBC\nFollow CNBC News on Instagram: https://cnb.cx/InstagramCNBC\nFollow CNBC News on Facebook: https://cnb.cx/LikeCNBC\nFollow CNBC on Threads: https://cnb.cx/threads\nFollow CNBC News on X: https://cnb.cx/FollowCNBC\nFollow CNBC on WhatsApp: https://cnb.cx/WhatsAppCNBC\n\n#CNBC\n\nHow The Dubai Chocolate Craze Won Over Trader Joe's, Costco And Crumbl",
  "hashtags": "[\"#CNBC\"]",
  "isCollaboration": "",
  "isVerified": "true",
  "isVerifiedArtist": "",
  "keyword": "Dubai chocolate after:2025-05-01 before:2025-08-01",
  "likeCount": "11152",
  "playCount": "1577161",
  "publishTime": "2025-05-28T00:00:00",
  "rawPublishTime": "1y ago",
  "videoDuration": "519000",
  "videoSummary": "",
  "viewCount": "1577161"
}
```

Example 3

```json
{
  "accountAvatarUrl": "https://yt3.ggpht.com/io5kxJ9NhC828TUZbzr3wockAh2Znxp3JJqLi3B559iX4ejfaKsyF6G36JTpH3oWNsDT5tkxYw=s48-c-k-c0x00ffffff-no-rj",
  "accountBadgeList": "[\"Verified\"]",
  "accountDisplayId": "@NextUniverz",
  "accountFansCount": "5.63M",
  "accountHomeUrl": "https://www.youtube.com/@NextUniverz",
  "accountId": "UCq30pSBD9tX6d5_xT5aNPoA",
  "accountName": "Next Univerz",
  "articleType": "video",
  "channelThumbnailList": "[{\"height\": 68, \"url\": \"https://yt3.ggpht.com/io5kxJ9NhC828TUZbzr3wockAh2Znxp3JJqLi3B559iX4ejfaKsyF6G36JTpH3oWNsDT5tkxYw=s68-c-k-c0x00ffffff-no-rj\", \"width\": 68}]",
  "coCreatorInfo": "",
  "commentCount": "749",
  "commentsTurnedOff": "false",
  "contentBadgeList": "[\"New\", \"4K\"]",
  "contentId": "yStG1Qn-2vQ",
  "contentText": "Apple just finished their biggest apple event *iPhone 18 Pro, iPhone 18 Pro Max and iPhone Duo is here — big upgrades, bigger ...",
  "contentTitle": "₹3 Lakh for an iPhone - Apple Most Expensive Phone 🤯",
  "contentUrl": "https://www.youtube.com/watch?v=yStG1Qn-2vQ",
  "coverImageList": "[{\"height\": 202, \"url\": \"https://i.ytimg.com/vi/yStG1Qn-2vQ/hq720_custom_1.jpg?sqp=CKCLn9UG-oaymwEcCOgCEMoBSFXyq4qpAw4IARUAAIhCGAFwAcABBg==&rs=AOn4CLAtke0IrOhe08vvKeFowRF7z-R0xw\", \"width\": 360}, {\"height\": 404, \"url\": \"https://i.ytimg.com/vi/yStG1Qn-2vQ/hq720_custom_1.jpg?sqp=CKCLn9UG-oaymwEcCNAFEJQDSFXyq4qpAw4IARUAAIhCGAFwAcABBg==&rs=AOn4CLBqwyBgNgQB__Bh9mx0DlSVOWf3nw\", \"width\": 720}]",
  "descriptionLinks": "[{\"text\": \"   / @techmasterhq  \", \"url\": \"https://www.youtube.com/channel/UCglXlpWjIi95auM3umWWLdw\"}, {\"text\": \"  / techmasterco  \", \"url\": \"https://www.instagram.com/techmasterco\"}, {\"text\": \"  / nextuniverz  \", \"url\": \"https://www.instagram.com/nextuniverz/\"}, {\"text\": \"https://x.com/techmasterco\", \"url\": \"https://x.com/techmasterco\"}, {\"text\": \"  / 19kyx8kfwp  \", \"url\": \"https://www.facebook.com/share/19kyx8kFwp/\"}, {\"text\": \"#unboxing\", \"url\": \"https://www.youtube.com/hashtag/unboxing\"}, {\"text\": \"#tech\", \"url\": \"https://www.youtube.com/hashtag/tech\"}, {\"text\": \"#techmaster\", \"url\": \"https://www.youtube.com/hashtag/techmaster\"}]",
  "detailCoCreatorInfo": "",
  "detailContentText": "Apple just finished their biggest apple event *iPhone 18 Pro, iPhone 18 Pro Max and iPhone Duo is here — big upgrades, bigger prices? Here’s our Apple Event 2026 breakdown, focusing on India vs US pricing and what Indian buyers actually get.\n\niPhone 18 Pro Launched -  Apple iPhones Price Hike is real\n\nApple’s folding iPhone brings a new design, but is the iPhone Duo worth its premium price? We discuss its display, cameras, Touch ID, eSIM-only approach and the compromises that matter before buying.\n\nWe also break down the iPhone 18 Pro series: new colours, the variable aperture camera, A20 Pro performance, battery life, faster charging and Apple Intelligence.\n\nIn this video:\n• iPhone Duo price in India vs the US\n• Foldable iPhone features and compromises\n• iPhone 18 Pro and Pro Max camera upgrades\n• A20 Pro, gaming performance and cooling\n• Battery life and charging improvements\n• Siri AI, language support and feature availability in India\n• AppleCare+ costs and the overall ownership price\n• Where the regular iPhone 18 and Air 2 fit into the lineup\n\nBusiness E-mail : business@nextuniverz.com\n\nOther Channels:\n\nTech Master:\n   / @techmasterhq  \n\nInstagram:\n  / techmasterco  \n\n  / nextuniverz  \n\nTwitter/X:\nhttps://x.com/techmasterco\n\nFacebook:\n  / 19kyx8kfwp  \n\n\n:::::::::::::::::::::::::::::::::::CREDITS::::::::::::::::::::::::::::::::::::::\n\nWritten & Directed By: Dhruv, Sajan, Swaroop\nDOP: Vinay \nEdited By: Parth, Harsh,Tushar, Kamlesh\nThumbnail Designed By: Rishi\n\n\nThanks For Watching!! 🧿🧿🧿\n#unboxing \n#tech\n#techmaster",
  "hashtags": "[\"#unboxing\", \"#tech\", \"#techmaster\"]",
  "isCollaboration": "",
  "isVerified": "true",
  "isVerifiedArtist": "",
  "keyword": "apple",
  "likeCount": "10486",
  "playCount": "1014377",
  "publishTime": "2026-09-09T00:00:00",
  "rawPublishTime": "4 days ago",
  "videoDuration": "336000",
  "videoSummary": "{\"summary\": \"Next Univerz explores the new lineup, covering the innovative foldable technology, high-end camera advancements with variable apertures, and the integration of the A20 Pro Bionic chip. The discussion includes a detailed look at international pricing discrepancies, battery life improvements, and the evolving features of Apple Intelligence in the latest hardware releases.\", \"title\": \"AI-generated video summary\"}",
  "viewCount": "1014377"
}
```

Example 4

```json
{
  "accountAvatarUrl": "https://yt3.ggpht.com/5cFeYp0g_18HufXw3xT_QjmW9eIS3HVgQl5aho3RoIsb_NDNQfBV8Y7s5FyfEH7vL0IB5LiefA=s48-c-k-c0x00ffffff-no-rj",
  "accountBadgeList": "[\"Official Artist Channel\"]",
  "accountDisplayId": "channel/UCXO1tn3B8IiFIe-ZGHsslKQ",
  "accountFansCount": "43.9K",
  "accountHomeUrl": "https://www.youtube.com//channel/UCXO1tn3B8IiFIe-ZGHsslKQ",
  "accountId": "UCXO1tn3B8IiFIe-ZGHsslKQ",
  "accountName": "B6",
  "articleType": "video",
  "channelThumbnailList": "[{\"height\": 68, \"url\": \"https://yt3.ggpht.com/5cFeYp0g_18HufXw3xT_QjmW9eIS3HVgQl5aho3RoIsb_NDNQfBV8Y7s5FyfEH7vL0IB5LiefA=s88-c-k-c0x00ffffff-no-rj\", \"width\": 68}]",
  "coCreatorInfo": "",
  "commentCount": "37",
  "commentsTurnedOff": "false",
  "contentBadgeList": "[\"New\", \"4K\"]",
  "contentId": "qZiDndGarQM",
  "contentText": "B6 - RED HIGH (Official Music Video) Official visual release for the single “RED HIGH” by B6, from the album *Attention*. — Listen ...",
  "contentTitle": "B6 - RED HIGH (Official Music Video)",
  "contentUrl": "https://www.youtube.com/watch?v=qZiDndGarQM",
  "coverImageList": "[{\"height\": 202, \"url\": \"https://i.ytimg.com/vi/qZiDndGarQM/hq720.jpg?sqp=-oaymwEcCOgCEMoBSFXyq4qpAw4IARUAAIhCGAFwAcABBg==&rs=AOn4CLAAI5d8eDJvlCCZ1RSEZNKUleqrFg\", \"width\": 360}, {\"height\": 404, \"url\": \"https://i.ytimg.com/vi/qZiDndGarQM/hq720.jpg?sqp=-oaymwEcCNAFEJQDSFXyq4qpAw4IARUAAIhCGAFwAcABBg==&rs=AOn4CLClieDbpcSVvimX8I7dBqvPk7eF6Q\", \"width\": 720}]",
  "descriptionLinks": "[{\"text\": \"https://open.spotify.com/track/4vb7MH...\", \"url\": \"https://open.spotify.com/track/4vb7MHjVh885enxXIBu0zP?si=f46db412abab4103\"}, {\"text\": \"  / red-high  \", \"url\": \"https://music.apple.com/us/song/red-high/6798536631\"}, {\"text\": \"https://open.spotify.com/album/7sdTze...\", \"url\": \"https://open.spotify.com/album/7sdTzeedIgRkHzsxvr8AV8?si=_KbzC9MZSo6yxd2It2IRhA\"}, {\"text\": \"  / attention  \", \"url\": \"https://music.apple.com/us/album/attention/6798536431\"}, {\"text\": \"https://www.bfuxkin6.com\", \"url\": \"https://www.bfuxkin6.com/\"}, {\"text\": \"  / bfuxkin6  \", \"url\": \"https://www.instagram.com/bfuxkin6\"}, {\"text\": \"  / bfuxkin6  \", \"url\": \"https://www.facebook.com/bfuxkin6\"}, {\"text\": \"  / bfuxkin6  \", \"url\": \"https://www.tiktok.com/@bfuxkin6\"}, {\"text\": \"https://x.com/Bfuxkin6\", \"url\": \"https://x.com/Bfuxkin6\"}, {\"text\": \"#B6\", \"url\": \"https://www.youtube.com/hashtag/b6\"}, {\"text\": \"#Bfuxkin6\", \"url\": \"https://www.youtube.com/hashtag/bfuxkin6\"}, {\"text\": \"#RedHigh\", \"url\": \"https://www.youtube.com/hashtag/redhigh\"}, {\"text\": \"#Attention\", \"url\": \"https://www.youtube.com/hashtag/attention\"}, {\"text\": \"#OfficialMusicVideo\", \"url\": \"https://www.youtube.com/hashtag/officialmusicvideo\"}]",
  "detailCoCreatorInfo": "",
  "detailContentText": "B6 - RED HIGH (Official Music Video)\nOfficial visual release for the single “RED HIGH” by B6, from the album *Attention*.\n\n—\n\nListen to the single:\nSpotify: https://open.spotify.com/track/4vb7MH...\nApple Music:   / red-high  \n\nListen to the full album (*Attention*):\nSpotify: https://open.spotify.com/album/7sdTze...\nApple Music:   / attention  \n\n—\n\nFollow B6:\nWebsite: https://www.bfuxkin6.com\nInstagram:   / bfuxkin6  \nFacebook:   / bfuxkin6  \nTikTok:   / bfuxkin6  \nX: [https://x.com/Bfuxkin6\n\n—\n\nThis is the official YouTube channel of B6.\nSubscribe for upcoming releases, official videos, and updates.\n#B6 #Bfuxkin6 #RedHigh #Attention #OfficialMusicVideo",
  "hashtags": "[\"#B6\", \"#RedHigh\", \"#Attention\", \"#Bfuxkin6\", \"#OfficialMusicVideo\"]",
  "isCollaboration": "",
  "isVerified": "false",
  "isVerifiedArtist": "true",
  "keyword": "red",
  "likeCount": "676",
  "playCount": "6281",
  "publishTime": "2026-09-13T00:00:00",
  "rawPublishTime": "8 hours ago",
  "videoDuration": "213000",
  "videoSummary": "",
  "viewCount": "6281"
}
```

Example 5

```json
{
  "accountAvatarUrl": "https://yt3.ggpht.com/XsTga3Nsfc1E6ZgC6HfHfzTG_3zhuZleOnsKxSK2aILMjwkkIm-0vdALFaU-yt0Lw07iLtbSifk=s48-c-k-c0x00ffffff-no-rj",
  "accountBadgeList": "[\"Verified\"]",
  "accountDisplayId": "@aljazeeraenglish",
  "accountFansCount": "18.2M",
  "accountHomeUrl": "https://www.youtube.com/@aljazeeraenglish",
  "accountId": "UCNye-wNBqNL5ZzHSJj3l8Bg",
  "accountName": "Al Jazeera English",
  "articleType": "video",
  "channelThumbnailList": "[{\"height\": 68, \"url\": \"https://yt3.ggpht.com/XsTga3Nsfc1E6ZgC6HfHfzTG_3zhuZleOnsKxSK2aILMjwkkIm-0vdALFaU-yt0Lw07iLtbSifk=s68-c-k-c0x00ffffff-no-rj\", \"width\": 68}]",
  "coCreatorInfo": "",
  "commentCount": "157",
  "commentsTurnedOff": "false",
  "contentBadgeList": "[\"New\"]",
  "contentId": "gkzgxOLgN4A",
  "contentText": "Yemen's internationally recognised government says its forces carried out more than 20 air strikes on Houthi positions on ...",
  "contentTitle": "Houthi advance on Bab-el-Mandeb tightens grip on Red Sea shipping: Report",
  "contentUrl": "https://www.youtube.com/watch?v=gkzgxOLgN4A",
  "coverImageList": "[{\"height\": 202, \"url\": \"https://i.ytimg.com/vi/gkzgxOLgN4A/hq720.jpg?sqp=-oaymwEnCOgCEMoBSFryq4qpAxkIARUAAIhCGAHYAQHiAQoIGBACGAY4AUAB&rs=AOn4CLBpa240lfms4Dl6aDdfqpM3-4Aztg\", \"width\": 360}, {\"height\": 404, \"url\": \"https://i.ytimg.com/vi/gkzgxOLgN4A/hq720.jpg?sqp=-oaymwEnCNAFEJQDSFryq4qpAxkIARUAAIhCGAHYAQHiAQoIGBACGAY4AUAB&rs=AOn4CLDQRbMx3zqh9d41dN-V9zFll48XkQ\", \"width\": 720}]",
  "descriptionLinks": "[{\"text\": \"http://bit.ly/AJSubscribe\", \"url\": \"http://bit.ly/AJSubscribe\"}, {\"text\": \"  / ajenglish  \", \"url\": \"https://twitter.com/AJEnglish\"}, {\"text\": \"  / aljazeera  \", \"url\": \"https://www.facebook.com/aljazeera\"}, {\"text\": \"http://www.aljazeera.com/\", \"url\": \"http://www.aljazeera.com/\"}, {\"text\": \"  / aljazeeraenglish  \", \"url\": \"https://www.instagram.com/aljazeeraenglish/\"}, {\"text\": \"https://aje.io/AJEMobile\", \"url\": \"https://aje.io/AJEMobile\"}, {\"text\": \"#Yemen\", \"url\": \"https://www.youtube.com/hashtag/yemen\"}, {\"text\": \"#Houthis\", \"url\": \"https://www.youtube.com/hashtag/houthis\"}, {\"text\": \"#BabElMandeb\", \"url\": \"https://www.youtube.com/hashtag/babelmandeb\"}, {\"text\": \"#RedSea\", \"url\": \"https://www.youtube.com/hashtag/redsea\"}, {\"text\": \"#SaudiArabia\", \"url\": \"https://www.youtube.com/hashtag/saudiarabia\"}, {\"text\": \"#AnsarAllah\", \"url\": \"https://www.youtube.com/hashtag/ansarallah\"}, {\"text\": \"#AlJazeeraEnglish\", \"url\": \"https://www.youtube.com/hashtag/aljazeeraenglish\"}]",
  "detailCoCreatorInfo": "",
  "detailContentText": "Yemen's internationally recognised government says its forces carried out more than 20 air strikes on Houthi positions on Saturday, part of a counteroffensive along the western coast after the group, formally known as Ansar Allah, captured several towns and islands in recent days. \n\nThe Houthis seized the port city of Mokha on Thursday, gaining a foothold on the Red Sea coast after government forces withdrew, and fighters reached the strategic Mayun Island in the Bab-el-Mandeb Strait on Friday.\n\nAl Jazeera's Youssef Mawry, reporting from Sana'a, says Saudi-backed government forces are relying on air strikes rather than ground battles because troops in the area have largely withdrawn, letting the Houthis advance further. The group has said only Saudi vessels will be blocked from the strait, with other countries free to pass.\n\nSubscribe to our channel: http://bit.ly/AJSubscribe\nFollow us on Twitter:   / ajenglish  \nFind us on Facebook:   / aljazeera  \nCheck our website: http://www.aljazeera.com/\nCheck out our Instagram page:   / aljazeeraenglish  \nDownload AJE Mobile App: https://aje.io/AJEMobile\n\n#Yemen #Houthis #BabElMandeb #RedSea #SaudiArabia #AnsarAllah #AlJazeeraEnglish",
  "hashtags": "[\"#Yemen\", \"#Houthis\", \"#BabElMandeb\", \"#RedSea\", \"#SaudiArabia\", \"#AnsarAllah\", \"#AlJazeeraEnglish\"]",
  "isCollaboration": "",
  "isVerified": "true",
  "isVerifiedArtist": "",
  "keyword": "sea",
  "likeCount": "758",
  "playCount": "114012",
  "publishTime": "2026-09-12T00:00:00",
  "rawPublishTime": "1 day ago",
  "videoDuration": "317000",
  "videoSummary": "",
  "viewCount": "114012"
}
```

## 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-search-scraper",
  "taskName": "YouTube Search Scraper",
  "parameters": "{\"crawlNum\":100,\"search_Keywords\":[\"Octoparse\",\"apple\",\"Iphone\"]}"
}
```

## Python Example

```python
import json
import requests

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

parameters = json.loads("{\"crawlNum\":100,\"search_Keywords\":[\"Octoparse\",\"apple\",\"Iphone\"]}")

response = requests.post(
    f"{OPENAPI_BASE}/api/agentTools/executeTask",
    headers={
        "Authorization": f"Bearer {ACCESS_TOKEN}",
        "Content-Type": "application/json",
    },
    json={
        "templateName": "youtube-search-scraper",
        "taskName": "YouTube Search 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-search-scraper",
  "taskName": "YouTube Search Scraper",
  "parameters": "{\"crawlNum\":100,\"search_Keywords\":[\"Octoparse\",\"apple\",\"Iphone\"]}"
}
JSON
```

## MCP Setup

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