# YouTube Shorts Scraper: Search by Keyword or Hashtag (`veenkes/veenkes-youtube-shorts`) Actor

Scrape YouTube Shorts by keyword or #hashtag without an API key: title, exact views, likes, comments, publish date, duration, hashtags, description and channel with subscribers. Upload date filter. Export to CSV or JSON.

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

## Pricing

from $0.60 / 1,000 short saveds

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## YouTube Shorts Scraper: Search by Keyword or Hashtag

A **YouTube Shorts scraper** for keywords and **#hashtags** — no login, no API key. Get the Shorts YouTube shows for a topic with **exact views, likes, comment count, publish date, duration, hashtags, description** and the **channel with subscribers**.

Find viral Shorts, trending formats and creators in any niche. Export to CSV, Excel or JSON.

### Why use this YouTube Shorts scraper?

- \#️⃣ **Hashtags and keywords:** `#cooking` opens the hashtag Shorts feed; plain words use YouTube search with the Shorts filter.
- 🔢 **Exact stats included:** views and likes as integers, comment count, publish date.
- 👤 **Creator data:** channel name, handle and subscribers on every row — ready for influencer outreach.
- 🗓️ **Date filters:** upload date for searches and `Published since` for any query.
- 💸 **No extra fee for date filters or details.**
- 💸 **From $0.60 per 1,000 Shorts.** No monthly rental.

### Who is it for?

- **Influencer marketers:** find Shorts creators by topic with subscribers and real views.
- **Social media managers:** spot trending formats and hashtags.
- **Brands:** monitor Shorts mentioning a product.
- **Researchers:** collect short-form video datasets.

### What data does it extract?

| Field | Example |
|---|---|
| `query`, `position` | `#cooking`, `1` |
| `videoId`, `url`, `title`, `thumbnail` | `https://www.youtube.com/shorts/29a7_Y0WIOo` |
| `viewCount`, `likeCount`, `commentCount` | `10048613`, `512000`, `2400` |
| `publishDate`, `durationSeconds` | `2025-04-20T11:57:02-07:00`, `36` |
| `hashtags`, `description`, `keywords`, `category` | `["#cooking", "#recipe"]` |
| `channelName`, `channelHandle`, `channelId`, `channelUrl`, `channelSubscriberCount` | creator |

### How to use it

1. Enter **keywords or #hashtags**.
2. Set **max Shorts per query** and optional **date filters**.
3. Click **Start** and export, or schedule it to catch new viral Shorts every day.

### Run it from the API

You can start this Actor from any language with the official [Apify API client](https://docs.apify.com/api/client/python). Replace `YOUR_APIFY_TOKEN` with a token from [Apify Console > Integrations](https://console.apify.com/account/integrations). Never put the token in a public repo.

#### Python

```python
from apify_client import ApifyClient

client = ApifyClient("YOUR_APIFY_TOKEN")
run = client.actor("veenkes/veenkes-youtube-shorts").call(run_input={
    "searchQueries": [
        "#cooking",
        "iphone tips"
    ],
    "maxShortsPerQuery": 50,
    "includeDetails": True
})

for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)
```

#### JavaScript

```javascript
import { ApifyClient } from 'apify-client';

const client = new ApifyClient({ token: process.env.APIFY_TOKEN });
const run = await client.actor('veenkes/veenkes-youtube-shorts').call({
    "searchQueries": [
        "#cooking",
        "iphone tips"
    ],
    "maxShortsPerQuery": 50,
    "includeDetails": true
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items);
```

Schedule the Actor, send results to a webhook, or connect it in Zapier, Make or n8n. Store page: <https://apify.com/veenkes/veenkes-youtube-shorts>.

### Use from AI agents (Apify MCP)

AI agents can run this Actor through the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp). Connect Claude, Cursor or any MCP-compatible client to Apify, then ask the agent to call `veenkes/veenkes-youtube-shorts` with an input like the example above. The agent discovers the tool from the Actor title and description.

### How much does it cost?

| Apify plan tier | Price per 1,000 Shorts |
|---|---|
| FREE | $1.00 |
| BRONZE | $0.80 |
| SILVER | $0.70 |
| GOLD and above | $0.60 |

There is also a $0.00005 start fee per run.

### Input example

```json
{
    "searchQueries": [
        "#cooking",
        "iphone tips",
        "#fitness"
    ],
    "maxShortsPerQuery": 100,
    "includeDetails": true,
    "uploadDate": "month",
    "minDate": "2026-10-01"
}
```

### Output example

```json
{
    "query": "cooking",
    "position": 40,
    "videoId": "29a7_Y0WIOo",
    "url": "https://www.youtube.com/shorts/29a7_Y0WIOo",
    "title": "Trying to feed a picky eater #cooking #recipe #foodasmr #food",
    "viewCount": 10048613,
    "commentCount": 2400,
    "publishDate": "2025-04-20T11:57:02-07:00",
    "durationSeconds": 36,
    "hashtags": [
        "#cooking",
        "#recipe",
        "#foodasmr",
        "#food"
    ],
    "channelName": "Louis Gantus",
    "channelSubscriberCount": 1200000
}
```

The key-value store record `SUMMARY` lists every input with its status and the number of items saved.

### Limitations

- From Apify cloud IPs YouTube sometimes withholds the player data. Then `publishDate` comes from the watch page (date only), `durationSeconds` from search, and `keywords`, `category` and `uploadDate` can be empty. Turning on Apify Proxy (Residential) under Advanced may restore them.
- YouTube returns a limited number of Shorts per query (often a few hundred).
- If a creator hides likes, `likeCount` is empty.
- Comment counts above 1,000 are rounded by YouTube.

### Why this one?

Exact stats and creator details are included in the base price, with no separate fee for date filtering, at a fraction of the price of the most popular Shorts scraper.

### FAQ

**Do I need a YouTube API key?**
No.

**Can I scrape all Shorts of one channel?**
Yes, use [YouTube Channel Scraper](https://apify.com/veenkes/veenkes-youtube-channel-videos) with the Shorts tab.

**Is it legal?**
It reads public Shorts only. Please follow data protection laws when you process personal data.

***

### Integrations

- **Apify API** — Python and JavaScript clients (examples above), plus a REST API.
- **AI agents** — run it via the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp).
- **Automation tools** — Zapier, Make, n8n, or an Apify webhook when a run finishes.
- **Export** — download the dataset as JSON, CSV, Excel or XML, or load it from a scheduled run.

[Open the Actor in Apify Store](https://apify.com/veenkes/veenkes-youtube-shorts).

*Not affiliated with or endorsed by YouTube or Google LLC.*

# Actor input Schema

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

Search terms (e.g. 'cooking hacks') or hashtags (e.g. '#cooking'). Hashtags open YouTube's hashtag Shorts feed.

## `maxShortsPerQuery` (type: `integer`):

Maximum Shorts saved per keyword or hashtag.

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

Exact views and likes, comment count, publish date, duration, description and channel subscribers. Turn off for a faster list with title and rounded views only.

## `uploadDate` (type: `string`):

Keep only Shorts published in this window. Checked against each Short's publish date, so details are fetched and the run takes longer.

## `minDate` (type: `string`):

Only Shorts published on or after this date (needs details on).

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

Interface language code (hl).

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

Two-letter country code (gl) for regional results.

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

Not needed in most cases.

## Actor input object example

```json
{
  "searchQueries": [
    "#cooking"
  ],
  "maxShortsPerQuery": 30,
  "includeDetails": true,
  "uploadDate": "",
  "language": "en",
  "country": "US"
}
```

# Actor output Schema

## `shorts` (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 = {
    "searchQueries": [
        "#cooking"
    ],
    "maxShortsPerQuery": 30
};

// Run the Actor and wait for it to finish
const run = await client.actor("veenkes/veenkes-youtube-shorts").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 = {
    "searchQueries": ["#cooking"],
    "maxShortsPerQuery": 30,
}

# Run the Actor and wait for it to finish
run = client.actor("veenkes/veenkes-youtube-shorts").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 '{
  "searchQueries": [
    "#cooking"
  ],
  "maxShortsPerQuery": 30
}' |
apify call veenkes/veenkes-youtube-shorts --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,veenkes/veenkes-youtube-shorts"
        }
    }
}
```

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/7icXVznzfiZgCZfWO/builds/2pna5m5MHjktKHwUh/openapi.json
