# YouTube Search Scraper: New Video Monitor + Transcripts (`ai_simplified/youtube-search-scraper`) Actor

Search YouTube by keyword with upload date and length filters. Get title, channel, views, length and link for every video, add transcripts, or schedule it to return only the new videos since your last run. $1.00 per 1,000 videos on Free, $0.50 on Starter.

- **URL**: https://apify.com/ai_simplified/youtube-search-scraper.md
- **Developed by:** [AI Simplified](https://apify.com/ai_simplified) (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.30 / 1,000 video returneds

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 searches YouTube by keyword and returns every video as a clean row: title, channel, upload
date, views, length and link. Filter by upload date and length, add **what each video says** (transcripts), or
schedule it to get **only the new videos** since your last check. **$1.00 per 1,000 videos on the Free plan, $0.50
on Starter**, less on bigger plans.

### What does YouTube Search Scraper do?

You give it the words you would type into YouTube's search box: a brand, a competitor, a product or a topic. It
returns the videos YouTube shows for each search, in YouTube's order, as structured data you can download or send
to your own tools.

- **Search with YouTube's own filters.** Upload date (today, this week, this month, this year) and length (under 4
  minutes, 4 to 20 minutes, over 20 minutes).
- **Only new videos.** Turn on monitor mode and schedule it: each run returns only videos that appeared since the
  last one. You pay a tenth of a cent per search checked, and nothing for videos you've already had.
- **Transcripts in the same run.** Add the plain-text transcript of each video, ready to read, search or give to AI.
  Charged only when a transcript comes back.
- **Many searches at once.** Up to 100 queries per run, 4 searched in parallel. A video that matches several of
  your searches is returned and charged once.
- **Reliable by design.** If YouTube refuses a request or sends an incomplete page, the scraper asks again from a
  fresh connection before giving up. In our acceptance test 32 of 32 searches succeeded.

### Who is it for?

- **Marketers and brand teams** tracking new videos about their brand, product or competitors.
- **Agencies** building content and competitor reports for clients.
- **Creators and researchers** finding what's being published on a topic, and how fast.
- **AI builders** collecting fresh videos and transcripts for summaries, newsletters or RAG pipelines.
- **AI agents** that need YouTube search as a tool (see the MCP section below).

### How to use it

1. Click **Try for free** (or Start).
2. Add one or more search queries.
3. Pick an upload date and length if you want, and turn on **Add transcripts** to read what the videos say.
4. Run it, then download the videos as JSON, CSV or Excel, or connect them to your app.

#### Examples

The top 50 videos for a search:

```json
{ "searchQueries": ["notion ai"] }
```

Long videos (over 20 minutes) from this week on two topics:

```json
{ "searchQueries": ["openai", "formula 1"], "uploadDate": "week", "duration": "long", "maxResultsPerQuery": 30 }
```

Ten videos with their transcripts:

```json
{ "searchQueries": ["ted talk learning"], "maxResultsPerQuery": 10, "includeTranscripts": true }
```

A daily monitor of new videos about your brand and two competitors (schedule this input to run every day):

```json
{ "searchQueries": ["notion", "clickup", "monday.com"], "uploadDate": "week", "onlyNewVideos": true }
```

### Input

| Field | What it does |
|---|---|
| `searchQueries` | What you'd type into YouTube's search box, one per line. Repeats are searched once. |
| `maxResultsPerQuery` | Results to read per query, 1 to 200 (default 50). You pay per video returned. |
| `uploadDate` | `any`, `today`, `week`, `month` or `year`. |
| `duration` | `any`, `short` (under 4 minutes), `medium` (4 to 20 minutes) or `long` (over 20 minutes). |
| `onlyNewVideos` | Monitor mode: return only videos that appeared since this monitor's previous run. |
| `monitorName` | Optional: keeps separate "already seen" lists, for example one per client. |
| `includeTranscripts` | Add each video's transcript ($2.50 per 1,000, only when one is returned). |
| `transcriptLanguage` | Optional two-letter code (`en`, `es`...). Empty = the video's own language. |

### Output

One item per video. A real result (shortened):

```json
{
  "query": "notion ai",
  "rank": 1,
  "videoId": "ofzHbyxkpVg",
  "url": "https://www.youtube.com/watch?v=ofzHbyxkpVg",
  "title": "I knew AI + Notion would be good, but this... wow.",
  "channel": "Jeff Su",
  "channelId": "UCwAnu01qlnVg1Ai2AbtTMaA",
  "channelHandle": "@JeffSu",
  "channelUrl": "https://www.youtube.com/channel/UCwAnu01qlnVg1Ai2AbtTMaA",
  "durationSeconds": 861,
  "viewCount": 116592,
  "publishedDateApprox": "2026-11-01",
  "description": "Grab my free Cowork Toolkit: ...",
  "thumbnail": "https://i.ytimg.com/vi/ofzHbyxkpVg/hq720.jpg",
  "liveStatus": null,
  "fieldsComplete": true,
  "alsoMatchedQueries": []
}
```

- `rank` is the video's position in YouTube's results for that query.
- `publishedDateApprox` comes from YouTube's "3 days ago" label, so it can be a day or so out (more for "2 months
  ago").
- `liveStatus` is `is_live`, `was_live`, `is_upcoming` or empty; live streams show `concurrentViewers`.
- `alsoMatchedQueries` lists your other searches in the same run that also found this video.
- In monitor mode: `monitorRun` (`baseline` or `update`) and `isNew`.
- With transcripts: `transcriptStatus` (`ok` is charged; `no_transcript`, `unavailable` and `blocked` are free),
  `transcript`, `transcriptLanguage` and `transcriptIsGenerated` (true for YouTube's automatic captions).

Each run also saves a `SUMMARY` record: for every query its status (`ok`, `no_results`, `blocked`, `error`,
`invalid`, `duplicate`, `skipped`), attempts, results scanned and returned, and in monitor mode how many were already
seen.

### Only new videos (monitor mode)

Turn on `onlyNewVideos`, set **Upload date = This week**, and schedule the run daily:

1. **The first run is the baseline.** It returns videos as a normal run does and remembers every video it read.
2. **Every later run returns only videos you haven't had.** Videos already returned under any of your searches are
   skipped and never charged. If a run stops at your cost limit, the new videos it didn't return come back next time.
3. **Each search checked costs $0.001**, plus the new videos returned. Failed checks are free.

Good to know:

- YouTube ranks by relevance, so a brand-new video rarely reaches the top of an unfiltered search. With "This week"
  the results are all recent and the monitor finds new uploads reliably.
- A check reads the top `maxResultsPerQuery` results (default 50). YouTube's ranking moves a little between requests,
  so the first update can include a few videos from the 2 days before your baseline.
- The memory lives in a key-value store named `ai-simplified-youtube-search-monitor` in your own Apify account. Each
  monitor name, query and filter choice is tracked separately; a query you add later starts with its own baseline.
  Delete the store to start fresh.
- If a baseline run stops at your cost limit, the videos it read but didn't return count as already seen.
- Run one monitor at a time: if two runs of the same monitor overlap, the last one to finish wins.

### How much does it cost?

| Event | Free | Starter | Scale | Business and above |
|---|---|---|---|---|
| Video returned | $1.00 per 1,000 | $0.50 per 1,000 | $0.40 per 1,000 | $0.30 per 1,000 |
| Transcript returned | $2.50 per 1,000 | $2.50 per 1,000 | $2.25 per 1,000 | $2.00 per 1,000 |
| Monitor check (monitor mode, per search) | $0.001 | $0.001 | $0.001 | $0.001 |

Plus a tiny start fee per run ($0.00005). Searches with no results, failures, videos without captions and
already-seen videos are free. Some examples:

- 50 videos for one search: **$0.05** on Free, **$0.025** on Starter.
- 200 videos for each of 5 searches: **$1.00** on Free, **$0.50** on Starter.
- 20 videos with transcripts: **$0.02** for the videos plus **up to $0.05** for the transcripts.
- A daily monitor of 10 searches for a month, about 5 new videos each a day: **$0.30** in checks plus **$1.50** in
  videos on Free (**$0.75** on Starter).

Set a maximum cost per run and the scraper stops cleanly when it's reached.

### Use it from an AI agent (MCP)

Connect Apify's MCP server (`https://mcp.apify.com`) to Claude, Cursor, VS Code or any MCP client and ask, for
example:

> "Find this week's YouTube videos about Notion AI, read their transcripts and tell me what people complain about."

### Use it from code (API)

Python:

```python
from apify_client import ApifyClient

client = ApifyClient("<YOUR_APIFY_TOKEN>")
run = client.actor("ai_simplified/youtube-search-scraper").call(
    run_input={"searchQueries": ["notion ai"], "uploadDate": "week", "maxResultsPerQuery": 20}
)
for video in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(video["publishedDateApprox"], video["viewCount"], video["title"])
```

Node.js:

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

const client = new ApifyClient({ token: '<YOUR_APIFY_TOKEN>' });
const run = await client.actor('ai_simplified/youtube-search-scraper').call({ searchQueries: ['canva tips'], maxResultsPerQuery: 50 });
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items.length, 'videos');
```

cURL (runs and returns the videos in one call):

```bash
curl -X POST "https://api.apify.com/v2/acts/ai_simplified~youtube-search-scraper/run-sync-get-dataset-items?token=<YOUR_APIFY_TOKEN>" \
  -H "Content-Type: application/json" \
  -d '{"searchQueries": ["formula 1"], "uploadDate": "today", "maxResultsPerQuery": 20}'
```

### Integrations

Like any Apify Actor, it connects to **Make, Zapier, n8n, Google Sheets, Slack** and **webhooks** from the
Integrations tab. Pair monitor mode with a daily **schedule** and a Slack or email integration to hear about new
videos on your brand or topic the day they appear.

### Limits

- Results are YouTube's videos tab as seen from the United States, in YouTube's relevance order. YouTube no longer
  applies "sort by upload date" to search, so we don't offer it; use the upload date filter instead.
- Up to 200 results per query. Niche searches can return fewer, and some return none (free).
- Videos only: no channel, playlist or Shorts-shelf results, comments or likes.
- Upload dates are approximate (see Output).
- Now and then YouTube sends a newer page layout that lacks channel names and views. The scraper asks again from a
  fresh connection; if that keeps happening, the videos come back with `fieldsComplete: false` (title, link, length
  and date only) and are charged as normal.
- Transcripts come from YouTube's captions (manual or automatic). Videos without captions and live streams have none.

### Is it legal to scrape YouTube search results?

The scraper reads YouTube's public search results, the same page anyone sees without logging in, and public
captions for transcripts. It collects no personal data beyond public channel names. Check that your use fits
YouTube's terms and the data protection rules where you are. This isn't legal advice.

### FAQ

**Why did I get fewer videos than I asked for?** YouTube shows fewer results for niche searches. The summary shows
how many each query found.

**Why did my monitor return nothing?** Nothing new appeared since the last run, or the search has no date filter
(see monitor mode). Each search checked is still listed in the summary.

**Why does a video have no transcript?** It has no captions, it's live, or YouTube refused the request. Those are
listed with a reason and not charged.

**Can I get subtitles as SRT or AI-ready chunks with timestamps?** Use our YouTube Transcript Scraper (below) on the
video links from this tool.

### More tools from AI Simplified

- [YouTube Transcript Scraper](https://apify.com/ai_simplified/youtube-transcript-scraper): transcripts from
  videos, channels, playlists or search, with SRT, VTT and AI-ready chunks that link to the exact second.
- [Google Ads Transparency Scraper](https://apify.com/ai_simplified/google-ads-transparency-scraper): any
  competitor's Google ads, what their video ads say, and only the new ads each day.
- [Career Page Jobs API](https://apify.com/ai_simplified/career-page-jobs): 577,000+ jobs straight from company
  career pages on Workday, Greenhouse, Lever and Ashby.

### Support

Found a problem or need a feature? Open an issue on the **Issues** tab. We read every one.

# Actor input Schema

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

What you would type into YouTube's search box, one per line (brand names, competitors, topics). Repeated queries are searched once.

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

How many results to read for each query, in YouTube's order (1 to 200). You pay per video returned. In 'Only new videos' mode this is how deep each check looks.

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

YouTube's upload date filter. For a daily 'Only new videos' monitor, This week works best.

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

YouTube's video length filter.

## `onlyNewVideos` (type: `boolean`):

Return only videos that appeared since this monitor's previous run. The first run is the baseline and returns videos as normal. Each query checked costs $0.001; videos already seen are free. Use Upload date = This week and a daily schedule.

## `monitorName` (type: `string`):

Optional. Keeps separate 'already seen' lists, e.g. one per client. Each query and filter choice is tracked separately anyway.

## `includeTranscripts` (type: `boolean`):

Add what each video says (plain text from its captions). Charged only when a transcript is returned ($2.50 per 1,000); videos without captions, live streams and failures are free.

## `transcriptLanguage` (type: `string`):

Optional two-letter language code (e.g. en, es). Leave empty for the video's own language.

## Actor input object example

```json
{
  "searchQueries": [
    "notion ai"
  ],
  "maxResultsPerQuery": 20,
  "uploadDate": "any",
  "duration": "any",
  "onlyNewVideos": false,
  "monitorName": "default",
  "includeTranscripts": false
}
```

# Actor output Schema

## `videos` (type: `string`):

One item per video: title, channel, approximate upload date, views, length, link, query and rank, plus transcripts if asked.

## `summary` (type: `string`):

Per query: status, attempts, results scanned and returned, and in monitor mode how many were already seen.

# 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": [
        "notion ai"
    ],
    "maxResultsPerQuery": 20
};

// Run the Actor and wait for it to finish
const run = await client.actor("ai_simplified/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": ["notion ai"],
    "maxResultsPerQuery": 20,
}

# Run the Actor and wait for it to finish
run = client.actor("ai_simplified/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": [
    "notion ai"
  ],
  "maxResultsPerQuery": 20
}' |
apify call ai_simplified/youtube-search-scraper --silent --output-dataset

```

## MCP server setup

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