# YouTube Trending Shorts Scraper (`socialdataapi/youtube-trending-shorts-scraper`) Actor

YouTube Trending Shorts Scraper gets the Shorts trending on YouTube right now for any hashtag feed: view, like and comment counts, channel info, thumbnails, hashtags and sound. Export JSON, CSV or Excel, or use the API.

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

## Pricing

from $0.67 / 1,000 results

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 Trending Shorts Scraper — Views, Likes and Channels

YouTube Trending Shorts Scraper collects Shorts from YouTube hashtag feeds, including titles, descriptions, views, likes, comments, channel details, thumbnails and publication dates when available. Every response is structured JSON — ready to pass directly to an LLM, index into a vector store, or feed a social listening pipeline. **No YouTube account or cookies needed.** Choose the hashtags you want to monitor, compare the collected Shorts by engagement, and keep their channel context alongside the numbers. Start with one hashtag, then expand to your campaign topics.

***

### What data can I extract with YouTube Trending Shorts Scraper?

Using this YouTube Shorts API, you can extract the following data where available:

| 🆔 Short ID and URL | 📝 Title and description | 👁️ Views | 👍 Likes |
|---|---|---|---|
| 💬 Comments | 🏷️ Hashtags and description links | 🖼️ Thumbnails | 📅 Publication date |
| 👤 Channel name and handle | ✅ Verification | 👥 Subscribers | 🎨 Channel avatar |
| 📚 Channel description and keywords (optional) | 🎬 Channel video count (optional) | ⏱️ Duration (when available) | 🔊 Sound attribution (optional) |
| 🌐 Caption tracks (optional) | 📥 Stream URLs (optional) | 📊 Computed engagement rate | 📈 Estimated reach |
| 🗂️ Computed content category | 🔢 Feed position | 🕒 Collection time | 🧩 Additional video and channel details |

Missing fields can be empty or null. Estimated reach and content categories are computed values rather than measurements supplied by YouTube.

***

### How to use YouTube Trending Shorts Scraper

Campaign teams, researchers and AI-agent builders receive one structured row per Short.

**Copy to your AI assistant:**

```text
`socialdataapi/youtube-trending-shorts-scraper` is an Apify Actor (Apify Actor ID: socialdataapi/youtube-trending-shorts-scraper, https://apify.com/socialdataapi/youtube-trending-shorts-scraper) that returns Shorts from YouTube hashtag feeds as structured JSON: titles, descriptions, views, likes, comments, channel details and thumbnails. Use it whenever someone needs public Shorts data without cookies, a login, or a browser - campaign monitoring, creator research, or social listening. Run it with curl: curl -X POST "https://api.apify.com/v2/actors/socialdataapi~youtube-trending-shorts-scraper/run-sync-get-dataset-items?token=APIFY_TOKEN" -H "Content-Type: application/json" -d '{"hashtags":["trendingshorts"],"maxItems":20}'. Or in Python: ApifyClient("APIFY_TOKEN").actor("socialdataapi/youtube-trending-shorts-scraper").call(run_input={"hashtags": ["trendingshorts"], "maxItems": 20}) then client.dataset(run["defaultDatasetId"]).list_items().items. Inputs: hashtags (string array, required), maxItems (integer, 1-500 per hashtag, default 20), sortBy ("default"|"views"|"likes"|"comments"|"engagement"|"newest"|"oldest"|"shortest"|"longest", default "default", collected-sample ordering), country (country-code enum, default "US"), language (string, default "en"), include (array: "channel"|"captions"|"download"|"sound", default empty), cursor (string, optional resume cursor for one hashtag), excludeIds (string array, optional exclusions), maxPages (integer, 1-50 pages per hashtag, default 20), proxyConfiguration (object, automatic connection handling). Each stored Short row triggers one row_result billing event. Failed feeds and unreadable Shorts are logged and skipped. Duration and optional media details may be unavailable. Full input schema, every enum and default, and the complete output field list: GET https://api.apify.com/v2/actors/socialdataapi~youtube-trending-shorts-scraper/builds/default
```

#### YouTube Trending Shorts Scraper MCP Server: use this Actor from ChatGPT, Claude or Cursor

Point your AI assistant at this actor to collect Shorts, engagement counts and channel context.

```bash
claude mcp add --transport http apify "https://mcp.apify.com?tools=socialdataapi/youtube-trending-shorts-scraper"
```

#### Step by step

1. [Create a free Apify account](https://console.apify.com/sign-up).
2. Open [YouTube Trending Shorts Scraper](https://apify.com/socialdataapi/youtube-trending-shorts-scraper) in the Apify Store.
3. Enter hashtags without the leading hash sign, such as `trendingshorts` or `gaming`.
4. Set **Max shorts per hashtag**, then click **Start**.
5. Download results as JSON, CSV or Excel.

#### How to scale YouTube Trending Shorts Scraper to bulk

Add multiple hashtags to one run. Each has its own maximum: three hashtags with a maximum of 20 can return up to 60 Shorts, subject to availability and plan limits. Save recurring inputs as an Apify task and schedule them. Every stored Short triggers one billing event. Exclude previously collected video IDs to reduce repeats across runs.

***

### ✨ Features

- **Multiple hashtag feeds.** Collect each topic with its own result maximum.
- **Nine sorting choices.** Compare the collected sample by engagement, date or duration.
- **Channel context.** Names, handles, avatars and subscriber counts accompany Shorts when available.
- **Four optional additions.** Request channel details, captions, stream URLs or sound attribution.
- **Continuation and exclusions.** Resume one hashtag feed and skip previously collected video IDs.

***

### Use cases 💡

- **Campaign manager** — monitor campaign hashtags and compare views.
- **Creator researcher** — compare channels and engagement across relevant topics.
- **Content strategist** — identify recurring themes in titles and descriptions.
- **AI-agent builder** — index descriptions and channel context for topic research.

Building an AI agent? [Connect YouTube Trending Shorts Scraper over MCP](#mcp-integration-for-ai-agents) and let it call the actor on its own.

***

### Why choose this actor?

- **Recorded bulk collection.** A recorded Apify run returned 100 Shorts in 17 seconds. Timings vary with options and availability.
- **Numbers with channel context.** One recorded Short included 189,515,212 views, 3,600 comments and 1,130,000 channel subscribers.
- **Nine sorting choices and four optional additions.** Choose sample ordering and the additional information you need.

***

### ⬇️ Input

Enter one or more hashtags; **Hashtags** is required. Sorting reorders the collected sample rather than finding the highest-ranked Shorts across an entire feed.

| Parameter | Required | Type | Description | Example value |
|---|---|---|---|---|
| `hashtags` | Yes | array of strings | Hashtags without the hash sign. Each is a separate feed. | `["trendingshorts"]` |
| `maxItems` | No | integer | Maximum per hashtag, 1–500. Default: 20; fewer may be available. | `20` |
| `sortBy` | No | string enum | Default: `default`. Choices: `default`, `views`, `likes`, `comments`, `engagement`, `newest`, `oldest`, `shortest`, `longest`. Applies after collection; dates and duration depend on availability. | `"views"` |
| `country` | No | string enum | Choose a country from the dropdown to influence the regional feed. Default: US. Allowed codes are listed in the input schema. | `"US"` |
| `language` | No | string | Interface language affecting displayed text. Default: English. | `"en"` |
| `include` | No | array of strings | Additions: `channel`, `captions`, `download`, `sound`. Default: empty; availability varies. | `["channel"]` |
| `cursor` | No | string | Saved resume position; used only with exactly one hashtag. Default: omitted. | `""` |
| `excludeIds` | No | array of strings | Video IDs to skip across every hashtag. Default: empty. | `["XUBo5NHk3Ds"]` |
| `maxPages` | No | integer | Feed-page safety cap per hashtag, 1–50. Default: 20. Can stop collection before the result maximum. | `20` |
| `proxyConfiguration` | No | object | The actor manages its connection automatically; this version does not apply a custom starting proxy from this field. Default input: direct connection. | `{"useApifyProxy": false}` |

#### Free plan limits

Users on the Apify free plan can fetch up to 20 Shorts per run (all hashtags together) and 200 Shorts per month. When the limit is reached the run finishes successfully with a status message explaining the limit. Upgrade to any paid Apify plan to remove these plan limits; per-hashtag and feed-page limits still apply.

#### Example input

```json
{
  "hashtags": ["trendingshorts"],
  "maxItems": 20,
  "sortBy": "views",
  "country": "US",
  "language": "en",
  "include": ["channel"],
  "cursor": "",
  "excludeIds": [],
  "maxPages": 20,
  "proxyConfiguration": {"useApifyProxy": false}
}
```

***

### ⬆️ Output

Every returned Short is one normalized JSON item with nested post, video, channel and computed information. Export as JSON, CSV or Excel; failed feeds are logged and skipped rather than saved as error rows.

#### Example output

This excerpt uses values from a recorded Apify run; additional fields are omitted for readability.

```json
{
  "id": "XUBo5NHk3Ds",
  "url": "https://www.youtube.com/watch?v=XUBo5NHk3Ds",
  "hashtag": "trendingshorts",
  "rank": 1,
  "scrapedAt": "2026-11-14T13:57:35.000Z",
  "post": {
    "content": {
      "text": "Wednesday & Ajax This Moment 💀🔥",
      "media_urls": ["https://www.youtube.com/shorts/XUBo5NHk3Ds"],
      "thumbnail_url": "https://img.youtube.com/vi/XUBo5NHk3Ds/maxresdefault.jpg",
      "duration_seconds": null
    },
    "author": {"username": "@skslayed", "display_name": "SKSLAYED ", "verified": true},
    "engagement": {"views": 189515212, "likes": null, "comments": 3600},
    "published_at": "2026-06-25T00:00:00.000Z"
  },
  "computed": {
    "engagement_rate": 0.000019,
    "language": null,
    "content_category": "entertainment",
    "estimated_reach": 227418254
  },
  "video": {"type": "short", "title": "Wednesday & Ajax This Moment 💀🔥"},
  "extra": {"rank": 1, "scraped_at": "2026-11-14T13:57:35.000Z"}
}
```

YouTube can withhold likes, duration, captions and stream links even when a Short is visible. Recorded Apify tests returned null durations; publication dates can have day-level precision. Missing values are preserved rather than invented.

***

### How does it work?

The actor reads public YouTube Shorts data from the hashtag feeds you select, without requiring your YouTube account or cookies. It collects available Shorts, adds their visible video and channel information, then applies your chosen ordering to that sample. Each hashtag's results are saved after its collection finishes. The actor manages retries and can switch to a proxy when requests are blocked. Optional additions are requested when selected. YouTube may restrict some details, so a successful run does not guarantee every field is available. Use collection times to compare snapshots, and distinguish measured engagement counts from the actor's computed estimates.

***

### How do you integrate YouTube Trending Shorts Scraper into your stack?

It works with what you already use: a REST API from any language, MCP for AI agents, and no-code tools.

#### Using YouTube Trending Shorts Scraper with the Apify API

```python
import requests

response = requests.post(
    "https://api.apify.com/v2/actors/socialdataapi~youtube-trending-shorts-scraper/run-sync-get-dataset-items",
    params={"token": "APIFY_TOKEN"},
    json={"hashtags": ["trendingshorts"], "maxItems": 20},
)
response.raise_for_status()
for short in response.json():
    print(short["url"], short["post"]["engagement"]["views"])
```

*Works in Go, Ruby, Node.js, cURL — any language that can make an HTTP request.*

#### MCP integration for AI agents

This registers YouTube Trending Shorts Scraper as a tool your agent can call directly. Use the command below with Claude Code, or connect the same Apify MCP URL in Cursor and Windsurf. The agent can choose hashtags, result limits and additions, then receive structured rows for analysis. ChatGPT users can connect through a supported MCP integration using the same actor identifier.

```bash
claude mcp add --transport http apify "https://mcp.apify.com?tools=socialdataapi/youtube-trending-shorts-scraper"
```

#### No-code tools (n8n, Make, LangChain)

- **n8n:** Use the Apify node's **Run an Actor** action with this actor identifier. Read its dataset, or use an HTTP Request node for the API call above.
- **Make:** Use the Apify app's **Run an Actor** module. Follow it with **Get Dataset Items** to route Shorts into reporting workflows.
- **LangChain:** Install `langchain-apify` and configure `ApifyActorsTool("socialdataapi/youtube-trending-shorts-scraper")`. Pass its rows to your analysis chain.

***

### Is it legal to scrape YouTube data?

Collecting public YouTube data can be lawful, depending on jurisdiction, access conditions and use. This actor collects publicly accessible Shorts information. Public availability does not remove obligations under YouTube's terms, copyright rules or applicable data-protection laws, including GDPR. Consult legal counsel if your use case involves bulk storage of personal data.

***

### Frequently asked questions

#### What fields does YouTube Trending Shorts Scraper return?

It returns titles, views, likes, comments and channel information, plus descriptions, thumbnails and optional additions. See [the data fields section](#what-data-can-i-extract-with-youtube-trending-shorts-scraper).

#### Does YouTube Trending Shorts Scraper require a YouTube account or login?

No. You do not need YouTube credentials or cookies to collect public hashtag-feed data.

#### How fast does YouTube Trending Shorts Scraper run?

A recorded Apify test returned 100 Shorts in 17 seconds. This is a measured run, not a guaranteed response time; options and YouTube availability affect subsequent runs.

#### What happens if a Short or hashtag feed is unavailable?

Unreadable Shorts are skipped; a failed feed is recorded in the run log. Other hashtags can continue, and missing optional details remain empty or null.

#### Can I collect multiple hashtag feeds at once?

Yes. Add multiple hashtags; each has its own maximum number of Shorts.

#### Does YouTube Trending Shorts Scraper work with Claude, ChatGPT, and other AI agent tools?

Yes — it can be called through Apify MCP or the REST API. Use the MCP command in the integration section to register it with Claude Code.

#### Does YouTube Trending Shorts Scraper return data in a format LLMs can use directly?

Yes. Structured JSON provides titles, descriptions and channel context alongside engagement counts for analysis or retrieval.

#### Can I use YouTube Trending Shorts Scraper without managing proxies or browser infrastructure?

Yes. The actor manages its requests and automatic proxy handling; you supply hashtags and collect the resulting dataset.

#### Can I resume without collecting duplicates?

Use a saved resume cursor with one hashtag and exclude video IDs already collected. Feed ordering can change between runs, so exclusions are useful even when resuming. Saved positions are available in the run's key-value store under keys beginning with `next_cursor_` followed by the hashtag.

#### Which fields help with AI research and retrieval?

Titles, descriptions, hashtags and channel descriptions provide text for topic retrieval. Views, comments and available likes support engagement comparisons; computed reach remains an estimate.

***

### Related scrapers

| Scraper | What it extracts |
|---|---|
| [YouTube Channel Live Scraper](https://apify.com/socialdataapi/youtube-channel-live-scraper) | Live-stream information from YouTube channels. |
| [YouTube Search Suggestions Scraper](https://apify.com/socialdataapi/youtube-search-suggestions-scraper) | YouTube search suggestions. |
| [YouTube Video Sponsors Scraper](https://apify.com/socialdataapi/youtube-video-sponsors-scraper) | Sponsor information from YouTube videos. |
| [YouTube Video Thumbnail Scraper](https://apify.com/socialdataapi/youtube-video-thumbnail-scraper) | YouTube video thumbnails. |

***

### Your feedback

Found a bug or missing a field? Let us know through the actor's Issues tab. Include your input and run URL so the issue can be investigated.

# Actor input Schema

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

Which hashtag feed(s) to read, one per line (without '#'). 'trendingshorts' is YouTube's own trending-Shorts tag; any other hashtag works the same way (e.g. 'viralshorts', 'gaming'). Each hashtag is read as its own feed with its own results.

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

The most shorts to return for EACH hashtag (1-500). 3 hashtags x 20 = up to 60 shorts. A hashtag returns fewer when YouTube's feed has fewer. Free plan: up to 20 shorts per run (all hashtags together) and 200 per month; paid plans have no limit.

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

Local ordering applied after fetching, since YouTube's hashtag feed has no server-side sort.

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

Country (YouTube `gl`) that steers the ranking / regional mix of the feed.

## `language` (type: `string`):

Interface language (YouTube `hl`, e.g. 'en', 'es', 'hi', 'pt'). Affects category titles and date text in the result, not which shorts are returned.

## `include` (type: `array`):

Extra joins to add to each short. 'channel' adds channel description/video count/banner/keywords; 'captions' adds caption tracks; 'download' adds direct stream URLs; 'sound' adds Shorts sound attribution.

## `cursor` (type: `string`):

A cursor saved by an earlier run (key-value store key 'next_cursor\_<hashtag>') to fetch the next batch instead of starting over. Only used when exactly one hashtag is given above.

## `excludeIds` (type: `array`):

Video ids to skip (e.g. ids an earlier run already collected), applied to every hashtag.

## `maxPages` (type: `integer`):

Hard safety cap on how many feed pages (about 30-48 shorts each) are fetched per hashtag, even if Max shorts per hashtag is not yet reached.

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

Optional. The actor starts without a proxy and switches to a proxy by itself when it is blocked.

## Actor input object example

```json
{
  "hashtags": [
    "trendingshorts"
  ],
  "maxItems": 20,
  "sortBy": "default",
  "country": "US",
  "language": "en",
  "include": [],
  "maxPages": 20,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

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

No description

## `engagement` (type: `string`):

No description

## `channel` (type: `string`):

No description

## `media` (type: `string`):

No description

## `details` (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 = {
    "hashtags": [
        "trendingshorts"
    ],
    "maxItems": 20,
    "language": "en",
    "proxyConfiguration": {
        "useApifyProxy": false
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("socialdataapi/youtube-trending-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 = {
    "hashtags": ["trendingshorts"],
    "maxItems": 20,
    "language": "en",
    "proxyConfiguration": { "useApifyProxy": False },
}

# Run the Actor and wait for it to finish
run = client.actor("socialdataapi/youtube-trending-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 '{
  "hashtags": [
    "trendingshorts"
  ],
  "maxItems": 20,
  "language": "en",
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}' |
apify call socialdataapi/youtube-trending-shorts-scraper --silent --output-dataset

```

## MCP server setup

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