# Scrape YouTube Shorts for a hashtag

**Use case:** 

Reads the Shorts feed of a YouTube hashtag and returns each Short with views, likes, comments, engagement rate, publish date, description, other hashtags used, sound and channel details. Good for hashtag research, trend spotting and finding creators in a niche.

## Input

```json
{
  "startUrls": [
    "https://www.youtube.com/@NASA",
    "@mkbhd",
    "https://www.youtube.com/shorts/V_uq3v6xK-4",
    "https://www.youtube.com/hashtag/latteart",
    "https://www.youtube.com/source/yOzJtIirUJw/shorts"
  ],
  "hashtags": [
    "skincare"
  ],
  "searchQueries": [
    "latte art",
    "budget travel japan"
  ],
  "maxShortsPerSource": 15,
  "maxShorts": 0,
  "minViews": 0,
  "channelSort": "newest",
  "searchSort": "relevance",
  "searchUploadDate": "any",
  "includeChannelInfo": true,
  "includeDescription": true,
  "includeTranscript": false,
  "transcriptLanguages": [
    "en"
  ],
  "transcriptSegments": false,
  "onlyNewShorts": false,
  "monitorName": "default",
  "includeErrorItems": true,
  "proxyConfiguration": {
    "useApifyProxy": true
  },
  "residentialFallback": true,
  "maxConcurrency": 10,
  "maxRetries": 5
}
```

## Output

```json
{
  "verticalThumbnailUrl": {
    "label": "Cover",
    "format": "string"
  },
  "title": {
    "label": "Title",
    "format": "string"
  },
  "channelName": {
    "label": "Channel",
    "format": "string"
  },
  "publishedAt": {
    "label": "Published",
    "format": "string"
  },
  "viewCount": {
    "label": "Views",
    "format": "integer"
  },
  "likeCount": {
    "label": "Likes",
    "format": "integer"
  },
  "commentCount": {
    "label": "Comments",
    "format": "integer"
  },
  "soundTitle": {
    "label": "Sound",
    "format": "string"
  },
  "channelSubscribers": {
    "label": "Subscribers",
    "format": "integer"
  },
  "url": {
    "label": "URL",
    "format": "string"
  }
}
```

## How it works

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

The YouTube Shorts Scraper: Channels, Hashtags, Search, Sounds Actor is ready to run with the inputs already set for "Scrape YouTube Shorts for a hashtag". [Sign up or log in](https://console.apify.com/create-task-from-example/qQnAGaaYIeDMr8JGg) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "Scrape YouTube Shorts for a hashtag" task

The YouTube Shorts Scraper: Channels, Hashtags, Search, Sounds Actor will start running based on the input automatically. You can also change all the input fields, like channels, shorts, hashtag or sound urls, hashtags, and more, to match your specific use case.

### 3. Receive the "Scrape YouTube Shorts for a hashtag" 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 cover, title, channel, 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 "Scrape YouTube Shorts for a hashtag" task via API](https://apify.com/zhtech/youtube-shorts-scraper.md).

## FAQ

### What does the YouTube Shorts by hashtag task return?

The YouTube Shorts by hashtag task returns one row per Short with title, URL, views, likes, comments, engagement rate, publish date, description, hashtags, sound title and artist, channel and subscribers.

### How do I scrape another hashtag?

Type any hashtag, with or without the # sign, into Hashtags of the YouTube Shorts by hashtag task. Add several hashtags, one per line, and raise the Max Shorts limit for more results.

### Can I run the YouTube Shorts by hashtag task on a schedule or through the API?

Save the YouTube Shorts by hashtag task to your Apify account, then add it to an Apify Schedule (for example daily) or start it from the Apify API, webhooks, Zapier, Make, n8n or the Apify MCP server for AI agents.

### How much does the YouTube Shorts by hashtag task cost?

The YouTube Shorts by hashtag task is pay per event: a small start fee per run plus a fee per Short saved. Error rows and Shorts removed by filters are free. Prices are on the Pricing tab.

## About this Actor

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