# Find popular videos about a niche topic

**Use case:** 

Effortlessly gather structured YouTube search results for the term 'Automation'. This task provides detailed metadata for videos, channels, playlists, and more, enabling in-depth content analysis without needing your own API key. Perfect for research and trend monitoring, receive data in multiple formats including JSON, CSV, and Excel.

## Input

```json
{
  "query": "Automation",
  "type": "video",
  "videoDepthDetails": "basic",
  "maxResults": 100,
  "scrapeAllResults": false,
  "sortBy": "relevance",
  "features": {
    "360": false,
    "HD": false,
    "subtitles": false,
    "CCommons": false,
    "3D": false,
    "Live": false,
    "Purchased": false,
    "4K": false,
    "Location": false,
    "HDR": false,
    "VR180": false
  },
  "local": false
}
```

## Output

```json
{
  "videoId": {
    "label": "Video ID",
    "format": "text"
  },
  "id": {
    "label": "ID",
    "format": "text"
  },
  "title": {
    "label": "Title",
    "format": "text"
  },
  "description": {
    "label": "Description",
    "format": "text"
  },
  "type": {
    "label": "Type",
    "format": "text"
  },
  "viewCount": {
    "label": "Views",
    "format": "text"
  },
  "likeCount": {
    "label": "Likes",
    "format": "number"
  },
  "duration": {
    "label": "Duration",
    "format": "text"
  },
  "url": {
    "label": "URL",
    "format": "link"
  },
  "thumbnail.0.url": {
    "label": "Thumbnail",
    "format": "image"
  },
  "date": {
    "label": "Date",
    "format": "date"
  },
  "publishedTimeText": {
    "label": "Published Text",
    "format": "text"
  },
  "publishDate": {
    "label": "Publish Date",
    "format": "date"
  },
  "publishedAt": {
    "label": "Published At",
    "format": "date"
  },
  "channelName": {
    "label": "Channel Name",
    "format": "text"
  },
  "channelUrl": {
    "label": "Channel URL",
    "format": "link"
  },
  "channelHandle": {
    "label": "Channel Handle",
    "format": "text"
  },
  "channelThumbnail.0.url": {
    "label": "Channel Thumbnail",
    "format": "image"
  },
  "channelId": {
    "label": "Channel ID",
    "format": "text"
  },
  "channelTitle": {
    "label": "Channel Title",
    "format": "text"
  },
  "subscriberCount": {
    "label": "Subscribers",
    "format": "number"
  },
  "subscriberCountText": {
    "label": "Subscribers Text",
    "format": "text"
  },
  "channelBadges": {
    "label": "Channel Badges",
    "format": "array"
  },
  "commentCount": {
    "label": "Comments",
    "format": "number"
  },
  "commentCountText": {
    "label": "Comments Text",
    "format": "text"
  },
  "keywords": {
    "label": "Keywords",
    "format": "array"
  },
  "lengthSeconds": {
    "label": "Length (seconds)",
    "format": "number"
  },
  "macroMarkers": {
    "label": "Key Moments",
    "format": "object"
  },
  "chapters": {
    "label": "Chapters",
    "format": "object"
  },
  "relatedVideos": {
    "label": "Related Videos",
    "format": "object"
  },
  "merchandise": {
    "label": "Merchandise",
    "format": "object"
  },
  "extraMeta": {
    "label": "Extra Metadata",
    "format": "object"
  },
  "videoAttribution": {
    "label": "Video Attribution",
    "format": "object"
  }
}
```

## About this Actor

This example demonstrates how to use [YouTube Search Scraper ($0.25/1000 results)](https://apify.com/api-ninja/youtube-search-scraper.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/api-ninja/youtube-search-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-ninja/youtube-search-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`).
