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

🚀 Scrape YouTube Shorts at scale with precise timestamps, engagement metrics, hashtags, and channel statistics. Perfect for trend discovery, influencer research, content planning, and market analysis.

- **URL**: https://apify.com/apt\_marble/youtube-shorts-scraper.md
- **Developed by:** [Hamza](https://apify.com/apt_marble) (community)
- **Categories:** Videos, Social media, Automation
- **Stats:** 3 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$0.90 / 1,000 short results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

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

## 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

## Ultimate YouTube Shorts Scraper 🎬

Scrape every Short from any YouTube channel — with exact publish dates, view counts, likes, comments, durations and the full channel profile. Sort by newest, popular or oldest, filter by date, and get clean structured JSON ready for analysis.

### ✨ What you get

One record per Short:

| Field | Description |
|---|---|
| `shortId` / `url` / `title` / `thumbnail` | The Short itself |
| `description` / `hashtags` | Full description + extracted hashtags |
| `publishedAt` | **Exact** ISO 8601 publish timestamp (not "2 weeks ago") |
| `views` / `likes` / `commentsCount` | Engagement as real numbers |
| `duration` / `durationSeconds` | `00:00:19` and `19` |
| `category` / `isFamilySafe` / `isUnlisted` / `commentsTurnedOff` | Content flags |
| `position` / `sortedBy` | Where it sat in the feed you scraped |
| `channelName` / `channelId` / `channelUrl` / `channelHandle` | Channel identity |
| `channelDescription` / `channelAvatar` / `channelBanner` | Channel branding |
| `channelSubscribers` / `channelTotalVideos` / `channelTotalViews` | Channel stats |
| `channelJoinedDate` / `channelLocation` / `channelLinks` / `channelIsVerified` | Channel profile |
| `inputChannel` / `sourceUrl` / `scrapedAt` | Provenance |

### ⚙️ Options

- **Name(s) of the channel** — handles (`@AutoTopnl`), plain names, URLs or channel IDs.
- **Maximum number of shorts per channel** — or 0 for the whole feed.
- **Scrape shorts published after [date]** — absolute (`2026-01-01`) or relative (`2 weeks`).
- **Sort shorts by** — Newest, Popular or Oldest.

### 🚀 Example

Input:

```json
{
    "channels": ["https://www.youtube.com/@AutoTopnl"],
    "maxShortsPerChannel": 10,
    "sortShortsBy": "newest",
    "publishedAfter": "1 month"
}
````

One record from the output:

```json
{
    "shortId": "NNKOkpB6ABA",
    "type": "short",
    "title": "😄or😭 - 6000RPM LAUNCH CONTROL in HYUNDAI IONIQ 6 N with 650HP!",
    "url": "https://www.youtube.com/shorts/NNKOkpB6ABA",
    "publishedAt": "2026-06-05T19:48:57.000Z",
    "views": 82389,
    "likes": 954,
    "commentsCount": 106,
    "duration": "00:00:09",
    "durationSeconds": 9,
    "position": 1,
    "sortedBy": "newest",
    "channelName": "AutoTopNL",
    "channelHandle": "@AutoTopnl",
    "channelSubscribers": 4220000,
    "channelIsVerified": true,
    "channelLocation": "Netherlands",
    "scrapedAt": "2026-06-10T02:18:16.000Z"
}
```

### 💡 Use cases

- **Competitor tracking** — monitor posting cadence and what formats win.
- **Trend research** — pull the most popular Shorts in a niche, with real numbers.
- **Influencer vetting** — verify engagement rates before sponsoring a creator.
- **Content planning** — see exactly when and how often successful channels publish.

### 💳 Pricing

You pay per Short scraped — no subscriptions, no hidden compute costs.

### ❓ FAQ

**Do I get exact dates?** Yes — every Short is enriched to the exact second of publication, not YouTube's fuzzy "3 weeks ago".

**What if the channel has no Shorts?** The channel is skipped with a clear log line; you're not charged.

**Can I scrape multiple channels at once?** Yes — add as many as you like; they're processed in parallel.

# Actor input Schema

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

Channels to scrape Shorts from. Accepts handles (@AutoTopnl), plain names (AutoTopnl), channel URLs or channel IDs.

## `maxShortsPerChannel` (type: `integer`):

How many shorts to scrape from each channel. Use 0 for all of them.

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

Only keep shorts published after this date. Absolute (YYYY-MM-DD) or relative (e.g. "2 weeks", "3 months").

## `sortShortsBy` (type: `string`):

Order in which the channel's Shorts feed is scraped.

## `maxConcurrency` (type: `integer`):

How many channels to process in parallel.

## Actor input object example

```json
{
  "channels": [
    "https://www.youtube.com/@AutoTopnl"
  ],
  "maxShortsPerChannel": 30,
  "sortShortsBy": "newest",
  "maxConcurrency": 3
}
```

# Actor output Schema

## `dataset` (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": [
        "https://www.youtube.com/@AutoTopnl"
    ]
};

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

# Run the Actor and wait for it to finish
run = client.actor("apt_marble/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 '{
  "channels": [
    "https://www.youtube.com/@AutoTopnl"
  ]
}' |
apify call apt_marble/youtube-shorts-scraper --silent --output-dataset

```

## MCP server setup

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

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "YouTube Shorts Scraper",
        "description": "🚀 Scrape YouTube Shorts at scale with precise timestamps, engagement metrics, hashtags, and channel statistics. Perfect for trend discovery, influencer research, content planning, and market analysis.",
        "version": "0.0",
        "x-build-id": "AnvpUyE5eLuDWQKWm"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/apt_marble~youtube-shorts-scraper/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-apt_marble-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/apt_marble~youtube-shorts-scraper/runs": {
            "post": {
                "operationId": "runs-sync-apt_marble-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/apt_marble~youtube-shorts-scraper/run-sync": {
            "post": {
                "operationId": "run-sync-apt_marble-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": [
                    "channels"
                ],
                "properties": {
                    "channels": {
                        "title": "Name(s) of the channel",
                        "type": "array",
                        "description": "Channels to scrape Shorts from. Accepts handles (@AutoTopnl), plain names (AutoTopnl), channel URLs or channel IDs.",
                        "default": [
                            "https://www.youtube.com/@AutoTopnl"
                        ],
                        "items": {
                            "type": "string"
                        }
                    },
                    "maxShortsPerChannel": {
                        "title": "Maximum number of shorts per channel",
                        "minimum": 0,
                        "type": "integer",
                        "description": "How many shorts to scrape from each channel. Use 0 for all of them.",
                        "default": 30
                    },
                    "publishedAfter": {
                        "title": "Scrape shorts published after [date]",
                        "type": "string",
                        "description": "Only keep shorts published after this date. Absolute (YYYY-MM-DD) or relative (e.g. \"2 weeks\", \"3 months\")."
                    },
                    "sortShortsBy": {
                        "title": "Sort shorts by",
                        "enum": [
                            "newest",
                            "popular",
                            "oldest"
                        ],
                        "type": "string",
                        "description": "Order in which the channel's Shorts feed is scraped.",
                        "default": "newest"
                    },
                    "maxConcurrency": {
                        "title": "Concurrency",
                        "minimum": 1,
                        "maximum": 10,
                        "type": "integer",
                        "description": "How many channels to process in parallel.",
                        "default": 3
                    }
                }
            },
            "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
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
