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

Extract Shorts from YouTube channels with exact view counts, ISO timestamps, and 37 fields per Short.

- **URL**: https://apify.com/happy\_b/youtube-shorts-scraper.md
- **Developed by:** [Happy B](https://apify.com/happy_b) (community)
- **Categories:** Social media, Videos
- **Stats:** 3 total users, 2 monthly users, 85.7% runs succeeded, 2 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per usage

This Actor is paid per platform usage. The Actor is free to use, and you only pay for the Apify platform usage, which gets cheaper the higher subscription plan you have.

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

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).


# README

### What is YouTube Shorts Scraper?

YouTube Shorts Scraper extracts complete Shorts data from any public YouTube channel with **exact numbers, ISO 8601 timestamps, and 37 fields per short** — ready for spreadsheets, dashboards, and analysis pipelines.

Every number is an exact integer. Every date is ISO 8601. No "1.2M" guesses, no "10 months ago" approximations.

#### Data points extracted per short

| Field | Description | Example |
|-------|-------------|---------|
| `videoId` | YouTube video ID | `dQw4w9WgXcQ` |
| `title` | Short title | `Wait for it... #shorts` |
| `publishedAt` | ISO 8601 upload timestamp | `2026-03-15T14:30:00Z` |
| `viewCount` | Exact view count | `12500000` |
| `likeCount` | Exact like count | `890000` |
| `commentCount` | Exact comment count | `15420` |
| `duration` | ISO 8601 duration | `PT45S` |
| `durationSeconds` | Duration in seconds | `45` |
| `tags` | Video tags | `shorts,funny,viral` |
| `categoryId` | YouTube category ID | `24` |
| `categoryName` | Human-readable category | `Entertainment` |
| `definition` | Video quality | `hd` |
| `type` | Video type | `shorts` |
| `channelName` | Channel display name | `MrBeast` |
| `channelSubscriberCount` | Exact subscriber count | `464000000` |
| `channelIsVerified` | Verification badge | `true` |


**37 fields per short. Every number exact. Every date ISO 8601.**

### Why use this scraper?

#### Our Actor vs Top YouTube Shorts Actors

| Field | Us | Streamers |
|-------|:--:|:---------:|
| `publishedAt` ISO 8601 exact | ✅ | ❌ relative |
| `likeCount` exact integer | ✅ | ❌ |
| `commentCount` exact integer | ✅ | ❌ |
| `subscriberCount` exact integer | ✅ | ❌ abbreviated |
| `tags` | ✅ | ❌ |
| `categoryId` | ✅ | ❌ |
| `topicDetails` | ✅ | ❌ |
| `definition` (HD/SD) | ✅ | ❌ |
| `hasCaptions` | ✅ | ❌ |
| `isAgeRestricted` | ✅ | ❌ |
| `durationSeconds` integer | ✅ | ❌ |
| Bulk channels | ✅ | ✅ |
| Date filter | ✅ | ✅ |
| Price per 1,000 | **$0.50** | **$4.00** |

- **One row, full picture** — 37 fields per short, flat CSV. No second API call, no post-processing to parse "1.2K" into a number. Download, open in Excel, done.
- **Incremental delivery** — Results appear in your dataset within seconds. Export anytime, don't wait for the run to finish.
- **From $0.50 per 1,000 items** — Volume discounts down to $0.25 on Business plan. **8x cheaper than Streamers ($4.00/1K).**

### Use cases

- **Shorts trend analysis** — Track which Shorts go viral, when they're posted, and what tags and categories drive views. Identify patterns across channels and niches.
- **Content strategy** — Analyze top-performing Shorts by views, likes, and engagement ratios. Find the optimal length, best posting times, and winning hashtags for your vertical.
- **Influencer discovery** — Find creators producing high-engagement Shorts in your niche. Filter by subscriber count, posting frequency, verified status, and content category.
- **Competitive intelligence** — Monitor competitor Shorts: what they post, how often, what tags they use, which Shorts get the most engagement. Run weekly on a schedule.
- **Market research** — Benchmark channels by Shorts output, engagement rates, and content mix. Build datasets for reports and presentations with exact numbers.
- **ML training data** — Structured JSON with 37 fields per short, ready for recommendation systems, trend analysis, or content classification.

### How much does it cost?

Each short counts as one item.

| Plan | Price per 1,000 items |
|------|----------------------|
| Free | $0.50 |
| Starter | $0.45 |
| Scale | $0.40 |
| Business | $0.25 |

| Scenario | Items | Cost |
|----------|-------|------|
| 1 channel, 100 shorts | 100 | $0.05 |
| 10 channels, 100 shorts each | 1,000 | $0.50 |
| 50 channels, 200 shorts each | 10,000 | $5.00 |
| 1 channel, full history (2,000 shorts) | 2,000 | $1.00 |

Apify also charges a small compute cost (CU) for the actor's runtime — typically under $0.01 for most runs.

### Input

| Parameter | Type | Default | Description |
|-----------|------|---------|-------------|
| `channelUrls` | string[] | *required* | YouTube channel URLs, handles (@MrBeast), or channel IDs (UC...). Supports /channel/, /@, /c/, /user/ formats. |
| `maxShorts` | integer | 100 | Maximum Shorts to fetch per channel. |
| `sortBy` | string | `latest` | `latest`, `popular`, or `oldest`. |
| `oldestVideoDate` | string | — | Only include Shorts published after this date (ISO 8601, e.g. `2025-01-01`). |
| `includeChannelInfo` | boolean | `true` | Attach channel metadata (subscribers, description, country) to each Short row. Disable to reduce output size. |

### Output example

Each item in the dataset is a single short:

```json
{
  "videoId": "abc123XYZ_0",
  "title": "Wait for it... #shorts",
  "description": "You won't believe what happens next...",
  "descriptionLinks": "",
  "thumbnailUrl": "https://i.ytimg.com/vi/abc123XYZ_0/maxresdefault.jpg",
  "publishedAt": "2026-03-15T14:30:00Z",
  "duration": "PT45S",
  "durationSeconds": 45,
  "viewCount": 12500000,
  "likeCount": 890000,
  "commentCount": 15420,
  "tags": "shorts,funny,viral",
  "categoryId": 24,
  "categoryName": "Entertainment",
  "topicDetails": "https://en.wikipedia.org/wiki/Entertainment",
  "definition": "hd",
  "hasCaptions": false,
  "isAgeRestricted": false,
  "privacyStatus": "public",
  "commentsTurnedOff": false,
  "hashtags": "#shorts #funny",
  "type": "shorts",
  "order": 0,
  "channelId": "UCX6OQ3DkcsbYNE6H8uQQuVA",
  "channelName": "MrBeast",
  "channelUsername": "@MrBeast",
  "channelUrl": "https://www.youtube.com/channel/UCX6OQ3DkcsbYNE6H8uQQuVA",
  "channelDescription": "SUBSCRIBE FOR A COOKIE!...",
  "channelCountry": "US",
  "channelJoinedAt": "2012-02-20T00:43:50Z",
  "channelSubscriberCount": 464000000,
  "channelTotalViews": 109144471886,
  "channelTotalVideos": 942,
  "channelAvatarUrl": "https://yt3.ggpht.com/...",
  "channelBannerUrl": "https://yt3.googleusercontent.com/...",
  "channelIsVerified": true,
  "scrapeTimestamp": "2026-04-02T12:00:00Z"
}
````

Download your results as **JSON**, **CSV**, **Excel**, **XML**, or **HTML** from the dataset tab, or access them via the [Apify API](https://docs.apify.com/api/v2#/reference/datasets).

### Good to know

**Subscriber counts are exact integers.** Other scrapers return abbreviated text like "1.2M" that you have to parse. We return `1200000` — ready for calculations, sorting, and filtering.

**Channel info is repeated on every row.** This makes every CSV row self-contained. If you're scraping 50 channels and need to group by subscriber count, it's already there. Disable `includeChannelInfo` to reduce output size if you don't need it.

**Shorts only.** This actor fetches only Shorts (videos under 60 seconds). For regular videos, use [YouTube Channel Scraper](https://apify.com/happy_b/youtube-channel-scraper). For both videos and Shorts together, use the channel scraper with `maxShorts` set above 0.

### Integrations

Connect this actor to your workflow with [Apify integrations](https://docs.apify.com/platform/integrations):

- **Make (Integromat)** — trigger workflows when new data is available
- **Zapier** — push shorts to Google Sheets, Slack, or databases
- **GitHub** — store results in repositories
- **Google Drive** — export directly to spreadsheets
- **Webhooks** — notify your API when the run completes
- **Apify API** — programmatic access for custom pipelines

### Legal and personal data

This actor extracts publicly available data from YouTube. You should ensure your use of the extracted data complies with YouTube's [Terms of Service](https://www.youtube.com/t/terms), applicable data protection laws (GDPR, CCPA), and your jurisdiction's regulations regarding web scraping and data processing.

Channel and video information is public content visible to anyone on YouTube.

### Support

Found a bug or have a feature request? Open an issue on the [Issues tab](https://apify.com/happy_b/youtube-shorts-scraper/issues/open) or contact us through Apify messaging.

# Actor input Schema

## `channelUrls` (type: `array`):

YouTube channel URLs, handles (@MrBeast), or channel IDs. Supports youtube.com/channel/, youtube.com/@, youtube.com/c/ formats.

## `maxShorts` (type: `integer`):

Maximum number of Shorts to fetch per channel.

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

How to sort Shorts from each channel.

## `oldestVideoDate` (type: `string`):

Only include Shorts published after this date. ISO 8601 format (e.g. 2025-01-01).

## `includeChannelInfo` (type: `boolean`):

Attach full channel metadata (subscribers, description, country, etc.) to each Short row. Disable to reduce output size.

## Actor input object example

```json
{
  "channelUrls": [
    "https://www.youtube.com/@MrBeast"
  ],
  "maxShorts": 100,
  "sortBy": "latest",
  "includeChannelInfo": true
}
```

# Actor output Schema

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

No description

## `metadata` (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 = {
    "channelUrls": [
        "https://www.youtube.com/@MrBeast"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("happy_b/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 = { "channelUrls": ["https://www.youtube.com/@MrBeast"] }

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

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

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

```

## CLI example

```bash
echo '{
  "channelUrls": [
    "https://www.youtube.com/@MrBeast"
  ]
}' |
apify call happy_b/youtube-shorts-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=happy_b/youtube-shorts-scraper",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "YouTube Shorts Scraper",
        "description": "Extract Shorts from YouTube channels with exact view counts, ISO timestamps, and 37 fields per Short.",
        "version": "0.1",
        "x-build-id": "xJbY7JAWH26iM14Lx"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/happy_b~youtube-shorts-scraper/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-happy_b-youtube-shorts-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/happy_b~youtube-shorts-scraper/runs": {
            "post": {
                "operationId": "runs-sync-happy_b-youtube-shorts-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/happy_b~youtube-shorts-scraper/run-sync": {
            "post": {
                "operationId": "run-sync-happy_b-youtube-shorts-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "required": [
                    "channelUrls"
                ],
                "properties": {
                    "channelUrls": {
                        "title": "Channel URLs",
                        "type": "array",
                        "description": "YouTube channel URLs, handles (@MrBeast), or channel IDs. Supports youtube.com/channel/, youtube.com/@, youtube.com/c/ formats.",
                        "items": {
                            "type": "string"
                        }
                    },
                    "maxShorts": {
                        "title": "Max Shorts Per Channel",
                        "minimum": 1,
                        "type": "integer",
                        "description": "Maximum number of Shorts to fetch per channel.",
                        "default": 100
                    },
                    "sortBy": {
                        "title": "Sort By",
                        "enum": [
                            "latest",
                            "popular",
                            "oldest"
                        ],
                        "type": "string",
                        "description": "How to sort Shorts from each channel.",
                        "default": "latest"
                    },
                    "oldestVideoDate": {
                        "title": "Oldest Video Date",
                        "type": "string",
                        "description": "Only include Shorts published after this date. ISO 8601 format (e.g. 2025-01-01)."
                    },
                    "includeChannelInfo": {
                        "title": "Include Channel Info",
                        "type": "boolean",
                        "description": "Attach full channel metadata (subscribers, description, country, etc.) to each Short row. Disable to reduce output size.",
                        "default": true
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
