# YouTube Shorts Scraper (`rowfinch/youtube-shorts-scraper`) Actor

Scrape YouTube Shorts from channels, searches, hashtags and links: exact views, likes and comments, the day each was posted, description, hashtags and the channel's subscribers. No login. From $1.70 per 1,000 Shorts.

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

## Pricing

from $1.70 / 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

## YouTube Shorts Scraper

Get YouTube Shorts from channels, searches, hashtags and links: exact views, likes and comments, the day each was posted, the description with its hashtags and links, and the channel's subscribers. No login or API key.

**$2.20 per 1,000 Shorts on Apify's Starter plan, less on bigger plans.**

### What it's for

- **Trend research**: the most viewed Shorts for a search or a hashtag, this week or this month.
- **Competitor tracking**: a channel's Shorts of the last week, on a weekly schedule with `oldestPostDate` set to `7 days`.
- **Creator lists**: the channels behind a niche's Shorts, with their subscribers.
- **Content ideas**: titles, hashtags and view counts of what works in a niche.
- **AI agents and pipelines**: clean JSON, one row per Short, with the field names of streamers/youtube-shorts-scraper, so saved inputs carry over.

### Input

| Field | What it does |
|---|---|
| `channels` | Names like `MrBeast`, `@handles` or channel links |
| `searchQueries` | Searches, as you'd type them on YouTube; only Shorts come back |
| `hashtags` | Like `cooking` or `#cooking` |
| `startUrls` | Shorts, channels, hashtag pages or search result pages |
| `maxResultsShorts` | Shorts per channel, search or hashtag (default 20) |
| `sortChannelShortsBy` | Channels: `NEWEST` (default), `POPULAR` or `OLDEST` |
| `sortingOrder` | Searches: `relevance` (default) or `views` |
| `dateFilter` | Searches: `hour`, `today`, `week`, `month` or `year` |
| `oldestPostDate` | Leaves out older Shorts: a date like `2026-10-01` or a period like `7 days` |

```json
{
  "channels": ["MrBeast"],
  "searchQueries": ["pasta recipe"],
  "hashtags": ["fitness"],
  "maxResultsShorts": 100
}
```

### Output

One row per Short:

```json
{
  "title": "Pasta | Pasta recipe | How to make pasta 🍝🍝😋",
  "id": "OAZpSsu03VA",
  "url": "https://www.youtube.com/shorts/OAZpSsu03VA",
  "type": "shorts",
  "viewCount": 54089013,
  "likes": null,
  "commentsCount": 1700,
  "date": "2025-06-05",
  "text": "pasta | Pasta recipe | How to make pasta #recipe #pasta #homemade \n\nhomemade pasta recipe \npasta recipe at home \nenjoy the delicious pasta recipe 😋😋😋",
  "descriptionLinks": [],
  "hashtags": ["#pasta", "#recipe", "#homemade"],
  "thumbnailUrl": "https://i.ytimg.com/vi/OAZpSsu03VA/oardefault.jpg?sqp=-oaymwEoCJUDENAFSFqQAgHyq4qpAxcIARUAAIhC2AEB4gEKCBgQAhgGOAFAAQ==&rs=AOn4CLCZRlNwQQ3aDpvsww1BnuADsuhTTg",
  "channelName": "CookTube Official",
  "channelUrl": "https://www.youtube.com/@CookTubeOfficial",
  "channelUsername": "CookTubeOfficial",
  "channelId": "UCYV_1Fj1CfezyRDTPpzkyVQ",
  "numberOfSubscribers": 132000,
  "isChannelVerified": false,
  "collaborators": [],
  "commentsTurnedOff": false,
  "isMembersOnly": false,
  "order": 6,
  "fromYTUrl": "https://www.youtube.com/results?search_query=pasta%20recipe&sp=EgIQCQ%3D%3D",
  "input": "pasta recipe"
}
```

`order` is the Short's place in its channel, search or hashtag, and `input` is what you typed. A channel's Shorts also carry the channel itself:

```json
{
  "channelDescription": "SUBSCRIBE FOR A COOKIE!\nNew MrBeast or MrBeast Gaming video every single Saturday at noon eastern time!…",
  "channelLocation": "United States",
  "channelJoinedDate": "2012-02-19",
  "channelTotalViews": 146386719125,
  "channelTotalVideos": 1012,
  "channelAvatarUrl": "https://yt3.googleusercontent.com/nxYrc_1_2f77DoBadyxMTmv7ZpRZapHR5jbuYe7PlPd5cIRJxtNNEYyOC0ZsxaDyJJzXrnJiuDE=s160-c-k-c0x00ffffff-no-rj"
}
```

Channels, searches and hashtags that can't be read get a row with the reason, free of charge:

```json
{ "input": "not a channel", "error": "Not a YouTube channel" }
```

### Price

Per 1,000 Shorts, by your Apify plan:

| Free | Starter | Scale | Business |
|---|---|---|---|
| $3.00 | $2.20 | $1.90 | $1.70 |

| Run, on Starter | Cost |
|---|---|
| A channel's 100 latest Shorts | $0.22 |
| The 100 most viewed Shorts of a search this month | $0.22 |
| 100 Shorts each of 8 channels, searches and hashtags | $1.76 |

A run stops at the maximum cost you set for it. On Apify's free plan, a run returns up to 100 results.

### FAQ

**Do I need a YouTube account or an API key?**
No.

**Why is `likes` empty on some Shorts?**
Their creators hide the like count. In a test of 800 Shorts, 67 had it hidden.

**How do I get only new Shorts?**
Set `oldestPostDate` to a date or a period like `7 days`. A channel is then read newest first and ends at its first older Short, so only Shorts of that period are charged.

**Can I sort a search by upload date?**
YouTube no longer offers that sort. Set `dateFilter` to `today` or `week` to keep only recent Shorts, and `sortingOrder` to `views` for the most watched ones first.

**How fast is it?**
800 Shorts from 8 channels, searches and hashtags took 30 seconds.

# Actor input Schema

## `channels` (type: `array`):

Names like MrBeast, @handles or channel links. Reads the channel's Shorts tab.

## `searchQueries` (type: `array`):

As you'd type them on YouTube; only Shorts come back.

## `hashtags` (type: `array`):

Like cooking or #cooking. Reads the hashtag's Shorts page.

## `startUrls` (type: `array`):

Shorts, channels, hashtag pages or search result pages.

## `maxResultsShorts` (type: `integer`):

3 channels at 20 each give up to 60 Shorts.

## `sortChannelShortsBy` (type: `string`):

As the buttons on the channel's Shorts tab.

## `sortingOrder` (type: `string`):

YouTube no longer sorts by upload date: Upload date below keeps recent Shorts only.

## `dateFilter` (type: `string`):

As YouTube's search filter.

## `oldestPostDate` (type: `string`):

Leaves out older Shorts, everywhere. A period like 7 days counts back from today, for scheduled runs.

## Actor input object example

```json
{
  "channels": [
    "MrBeast"
  ],
  "maxResultsShorts": 20,
  "sortChannelShortsBy": "NEWEST"
}
```

# Actor output Schema

## `shorts` (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 = {
    "channels": [
        "MrBeast"
    ],
    "maxResultsShorts": 20
};

// Run the Actor and wait for it to finish
const run = await client.actor("rowfinch/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 = {
    "channels": ["MrBeast"],
    "maxResultsShorts": 20,
}

# Run the Actor and wait for it to finish
run = client.actor("rowfinch/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 '{
  "channels": [
    "MrBeast"
  ],
  "maxResultsShorts": 20
}' |
apify call rowfinch/youtube-shorts-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,rowfinch/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/CvTgeDwfI4Sl1yW2m/builds/2FF1ig8lfsIzf8VLg/openapi.json
