# YouTube Shorts Scraper: Sounds, Comments & Hashtags (`paul_studio/youtube-shorts-scraper`) Actor

YouTube Shorts from channels, keyword searches, hashtags and playlists: views, likes, exact comment count, the sound used, publish date and channel subscribers. Regular videos skipped free.

- **URL**: https://apify.com/paul_studio/youtube-shorts-scraper.md
- **Developed by:** [Paul Yu](https://apify.com/paul_studio) (community)
- **Categories:** Videos, Social media, AI
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.00 / 1,000 shorts

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

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 examples already wired to this Actor's own input schema, see the [API](#api) section below.

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`).

# README

### What does YouTube Shorts Scraper do?

It collects YouTube Shorts in bulk from channels, keyword searches, hashtags and playlists: views, likes, the exact comment count, the sound used, the publish date and the channel with its subscriber count. Regular videos that turn up in a hashtag or playlist are skipped and not charged.

- **Search Shorts by keyword.** Not only channels: type a topic and get the Shorts YouTube ranks for it, by relevance or newest first, in the language you choose.
- **The sound behind each Short.** `sound` names the song or audio used, and `soundIsOriginal` tells you whether it is the creator's own, so you can see which sounds are spreading in a niche.
- **Exact comment count.** As the Shorts player shows it, not rounded.
- **Free filters.** Date range, minimum views. Shorts outside them are not charged, and neither are regular videos.
- **Spot what is working.** Each Short gets views per day and likes per 100 views; the results page marks breakouts against the channel's median and has a channel table.
- **Follow a channel or a trend.** *Only new Shorts* on a schedule returns, and charges for, only Shorts you have not received before.
- **Transcripts when you need them.** What is said in each Short, as an option.

**Price:** $0.003 per Short on the Free plan ($0.002 on Gold), or $0.005 for a Short with its transcript ($0.0035 on Gold). $1 ≈ 333 Shorts on the Free plan, up to 500 on Gold. Each run also has a start fee of $0.001 ($0.0007 on Gold), so a scheduled run that finds nothing new costs a tenth of a cent. To cap spending, set Maximum cost per run in Run options; the run never goes over it. The cost limit always uses your own plan's price. When the limit cannot cover a Short with its transcript, the Short is saved at the plain price instead.

![Results page: Shorts sorted by views, sound and comments shown, channel table](https://raw.githubusercontent.com/daupaul/apify-actor-assets/main/youtube-shorts/hero.png)

### What you get for each Short

| Short | Channel | Optional |
|---|---|---|
| Title, link, thumbnail | Name, link, ID | Transcript |
| Views, likes, exact comment count | Subscribers | Timed segments, SRT, WebVTT |
| Sound used, original or not | | |
| Published date, length | | |
| Hashtags, tags, description | | |
| Views per day, likes per 100 views | | |

A Short that is private or removed, and a channel that does not exist, get a row with the reason, free of charge.

After each run, the **Results page** in the Output tab shows the Shorts as cards you can sort by views, likes, date or breakout, filter by channel, in light or dark mode, with a CSV download.

### How to use it

1. Paste channels, search words, `#hashtags`, playlists or Shorts links, one per line.
2. Set **Shorts per channel, search, hashtag or playlist**. End a line with `| 50` to take 50 from that line.
3. Optionally set a date range or minimum views.
4. Click **Start**. Ten Shorts take about fifteen seconds.

To follow a channel or a topic, turn on **Only new Shorts**, give the monitor a name and add a [schedule](https://docs.apify.com/platform/schedules).

### Input example

```json
{
  "sources": ["@mkbhd", "latte art | 30", "#asmr"],
  "maxVideos": 10,
  "publishedAfter": "30 days",
  "minViews": 10000
}
```

### Output example

```json
{
  "videoId": "up0f6J_JlvQ",
  "url": "https://www.youtube.com/shorts/up0f6J_JlvQ",
  "title": "12-Second Latte Art Tutorial: Level 1 vs. Level 99 | Original Content by Mr.24 #latteart #latte",
  "isShort": true,
  "durationSeconds": 12,
  "views": 203377528,
  "likes": 2592485,
  "commentCount": 4072,
  "sound": "FUNK UNIVERSO (Slowed)",
  "soundIsOriginal": false,
  "hashtags": ["latteart", "latte"],
  "source": "latte art",
  "status": "ok"
}
```

### Use cases

- **Trend and sound research:** which sounds and formats are working in a niche right now.
- **Creator and competitor tracking:** follow channels' Shorts on a schedule, with views per day to see what took off.
- **Influencer discovery:** search a topic, sort by views, and look at the channels behind the top Shorts.
- **Content and AI datasets:** titles, hashtags and transcripts of Shorts for your own analysis.

### FAQ

#### Why is `commentCount` sometimes empty?

The Shorts player shows an exact number for most Shorts, but on some, usually those with few comments, it shows only "View comments". The field is then left empty rather than guessed.

#### What if a hashtag or playlist contains regular videos?

They are skipped, not charged, and counted in the run summary. A link to a single regular video is still saved, because you asked for it.

#### How exact are the numbers?

Views, likes and the comment count are exact as YouTube gives them; channel subscribers are rounded by YouTube (8.76M).

#### How many Shorts can a search return?

YouTube offers a few hundred Shorts per search. For more, use several related searches or hashtags; duplicates across lines are saved once.

#### What happens when YouTube blocks a request?

Each request is retried from new IP addresses, and the run switches to residential IPs when your plan includes them. Shorts that still cannot be read get a free row that says so.

#### Is it legal to scrape YouTube Shorts?

The Actor reads what YouTube shows publicly to any viewer, without signing in. Make sure your use complies with privacy law such as the GDPR, and with YouTube's terms.

### Use it from AI assistants and code

Works as a tool in Claude, ChatGPT, Cursor and other assistants through the [Apify MCP server](https://mcp.apify.com/). Add `https://mcp.apify.com?tools=paul_studio/youtube-shorts-scraper` to your MCP client and ask, for example: "Find the 30 most viewed latte art Shorts from the last month and list the sounds they use."

```python
from apify_client import ApifyClient

client = ApifyClient("<YOUR_API_TOKEN>")
run = client.actor("paul_studio/youtube-shorts-scraper").call(run_input={
    "sources": ["latte art | 30"], "publishedAfter": "30 days",
})
for s in client.dataset(run["defaultDatasetId"]).iterate_items():
    if s["status"] == "ok":
        print(s["views"], s["sound"], s["title"][:60])
```

### Pricing

You pay once per Short saved, with no extra charge for filters. With transcripts on, Shorts that have one are charged as "Short with transcript" instead. Regular videos skipped, Shorts outside your filters, duplicates and Shorts already delivered to a monitor are free. Proxies are included. Set a maximum cost per run in the run options and the Actor never goes over it.

### Feedback

Something missing or wrong? Open an issue on the **Issues** tab with the link.

# Actor input Schema

## `sources` (type: `array`):

One per line: a channel (@handle or link; its Shorts tab is read), words to search Shorts for, a #hashtag, a playlist or a Shorts link. End a line with | 50 to take 50 Shorts from that line.

## `maxVideos` (type: `integer`):

Newest first for channels. Links to single Shorts are always included. A "| number" at the end of a line overrides this.

## `publishedAfter` (type: `string`):

A date, or a period such as 30 days.

## `publishedBefore` (type: `string`):

Together with "Published after", a date range.

## `minViews` (type: `integer`):

e.g. 10000.

## `searchLanguage` (type: `string`):

For searches: the language YouTube ranks results for, e.g. Japanese to find Japanese Shorts. Also: ms (Malay), vi (Vietnamese), th (Thai), fil (Filipino), ja (Japanese), ko (Korean), zh-Hans (Chinese (Simplified)), zh-Hant (Chinese (Traditional)), sv (Swedish), no (Norwegian), da (Danish), fi (Finnish), cs (Czech), el (Greek), ro (Romanian), hu (Hungarian).

## `searchOrder` (type: `string`):

Newest first is useful for keeping track of a topic.

## `includeTranscript` (type: `boolean`):

Adds what is said in each Short that has captions. Such Shorts are charged as "Short with transcript" instead of "Short" (see Pricing); Shorts without captions stay at the Short price.

## `language` (type: `string`):

Original language needs no setup. Pick a language to get captions in it where they exist. Also: ms (Malay), vi (Vietnamese), th (Thai), fil (Filipino), ja (Japanese), ko (Korean), zh-Hans (Chinese (Simplified)), zh-Hant (Chinese (Traditional)), sv (Swedish), no (Norwegian), da (Danish), fi (Finnish), cs (Czech), el (Greek), ro (Romanian), hu (Hungarian).

## `fallbackToOriginal` (type: `boolean`):

Off: such Shorts are saved without a transcript, at the Short price.

## `creatorCaptionsOnly` (type: `boolean`):

Skip auto-generated captions. More accurate, but most Shorts have none.

## `outputs` (type: `array`):

The plain transcript is always included. Add the formats you need.

## `chunkWords` (type: `integer`):

For chunks for AI tools.

## `onlyNewVideos` (type: `boolean`):

Each run checks the newest Shorts (the number above) and returns and charges only those this monitor has not delivered.

## `monitorName` (type: `string`):

Give each schedule its own name, e.g. "trend-latte-art". Use a new name to start over. Runs with the same name share one history, also across Tasks.

## Actor input object example

```json
{
  "sources": [
    "@mkbhd",
    "latte art",
    "#asmr"
  ],
  "maxVideos": 10,
  "searchLanguage": "any",
  "searchOrder": "relevance",
  "includeTranscript": false,
  "language": "original",
  "fallbackToOriginal": true,
  "creatorCaptionsOnly": false,
  "outputs": [
    "readable"
  ],
  "chunkWords": 300,
  "onlyNewVideos": false,
  "monitorName": "default"
}
```

# Actor output Schema

## `results` (type: `string`):

No description

## `videos` (type: `string`):

No description

## `report` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "sources": [
        "@mkbhd",
        "latte art",
        "#asmr"
    ],
    "maxVideos": 10,
    "searchLanguage": "any",
    "searchOrder": "relevance",
    "language": "original",
    "outputs": [
        "readable"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("paul_studio/youtube-shorts-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "sources": [
        "@mkbhd",
        "latte art",
        "#asmr",
    ],
    "maxVideos": 10,
    "searchLanguage": "any",
    "searchOrder": "relevance",
    "language": "original",
    "outputs": ["readable"],
}

# Run the Actor and wait for it to finish
run = client.actor("paul_studio/youtube-shorts-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "sources": [
    "@mkbhd",
    "latte art",
    "#asmr"
  ],
  "maxVideos": 10,
  "searchLanguage": "any",
  "searchOrder": "relevance",
  "language": "original",
  "outputs": [
    "readable"
  ]
}' |
apify call paul_studio/youtube-shorts-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,paul_studio/youtube-shorts-scraper"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/86ylojFalwPgoJdJ6/builds/INRDBEVcJx5fQaKhd/openapi.json
