# YouTube Shorts Scraper – Channels, Hashtags & Search (`datarelay/youtube-shorts-scraper`) Actor

Scrape YouTube Shorts from channels, hashtags and keyword searches with exact views, likes, publish dates, duration and hashtags. Monitor new Shorts on a schedule. No login, no browser. Pay per Short.

- **URL**: https://apify.com/datarelay/youtube-shorts-scraper.md
- **Developed by:** [DataRelay](https://apify.com/datarelay) (community)
- **Categories:** Videos, Social media, Marketing
- **Features:** Limited permissions, Single-tenant, Server interface
- **Stats:** 2 total users, 2 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 and usage. You are charged both the fixed price for specific events and for Apify platform usage.
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 – Channels, Hashtags & Search

Export **YouTube Shorts** from **channels**, **hashtags** and **keyword searches** – with **exact views, likes, publish
date**, duration, hashtags, description and channel – in one run. Schedule it as a **monitor** that delivers only **new
Shorts** of competitor channels, a hashtag or a search; a run with nothing new costs nothing.

No login, no browser: the Actor reads YouTube's public pages and web API over plain HTTP, so hundreds of Shorts take
seconds on 256 MB.

### Why this Actor

- **Every way to find Shorts in one input.** Channels (newest, most popular or oldest first), hashtag pages, YouTube
  search with the Shorts filter, and Shorts URLs you already have – every row says where it came from (`source`,
  `input`, `position`).
- **Exact numbers.** Views and likes are read per Short (`7830`, not `7.8K`), with the publish time to the second.
- **Channels any way you write them.** `TED`, `@TED`, `https://www.youtube.com/@TED/shorts` or a `UC…` channel id.
- **Monitoring built in.** Set a `syncKey` and schedule the task: each run delivers and charges only Shorts it has not
  delivered before. A newest-first channel stops reading at the first page without anything new, so a quiet day is free.
- **Date filter for free.** `oldestPostDate` skips older Shorts without charging them, and a newest-first channel stops
  reading at the first older Short.
- **Pay only for data.** A Short found by several sources is charged once per run. Unavailable Shorts, failed sources,
  Shorts older than your date and Shorts already delivered under your sync key are free.

### Quick start

```json
{
    "channels": ["@TED"],
    "maxShortsPerSource": 50
}
```

| Goal                                   | Input                                                                                |
| -------------------------------------- | ------------------------------------------------------------------------------------ |
| Latest Shorts of a channel             | `{"channels": ["@TED"], "maxShortsPerSource": 100}`                                  |
| Most popular Shorts of competitors     | `{"channels": ["@MrBeast", "@NASA"], "channelSort": "popular"}`                      |
| Shorts of a hashtag                    | `{"hashtags": ["#cooking"], "maxShortsPerSource": 200}`                              |
| Search Shorts by keyword               | `{"searchQueries": ["productivity tips"], "country": "US"}`                          |
| Shorts published since a date          | `{"channels": ["@TED"], "oldestPostDate": "2026-11-01", "maxShortsPerSource": 1000}` |
| Daily monitor of new competitor Shorts | `{"channels": ["@TED", "@NASA"], "syncKey": "competitor-shorts"}`                    |
| Views and likes of your own Shorts     | `{"shortUrls": ["https://www.youtube.com/shorts/dpYRzceuSsk"]}`                      |

### Input

| Field                | Default        | Meaning                                                                                       |
| -------------------- | -------------- | --------------------------------------------------------------------------------------------- |
| `channels`           | –              | Handles (`TED`, `@TED`), channel URLs (any tab) or channel ids (`UC…`).                       |
| `channelSort`        | `newest`       | `newest`, `popular` or `oldest` – the orders of a channel's Shorts tab.                       |
| `hashtags`           | –              | Hashtag pages (`youtube.com/hashtag/<tag>/shorts`), with or without `#`.                      |
| `searchQueries`      | –              | YouTube search with the Shorts filter, in YouTube's relevance order.                          |
| `shortUrls`          | –              | Shorts or video URLs or ids to read directly.                                                 |
| `maxShortsPerSource` | `50`           | Shorts per channel, hashtag or search (1–10,000).                                             |
| `oldestPostDate`     | –              | Only Shorts published on or after this date; older ones are skipped and free.                 |
| `country`            | `US`           | Country YouTube ranks searches and hashtag pages for.                                         |
| `maxResults`         | `1000`         | Shorts in the whole run (0 = no limit). Your spending limit is respected too.                 |
| `syncKey`            | –              | Memory of delivered Shorts in your account (`youtube-shorts-sync-<key>`); turns on `onlyNew`. |
| `onlyNew`            | `false`        | Deliver only Shorts not delivered before under the sync key (`default` when no key is set).   |
| `syncReset`          | `false`        | Forget the memory of the sync key before the run.                                             |
| `maxRunSecs`         | `0`            | Soft time budget (0 = the platform timeout).                                                  |
| `proxyConfiguration` | residential US | Datacenter first, residential US only after blocks.                                           |

### Output

```json
{
    "schemaVersion": 1,
    "status": "ok",
    "error": null,
    "scrapedAt": "2026-11-11T09:00:00.000Z",
    "type": "short",
    "source": "channel",
    "input": "https://www.youtube.com/@TED",
    "position": 1,
    "id": "dpYRzceuSsk",
    "url": "https://www.youtube.com/shorts/dpYRzceuSsk",
    "title": "When a couple creates their own world together, love thrives #TEDTalks",
    "description": "Social psychologist Eli J. Finkel has spent decades studying …",
    "hashtags": ["tedtalks"],
    "keywords": ["TEDTalk", "TEDTalks", "TED Talk", "TED Talks", "TED"],
    "viewCount": 7830,
    "likeCount": 607,
    "publishedAt": "2026-11-10T23:00:27.000Z",
    "durationSeconds": 123,
    "channelId": "UCAuUUnT6oDeKwE6v1NGQxug",
    "channelName": "TED",
    "channelUrl": "https://www.youtube.com/@TED",
    "category": "People & Blogs",
    "thumbnailUrl": "https://i.ytimg.com/vi/dpYRzceuSsk/maxresdefault.jpg",
    "isShort": true,
    "isFamilySafe": true
}
```

`likeCount` is null when the creator hides likes. Free rows explain what gave nothing: `status: not_found` for channels
that do not exist, `unavailable` for listed Shorts that were removed or are private, `blocked` or `error` for failed
sources. The run report (`OUTPUT`) lists every source with its Shorts, pages and why reading stopped (`end`,
`maxItems`, `since`, `caughtUp`, `idle` …).

### Pricing (pay per event)

| Event       | FREE    | BRONZE   | SILVER  | GOLD   |
| ----------- | ------- | -------- | ------- | ------ |
| `run-start` | $0.003  | $0.003   | $0.0025 | $0.002 |
| `short`     | $0.0034 | $0.00255 | $0.0022 | $0.002 |

- 100 Shorts: **$0.343** on FREE; 1,000 Shorts: **$3.403** – **$3.40 per 1,000 Shorts**, $2.00 on GOLD. The date filter is included.
- The start fee is charged only together with the first paid Short: a monitoring run with nothing new is free.
- Free: unavailable Shorts, failed sources, Shorts older than `oldestPostDate`, duplicates within a run and Shorts
  already delivered under your `syncKey`. Apify's standard `apify-actor-start` event ($0.00005) applies to every run.

### FAQ

**Do I need a YouTube account or an API key?** No. The Actor reads public pages and YouTube's public web API; no
quota, no login.

**Why can a search give fewer Shorts than asked?** YouTube's Shorts search returns a limited, partly repeated list per
query; duplicates are delivered once. Use several related queries or hashtags for more coverage.

**Are comments or transcripts included?** No – this Actor is about finding Shorts and their numbers. For transcripts and
subtitles of Shorts use our YouTube Transcript API.

**Is it allowed?** The Actor reads only public data, the way a browser shows it without login. Respect YouTube's terms
and privacy law when you store or use the data.

**Can I use it from AI agents, n8n, Make or Zapier?** Yes: plain JSON input, the same fields on every row, and a run
report in `OUTPUT`.

### HTTP and MCP access

This Actor also declares a single-tenant server interface, using the same input, source engine and result prices as batch runs. For large jobs, use batch.

- **Apify MCP:** configure `https://mcp.apify.com/?tools=datarelay/youtube-shorts-scraper` with your Apify bearer token. This starts ordinary Actor runs.
- **DataRelay MCP:** copy this Actor's server URL from Apify Console and append `/mcp`; authenticate with the same bearer token.
- **HTTP:** POST JSON input to `<SERVER_URL>/v1/run`. `<SERVER_URL>/openapi.json` lists the domain shortcuts.

Each server run belongs to your account. Default idle timeout: 60 seconds. You pay platform usage, including startup/idle time, plus existing event fees. Discovery and health checks produce no data events, but can start a billed run. A warm run charges its start event at most once on its first paid result.

Responses include a preview (first 100 rows / 1 MB), `resultCount`, `previewLimited`, `interrupted`, and links to this request's complete Dataset slice and summary. Use batch for work exceeding the 120-second soft deadline. Check `outcome`, summaries and result statuses; source limitations remain unchanged. Use the stable Actor-level server URL for clients. The server becomes available when this build is deployed and its server settings are enabled.

# Actor input Schema

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

YouTube channels to read Shorts from, one per line: a handle (TED or @TED), a channel URL (https://www.youtube.com/@TED, any tab) or a channel id (UC…).

## `channelSort` (type: `string`):

Order of a channel's Shorts, as on its Shorts tab. 'Newest' stops at the first Short older than 'Published after' and, when monitoring, at the first page without anything new.

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

Shorts of hashtag pages (youtube.com/hashtag/<tag>/shorts), one per line, with or without #.

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

Keywords to search Shorts for, one per line (YouTube search with the Shorts filter, in YouTube's relevance order).

## `shortUrls` (type: `array`):

Shorts (or video) URLs or ids to read directly – for example to refresh the views and likes of your own Shorts.

## `maxShortsPerSource` (type: `integer`):

Shorts per channel, hashtag or search.

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

Only Shorts published on or after this date (2026-11-01 or an ISO date-time). Older Shorts are skipped and free.

## `country` (type: `string`):

Two-letter country code YouTube ranks searches and hashtag pages for (e.g. US, GB, DE, IN).

## `maxResults` (type: `integer`):

Stop the run after this many Shorts (0 = no limit). Your spending limit is respected too.

## `onlyNew` (type: `boolean`):

Deliver (and charge) only Shorts not delivered before under the sync key: new Shorts of a channel, a hashtag or a search. Schedule the run.

## `syncKey` (type: `string`):

Name of the memory of delivered Shorts (letters, digits, dashes; at most 40). Setting it turns on 'Only new Shorts'. One key per monitoring task.

## `syncReset` (type: `boolean`):

Forget the Shorts delivered under the sync key before this run.

## `maxRunSecs` (type: `integer`):

Stop starting new requests after this many seconds and save what was found (0 = until the platform timeout).

## `proxyConfiguration` (type: `object`):

With the default (residential, US) the Actor starts on Apify datacenter proxies and moves a request to residential proxies only after YouTube blocks it – fast and cheap. Any other setting is used as it is.

## Actor input object example

```json
{
  "channels": [
    "@TED"
  ],
  "channelSort": "newest",
  "maxShortsPerSource": 50,
  "country": "US",
  "maxResults": 1000,
  "onlyNew": false,
  "syncReset": false,
  "maxRunSecs": 0,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "US"
  }
}
```

# Actor output Schema

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

No description

## `summary` (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": [
        "@TED"
    ]
};

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

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

```

## MCP server setup

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