# YouTube Search Scraper (`lergassy/youtube-search-scraper`) Actor

\[$0.50/1K results] YouTube search results as rows — videos, Shorts or channels — with YouTube's filters: upload date, duration, popularity, live, subtitles, 4K. Title, views, age, duration, channel, position. No API key, no run fee.

- **URL**: https://apify.com/lergassy/youtube-search-scraper.md
- **Developed by:** [Matvey](https://apify.com/lergassy) (community)
- **Categories:** Videos, SEO tools, Agents
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.35 / 1,000 search results

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 Search Scraper** turns YouTube searches into rows: **title, views, upload age, duration, description snippet, channel and link** for every video — or **Shorts**, or **channels with subscribers**. It uses YouTube's own filters: **upload date, duration, popularity, live, subtitles, HD, 4K, Creative Commons**.

**$0.0005 per result** — 50 cents per 1,000. No API key, no YouTube quota, no login, no start fee.

### What is YouTube Search Scraper?

The YouTube Data API charges 100 quota points per search and stops at 10,000 points a day. This Actor reads YouTube's search the way the website does, scrolls as far as YouTube goes, and gives you clean rows. Use it for keyword research, rank tracking of your videos, finding channels in a niche, or fresh-video monitoring.

Need likes, comments and exact dates for every video? Use our **YouTube Scraper** — same searches, full numbers, $0.0015 per video.

### What is in every row

| Field | Meaning |
|---|---|
| `query`, `position` | Which search and which place in the results — ready for rank tracking |
| `title`, `url`, `videoId`, `thumbnailUrl` | The video |
| `views`, `publishedText`, `duration`, `isLive`, `badges` | As YouTube shows them |
| `descriptionSnippet` | Text under the result |
| `channelName`, `channelUrl`, `channelId`, `channelVerified` | The channel |
| Channel results: `title`, `handle`, `subscribers`, `descriptionSnippet`, `avatarUrl` | With **Results = Channels** |

### How much does it cost?

| Event | Price |
|---|---|
| Search result | **$0.0005** |

- All filters are free.
- Results below **Minimum views**: **$0**.
- Searches that fail: **$0**.

#### Bulk export: what 50,000 rows actually cost

This Actor is built for bulk jobs — hundreds of inputs in one run, or a daily schedule. There is **no
fee per run, no fee per page and no proxy charge**: you pay for the rows you keep.

| Job | This Actor | Most-used Actor in this category |
|---|---|---|
| 50,000 results across 100 runs | **$25** | $125 + start fees |
| 500 keywords × 20 results a day for a month | **$150** | $750 + start fees |

Checked on the Apify Store on 23 September 2026 against the Actor with the most monthly users in this category
($0.0025 per result plus a fee per run). Some Actors here ask less per row — this table compares against the one buyers actually use most.

### How to use it in three steps

1. Type your searches — one per line.
2. Pick **Results** (videos, Shorts or channels) and the filters you need.
3. Press **Start**, then download JSON, CSV or Excel — or schedule it daily for rank tracking.

### ⬇️ Input

```json
{
  "searchQueries": ["bali villa tour", "n8n tutorial"],
  "resultType": "video",
  "maxResultsPerQuery": 50,
  "uploadDate": "week",
  "features": ["subtitles"]
}
```

### ⬆️ Output

```json
{
  "query": "bali villa tour",
  "position": 1,
  "videoId": "ok8U99v7fH4",
  "url": "https://www.youtube.com/watch?v=ok8U99v7fH4",
  "title": "Why Does This 1BR Feel So Big? |  Calula Beach house Tour",
  "viewsText": "5 views",
  "views": 5,
  "publishedText": "41 min ago",
  "duration": "1:45",
  "isLive": false,
  "descriptionSnippet": "Sun-filled spaces, soaring vaulted ceilings, and your own private plunge pool create the perfect setting to slow down after ...",
  "channelName": "Dream Villas in Bali",
  "channelId": "UCmP0V-XP-PJbm78i61YxVDA",
  "channelUrl": "https://www.youtube.com/@house_of_reservations",
  "channelVerified": false,
  "badges": [
    "New"
  ],
  "thumbnailUrl": "https://i.ytimg.com/vi/ok8U99v7fH4/hqdefault.jpg",
  "type": "video",
  "scrapedAt": "2026-09-23T12:41:16.818Z"
}
```

Channel result:

```json
{
  "query": "bali real estate",
  "position": 1,
  "type": "channel",
  "channelId": "UCjTpeTMJSizH5jBBj1VKRhA",
  "title": "Pure Land Real Estate in Bali",
  "handle": "PurelandBali",
  "url": "https://www.youtube.com/@PurelandBali",
  "subscribersText": "785 subscribers",
  "subscribers": 785,
  "videosText": null,
  "videoCount": null,
  "descriptionSnippet": "Purchase & Sell Real Estates in Bali - Find holiday & Long-term rentals - Villa Management Services - Interior/Exterior …",
  "verified": false,
  "avatarUrl": "https://yt3.ggpht.com/H7O31q9wBnwtVe3ukl_dBxXUX3BgPB9GL20A7liHdS3RcfYPCYfjZ5G6dFnwdQIfmx9aOeKf_w=s176-c-k-c0x00ffffff-no-rj-mo",
  "scrapedAt": "2026-09-23T12:41:17.368Z"
}
```

### Use cases

#### Rank tracking

Your video's `position` for your target keywords, every day.

#### Keyword and topic research

What ranks for a keyword this week, how many views it has and how long it is.

#### Channel discovery

**Results = Channels** — creators in a niche with subscribers, for outreach or partnerships.

#### Fresh-video monitoring

**Upload date = Last hour / Today** on your brand name.

### Integrations

Every run is available through the Apify API, and the Actor works out of the box with n8n, Make, Zapier, Google Sheets, LangChain and the Apify MCP server.

### FAQ

**Do I need a YouTube API key?** No. There is no quota either.

**How many results per search?** As many as YouTube scrolls to — usually several hundred for popular searches.

**Can I sort by upload date?** YouTube now offers only Relevance and Popularity; use **Upload date** for the newest videos.

**Why is `publishedText` "3 days ago"?** That is what search shows. For calendar dates, likes and comments use our **YouTube Scraper**.

**Is this legal?** The Actor reads public pages that anyone can open without logging in. Use the data in line with YouTube's terms and your local law.

# Actor input Schema

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

One search per line — exactly what you would type into YouTube.

## `resultType` (type: `string`):

Videos, Shorts or channels (channels come with subscribers, handle and description).

## `maxResultsPerQuery` (type: `integer`):

YouTube keeps scrolling for several hundred results on popular searches.

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

YouTube's own ordering — the same two options the site offers.

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

Only videos uploaded in this window. Use it to get the newest videos.

## `duration` (type: `string`):

YouTube's duration filter.

## `features` (type: `array`):

YouTube's feature filters — pick any.

## `minViews` (type: `integer`):

Skip smaller results. Skipped results are not charged.

## `concurrency` (type: `integer`):

How many searches to run at the same time.

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

Requests go to YouTube directly first; a refused request is retried on a fresh Apify datacenter address. Residential is never switched on by itself.

## Actor input object example

```json
{
  "searchQueries": [
    "bali villa tour",
    "n8n tutorial"
  ],
  "resultType": "video",
  "maxResultsPerQuery": 20,
  "sortBy": "relevance",
  "uploadDate": "any",
  "duration": "any",
  "minViews": 0,
  "concurrency": 4,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

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

One row per YouTube search result: video, Short or channel.

# 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": [
        "bali villa tour",
        "n8n tutorial"
    ],
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("lergassy/youtube-search-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 = {
    "searchQueries": [
        "bali villa tour",
        "n8n tutorial",
    ],
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("lergassy/youtube-search-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 '{
  "searchQueries": [
    "bali villa tour",
    "n8n tutorial"
  ],
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call lergassy/youtube-search-scraper --silent --output-dataset

```

## MCP server setup

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