# YouTube Shorts Scraper - Views, Likes, Comments, $0.40/1K (`sweet_stickball/youtube-shorts-scraper`) Actor

YouTube Shorts scraper: extract the Shorts of any channel with exact view count, likes, publish date, duration, title, category and thumbnail. Latest, most popular or oldest first; several channels per run. Creator and trend research, flat JSON, no login or YouTube API key.

- **URL**: https://apify.com/sweet_stickball/youtube-shorts-scraper.md
- **Developed by:** [CrawlKit](https://apify.com/sweet_stickball) (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 $0.24 / 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 - Views, Likes, Comments, $0.40/1K

List the Shorts of one or more YouTube channels. Each Short comes as one flat JSON row with its URL, title, exact view count, like count, comment count, engagement rate, publish date, duration, thumbnail and channel. Give a handle such as `@MrBeast`, a channel URL or a channel id.

### What it does

- Takes YouTube channels in any common form: `@MrBeast`, `MrBeast`, `https://www.youtube.com/@MrBeast`, `https://www.youtube.com/@MrBeast/shorts`, `https://www.youtube.com/channel/UC...`, a bare channel id `UC...`, or legacy `/c/...` and `/user/...` URLs.
- Reads the channel's **Shorts** tab in the order you choose: latest, popular (most viewed first) or oldest, like on YouTube.
- Follows YouTube's pagination (48 Shorts per page) until `maxItems` Shorts per channel or the end of the tab.
- With `includeDetails` (on by default), reads each Short's own data to add the **exact** view count, the like count, the comment count, the engagement rate, the publish date and time (UTC), the duration in seconds, the description and the category.
- Optional date filter (`publishedAfter`): only Shorts published on or after a day, absolute (`2026-10-01`) or relative (`30 days`).
- Removes duplicates: a Short is returned once per run, and a channel given twice (for example as a handle and as an id) is scraped once.
- Ends with an explicit error message when no Short could be returned (channel not found, channel without Shorts, invalid input, YouTube not answering), instead of an empty successful run.
- Uses YouTube's public web API (the one the mobile site calls). No login, no API key, no browser.

### Input

| Parameter | Type | Required | Default | Description |
|-----------|------|----------|---------|-------------|
| `channels` | array of strings | Yes | — | Channel handles (`@MrBeast`), channel URLs or channel ids (`UC...`), one per line |
| `maxItems` | integer | No | 20 | Maximum Shorts **per channel** (1 to 10,000) |
| `sortBy` | string | No | `latest` | `latest`, `popular` (most viewed first) or `oldest` |
| `includeDetails` | boolean | No | `true` | Add exact views, likes, comment count, engagement rate, publish date, duration, description and category (two extra requests per Short). If `false`, `viewCount` is the rounded figure shown on the tab (52M) and those fields are `null` |
| `publishedAfter` | string | No | — | Keep only Shorts published on or after this day: `YYYY-MM-DD` or a period such as `7 days`, `2 weeks`, `6 months`. Details are then always fetched (the date comes from them). With `latest` sort, a channel is read until its first older Short; with `popular` or `oldest`, at most max(200, 5 x `maxItems`) Shorts are examined per channel. Shorts whose date could not be read are kept |

Example:

```json
{
    "channels": ["@MrBeast", "https://www.youtube.com/@TED"],
    "maxItems": 100,
    "sortBy": "popular"
}
```

### Output

One dataset row per Short. Real example (MrBeast, latest Shorts, run of 14 November 2026):

```json
{
    "videoId": "41UzbuW6wJs",
    "url": "https://www.youtube.com/shorts/41UzbuW6wJs",
    "title": "Can A Robot Do My Chores?",
    "position": 3,
    "viewCount": 79338421,
    "viewCountText": "79M views",
    "isViewCountExact": true,
    "likeCount": 1181850,
    "publishedAt": "2026-10-30T17:00:04+00:00",
    "durationSeconds": 32,
    "description": null,
    "category": "Entertainment",
    "commentCount": 18000,
    "engagementRate": 0.0151,
    "thumbnailUrl": "https://i.ytimg.com/vi/41UzbuW6wJs/sardefault.jpg",
    "channelId": "UCX6OQ3DkcsbYNE6H8uQQuVA",
    "channelName": "MrBeast",
    "channelHandle": "@MrBeast",
    "channelUrl": "https://www.youtube.com/@MrBeast",
    "channelSubscriberCount": 525000000,
    "channelInput": "@MrBeast",
    "scrapedAt": "2026-11-14T21:40:12+00:00"
}
```

| Field | Notes |
|-------|-------|
| `viewCount` | Exact when `isViewCountExact` is `true`; otherwise the rounded figure of the Shorts tab (`52M views` gives 52000000) |
| `viewCountText` | View count as displayed on the Shorts tab |
| `likeCount` | Exact like count; `null` if the channel hides likes or details were not fetched |
| `publishedAt` | Publish date and time in UTC; a date only (`2026-10-30`) for the few Shorts read through the fallback described in Limitations |
| `durationSeconds` | Duration in seconds; `null` for Shorts read through the fallback |
| `commentCount` | Comment count as displayed by YouTube on the watch page: exact below 1,000, rounded above (`18K` gives 18000); `null` if comments are off, the count could not be read or details were not fetched |
| `engagementRate` | `(likeCount + commentCount) / viewCount`, 4 decimals; `null` when one of the three counts is unknown |
| `description`, `category` | `null` when empty or not fetched |
| `position` | Rank of the Short in the channel's Shorts tab for the chosen sort (1 = first) |
| `channelSubscriberCount` | Rounded by YouTube (`525M` gives 525000000) |
| `channelInput` | The channel as written in the input, to match rows to inputs |

The default dataset view (`shorts`) shows position, URL, title, views, likes, comments, publish date, duration, channel and thumbnail.

### Pricing

Pay-per-event, no start fee: **$0.40 per 1,000 shorts** (event `SHORT`) on the Apify Free plan, lower on paid plans. You only pay for results pushed to the dataset.

| Apify plan | Price per 1,000 shorts |
|---|---|
| Free | $0.40 |
| Starter | $0.34 |
| Scale | $0.30 |
| Business | $0.24 |

Set a maximum cost per run in the run options: the Actor stops cleanly when it is reached.

### Limitations

- Only public Shorts listed on the channel's Shorts tab are returned. Private, unlisted and removed Shorts are not, and a channel without a Shorts tab gives no row (reported in the run's status message).
- The order and the content of the tab are YouTube's. In one run out of five on 2 November 2026, YouTube served a Shorts tab that did not yet list the channel's two newest Shorts (published 3 and 10 days earlier); running again returned them.
- Exact counts, likes, publish time and duration come from each Short's player data. YouTube refuses that data to some server IP addresses; the Actor then tries other IP addresses, and if that fails it reads the Short's watch page, which gives the exact view count, the like count and the publish **date** but no duration, description or category. In tests on 2 November 2026, 5 Shorts out of 430 went through this fallback.
- `channelSubscriberCount` is rounded by YouTube. Subscriber and view counts change constantly: two runs a few minutes apart give slightly different numbers.
- Titles and texts are returned in the language set by the channel; the Actor asks YouTube for English (`hl=en`) and the United States (`gl=US`) so that number formats can be parsed.
- Comment texts, transcripts and audio are not included (only the comment count).
- Input is channels only: for Shorts by keyword or hashtag, use the YouTube Search Scraper with its Shorts filter.

### Feedback

Found a bug or need a field? Open an issue on the Issues tab; if the Actor helps you, a review on the Reviews tab helps others find it.

### Related Actors

- [YouTube Search Scraper - Views & Strict Date Filter, $0.09/1K](https://apify.com/sweet_stickball/youtube-search-scraper) — Scrape YouTube search results: video title, channel, views, duration, publish date. YouTube search API alternative, no API key, no login.
- [YouTube Channel Scraper - Videos, Shorts & Stats, $0.91/1K](https://apify.com/sweet_stickball/youtube-channel-scraper) — YouTube channel scraper and YouTube Data API alternative: list a channel's videos, Shorts or live streams with exact view counts, duration and publish date, plus subscribers, video count, total views and country.
- [YouTube Comments Scraper - Replies, Likes, Dates, $0.36/1K](https://apify.com/sweet_stickball/youtube-comments-scraper) — YouTube comments scraper and API alternative: extract comments and replies from YouTube videos and Shorts with text, like and reply counts, pinned and hearted flags and date.

# Actor input Schema

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

YouTube channels whose Shorts to list, one per line. Accepted forms: handle (@MrBeast or MrBeast), channel URL (https://www.youtube.com/@MrBeast, https://www.youtube.com/channel/UCX6OQ3DkcsbYNE6H8uQQuVA, /c/... or /user/... URLs) or channel id (UC...). Tab suffixes such as /shorts are ignored. Duplicates are removed.

## `maxItems` (type: `integer`):

Maximum number of Shorts returned for EACH channel (one dataset row and one SHORT event per Short). The Shorts tab is read in pages of 48 until this number or the end of the tab is reached.

## `sortBy` (type: `string`):

Order of the Shorts tab, as on YouTube: 'latest' (newest first), 'popular' (most viewed first) or 'oldest' (oldest first).

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

Optional: keep only Shorts published on or after this day. Absolute date (YYYY-MM-DD) or relative period such as '7 days', '2 weeks', '6 months'. The publish date comes from the details request, which is then always made. With 'latest' sort the channel is read until the first older Short; with other sorts at most max(200, 5 x maxItems) Shorts are examined per channel. Shorts whose date could not be read are kept. Leave empty for no filter.

## `includeDetails` (type: `boolean`):

If enabled (default), one extra request per Short adds the exact view count, like count, publish date (publishedAt), duration, description and category. If disabled, only the Shorts tab is read: faster, but viewCount is rounded by YouTube (52M) and those fields are null.

## Actor input object example

```json
{
  "channels": [
    "@MrBeast",
    "https://www.youtube.com/@TED",
    "UCX6OQ3DkcsbYNE6H8uQQuVA"
  ],
  "maxItems": 10,
  "sortBy": "latest",
  "publishedAfter": "2026-10-01",
  "includeDetails": true
}
```

# Actor output Schema

## `shorts` (type: `string`):

One row per Short, shown with the 'shorts' view.

# 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"
    ],
    "maxItems": 10
};

// Run the Actor and wait for it to finish
const run = await client.actor("sweet_stickball/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"],
    "maxItems": 10,
}

# Run the Actor and wait for it to finish
run = client.actor("sweet_stickball/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"
  ],
  "maxItems": 10
}' |
apify call sweet_stickball/youtube-shorts-scraper --silent --output-dataset

```

## MCP server setup

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