# Find Popular YouTube Videos by View Count

**Use case:** 

Discover popular YouTube videos by keyword and sort search results by view count. Collect video titles, URLs, channel information, and available view statistics for content research, competitor analysis, and video topic discovery. Start with a ready-made example, customize your search query, and export structured results as JSON or CSV. Results follow YouTube's available search ordering, not a glo

## Input

```json
{
  "channelUrls": [
    "https://www.youtube.com/@RickAstleyYT"
  ],
  "searchQueries": [
    "wireless headphones review"
  ],
  "channelTabs": [
    "VIDEOS"
  ],
  "maxVideosPerChannel": 4,
  "maxPlaylistItems": 100,
  "maxResultsPerSearchQuery": 10,
  "videoDetails": false,
  "searchSort": "VIEW_COUNT",
  "searchUploadDate": "ANY",
  "searchDuration": "ANY",
  "keepUnknownDates": true,
  "resultsLimit": 10,
  "outputFormat": "FULL",
  "writeCsv": false,
  "saveDiagnostics": false,
  "maxTotalRequests": 20,
  "maxConcurrency": 1,
  "minDelayMs": 250,
  "maxDelayMs": 650,
  "proxyStrategy": "NONE"
}
```

## Output

```json
{
  "recordType": {
    "label": "Record type",
    "format": "string"
  },
  "title": {
    "label": "Title",
    "format": "string"
  },
  "canonicalUrl": {
    "label": "Canonical URL",
    "format": "string"
  },
  "publishedAt.isoEstimate": {
    "label": "Published (may be estimated)",
    "format": "date"
  },
  "publishedAt.precision": {
    "label": "Date precision",
    "format": "text"
  },
  "viewCount.value": {
    "label": "Views observed",
    "format": "number"
  },
  "viewCount.approximate": {
    "label": "Views approximate",
    "format": "boolean"
  },
  "likeCount.value": {
    "label": "Likes observed",
    "format": "number"
  },
  "commentCount.value": {
    "label": "Comments observed",
    "format": "number"
  },
  "state": {
    "label": "Acquisition state",
    "format": "string"
  }
}
```

## How it works

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

The YouTube Scraper - Videos, Shorts & Channels Actor is ready to run with the inputs already set for "Find Popular YouTube Videos by View Count". [Sign up or log in](https://console.apify.com/create-task-from-example/b0wcTJoDlbaDivDEF) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "Find Popular YouTube Videos by View Count" task

The YouTube Scraper - Videos, Shorts & Channels Actor will start running based on the input automatically. You can also change all the input fields, like youtube channel links or handles, youtube search queries, and more, to match your specific use case.

### 3. Receive the "Find Popular YouTube Videos by View Count" 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 record type, title, canonical url, 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 "Find Popular YouTube Videos by View Count" task via API](https://apify.com/overbifrost/youtube-scraper.md).

## FAQ

### How can I find the most viewed YouTube videos for a keyword?

Enter a keyword or topic and select the view-count sorting option. The scraper requests YouTube search results ordered by views where supported, then collects available video metadata. Results reflect YouTube's search ordering and should not be treat

### Can I extract YouTube video view counts?

Yes. The scraper collects available public view counts alongside video titles, URLs, channel information, and other metadata. Some counts may be approximate or unavailable depending on the source. Missing values are not treated as zero.

### Can I use this scraper to research popular YouTube content?

Yes. Search for relevant topics, products, or niches to examine videos surfaced by YouTube's view-count sorting. Export the results to JSON or CSV for content research, competitor comparisons, and further analysis. The scraper does not automatically

## About this Actor

This example demonstrates how to use [YouTube Scraper - Videos, Shorts & Channels](https://apify.com/overbifrost/youtube-scraper.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/overbifrost/youtube-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/overbifrost/youtube-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`).
