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

Keep YouTube search results in rows you can compare. Start with YouTube searches or result URLs; each returned search result keeps titles, authors, search term, view counts, and publication dates.

- **URL**: https://apify.com/reapx/youtube-search-scraper.md
- **Developed by:** [ReapX](https://apify.com/reapx) (community)
- **Categories:** Social media, Videos, For creators
- **Stats:** 2 total users, 1 monthly users, 93.1% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.97 / 1,000 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?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## YouTube Search Scraper

Keep YouTube search results in rows you can compare. Start with YouTube searches or result URLs; each returned search result keeps titles, authors, search term, view counts, and publication dates.

![YouTube Search Scraper source page and returned record](https://reapx.dev/assets/products/youtube-search-scraper/readme.png?v=20260826)

### What it returns

Each row keeps the YouTube source record beside the fields needed to use it. The opening set is `whatIFound`, `title`, `url`, `author`, `publishedAt`, `views`, `likes`, `duration`, `description`, `image`, `videoId`, and `thumbnail`. The complete schema is declared before the run, and dataset views keep related fields together without changing the underlying row.

#### Captured row

```json
{
  "duration": "PT49M43S",
  "videoId": "7eh4d6sabA0"
}
```

### Input

![YouTube Search Scraper published input controls](https://reapx.dev/assets/products/youtube-search-scraper/schema.png?v=20260826)

![YouTube Search Scraper input-to-run walkthrough](https://reapx.dev/assets/products/youtube-search-scraper/demo.webp?v=20260826)

YouTube Search Scraper accepts source URLs. Run controls stay in the same form.

| Field | What it controls | Starting value |
| --- | --- | --- |
| `startUrls` | Enter YouTube search terms or identifiers, one per line. | `["machine learning tutorial","python course"]` |
| `maxItems` | Stop after this many dataset rows. | `100` |
| `maxSeconds` | Stop after this many seconds and keep completed rows. | `240` |

#### Example input

```json
{
  "startUrls": [
    "machine learning tutorial",
    "python course"
  ],
  "maxItems": 3,
  "maxSeconds": 240
}
```

No field is required. Start with the filled example, then replace only the target values needed for the job. Run controls can stay at their starting values for the first collection.

### Dataset fields

![YouTube Search Scraper declared output schema](https://reapx.dev/assets/products/youtube-search-scraper/fields.png?v=20260826)

| Field | Type |
| --- | --- |
| `whatIFound` | `string` |
| `title` | `string` |
| `url` | `string` |
| `author` | `string` |
| `publishedAt` | `string` |
| `views` | `integer` |
| `likes` | `integer` |
| `duration` | `string` |
| `description` | `string` |
| `image` | `string` |
| `videoId` | `string` |
| `thumbnail` | `string` |
| `viewCount` | `integer` |
| `videoUrl` | `string` |
| `scrapedAt` | `string` |
| `playabilityStatus` | `string` |
| `searchTerm` | `string` |
| `viewCountExact` | `boolean` |

### Dataset views

Views are working surfaces for review and export. They select and order fields while leaving the stored row unchanged.

| View | Opening fields |
| --- | --- |
| `overview` | `whatIFound`, `title`, `author`, `description`, `views`, `likes`, `duration`, and `viewCount` |
| `answer` | `title`, `author`, `url`, and `whatIFound` |
| `identity` | `title`, `author`, and `playabilityStatus` |
| `content` | `title`, `author`, `url`, `description`, and `publishedTimeText` |
| `engagement` | `title`, `author`, `url`, `views`, `likes`, `duration`, `viewCount`, and `viewCountExact` |
| `media` | `title`, `author`, `url`, `image`, `videoId`, `thumbnail`, and `videoUrl` |

### Output and exports

| Output | Type | Destination |
| --- | --- | --- |
| `results` | `string` | `{{links.apiDefaultDatasetUrl}}/items` |
| `json` | `string` | `{{links.apiDefaultDatasetUrl}}/items?clean=true&format=json` |
| `csv` | `string` | `{{links.apiDefaultDatasetUrl}}/items?clean=true&format=csv` |
| `excel` | `string` | `{{links.apiDefaultDatasetUrl}}/items?clean=true&format=xlsx` |
| `jsonl` | `string` | `{{links.apiDefaultDatasetUrl}}/items?clean=true&format=jsonl` |

Completed rows are available in the Apify dataset as JSON, CSV, Excel, and JSONL exports. The run output also carries the declared links above for API clients and automations.

### Pricing

$3.45 per 1,000 dataset items on the Free plan. Other Apify plans use the rates shown in the Pricing tab.

### Console, API, schedules, and MCP

![YouTube Search Scraper API and MCP invocation](https://reapx.dev/assets/products/youtube-search-scraper/api.png?v=20260826)

Runs can begin in Apify Console, from a saved task, or through the Actor API. A schedule can reuse the same input, and a run-finished webhook can pass the dataset or run ID to the next system.

```text
POST https://api.apify.com/v2/acts/LYA2dKPQIloSJ5zUz/runs
GET  https://api.apify.com/v2/datasets/{datasetId}/items
```

For MCP selection, use **YouTube Search Scraper**. Its machine entry carries the same description, input field names, no-required-field contract, output types, dataset fields, views, and pricing facts as this document.

### Saved tasks

Twenty saved-task products cover distinct lookup, comparison, research, operations, automation, and export jobs:

- **YouTube Search duration core timeline**: buyer-job; opens `overview`.
- **YouTube Search finding and titles finding brief**: buyer-job; opens `answer`.
- **YouTube Search authors identity match file**: buyer-job; opens `identity`.
- **YouTube Search content titles copy review**: buyer-job; opens `content`.
- **YouTube Search response signal ranking**: buyer-job; opens `engagement`.
- **YouTube Search images image file**: buyer-job; opens `media`.
- **YouTube Search video IDs thumbnails core**: buyer-job; opens `overview`.
- **YouTube Search answer finding result handoff**: buyer-job; opens `answer`.
- **YouTube Search authors titles identity**: buyer-job; opens `identity`.
- **YouTube Search descriptions content brief**: buyer-job; opens `content`.
- **YouTube Search like counts audience sizing**: buyer-job; opens `engagement`.
- **YouTube Search video IDs and thumbnails gallery view**: buyer-job; opens `media`.
- **YouTube Search finding decision file**: buyer-job; opens `overview`.
- **YouTube Search finding answer decision file**: buyer-job; opens `answer`.
- **YouTube Search authors handoff**: buyer-job; opens `identity`.
- **YouTube Search titles descriptions content**: buyer-job; opens `content`.
- **YouTube Search view counts and view count exact rating view**: buyer-job; opens `engagement`.
- **YouTube Search media thumbnails creative set**: buyer-job; opens `media`.
- **YouTube Search descriptions reading list**: buyer-job; opens `overview`.
- **YouTube Search finding titles answer**: buyer-job; opens `answer`.

### Integrations

Use the dataset API from any HTTP client, export rows to a spreadsheet, or send the run ID through an Apify webhook. Saved tasks give schedules and automation tools a stable input without changing the Actor contract.

### Related products

- [YouTube Data Export Scraper](https://apify.com/reapx/youtube-data-export-scraper)
- [YouTube Profile Scraper](https://apify.com/reapx/youtube-profile-scraper)
- [YouTube Transcript Scraper](https://apify.com/reapx/youtube-transcript-scraper)
- [Instagram Bulk Export Scraper](https://apify.com/reapx/instagram-bulk-export-scraper)
- [TikTok Data Export Scraper](https://apify.com/reapx/tiktok-data-export-scraper)

### When a run needs attention

- **No rows:** Open the target in a browser, check spelling and source visibility, then retry the saved example before widening the input.
- **A field is empty:** Check the field beside its source URL. A missing source value stays empty instead of being replaced with a guess.
- **A target fails:** Keep successful targets in the dataset, then retry only the affected input.
- **An automation cannot find results:** Read the dataset ID from the run and request its items endpoint directly.

### FAQ

#### What do I get back from one run?

One row per search with 19 declared fields, opening on whatIFound, title, url and author. The schema is published before the run, so you know the shape before you spend anything.

#### Do I need a youtube account or login?

No. The run works from the youtube sources you supply in the input. Nothing is posted, changed or accessed on your behalf.

#### What does a run cost?

The current rate is shown on the Pricing tab and is charged per row you receive, so a run that finds nothing costs close to nothing. Cap the run with the item limit when you want a predictable ceiling.

#### Can I try it before committing budget?

Yes. Cap the run with the item limit in the input and inspect the first rows. The cap is enforced before charging, so a trial run stays a trial.

#### What do I put in the input?

The staged input is already usable: startUrls, maxItems and maxSeconds. Replace the staged target with your own list when you are ready to run for real.

#### Are any fields required?

No field is required. Every input carries a working default, so the Actor can be started as-is and refined afterwards.

#### How do I report a problem?

Open an issue on the Actor with the run ID, the input you used and the field or row that needs attention. The run ID lets the exact execution be inspected.

#### How is this different from YouTube Data Export Scraper?

YouTube Search Scraper answers one job: Keep YouTube search results in rows you can compare.. YouTube Data Export Scraper covers a different question on the same platform. Run both when you need both sides.

#### What is `playabilityStatus` for?

It records how the row was resolved, so you can filter to the rows you trust instead of treating every row as equally certain.

#### How do I read the output without scrolling through JSON?

Open the overview view on the Output tab. 6 views ship with the Actor (overview, answer, identity, content, engagement and media), each grouping the fields that belong to one question.

#### How do I get the data into my own tools?

Export the dataset as JSON, CSV, Excel or XML, call the dataset API directly, or attach a run-finished webhook and collect the dataset reference as soon as the run ends.

#### Can an agent or LLM call this?

Yes. YouTube Search Scraper is exposed over MCP with the same description, no-required-field input contract and output types shown here, so an agent can select and call it without a human in the loop.

#### Why is a value empty on some rows?

youtube does not expose every field on every search. An absent value stays empty rather than being filled with a guess, so a row never invents a fact it did not receive.

#### A run returned fewer rows than I expected. Why?

The usual causes are a narrow source list, an item cap still set low, or a source that genuinely holds less than expected. Widen the input or raise the cap and run again.

#### Can I schedule this to run on its own?

Yes. Save the input as an Apify task and attach a schedule. Keep separate tasks when different teams need different targets or delivery paths.

#### Do I need to configure proxies?

No. Network access is handled inside the Actor and needs no proxy configuration from you.

#### How fresh is the data?

Every row is collected during the run you start, not served from a cache. Re-run the same input whenever you need the current state of a youtube search.

#### Can I use the results commercially?

The Actor collects publicly accessible youtube information. You remain responsible for how you use it, including any privacy or contractual obligations that apply to your business.

#### How do I compare two runs?

Keep whatIFound and title as your join key and diff the exports. The identity fields stay stable across runs, which is what makes a comparison meaningful.

#### What happens if a source fails mid-run?

The run continues through the remaining sources and finishes with what it collected. Partial results are still written to the dataset rather than discarded.

#### Can I limit how long a run takes?

Yes. The maxItems input caps the run. Use it when you need a predictable cost and a predictable finish time.

### Support

Use the Actor issue form for product questions, broken source routes, schema mismatches, and feedback. Include the smallest input that reproduces the problem. That is enough to locate the run and its dataset without sharing an entire working list.

Use this Actor only for data you are allowed to collect. Follow source terms, privacy law, and your own retention policy.

# Actor input Schema

## `startUrls` (type: `array`):

Enter YouTube search terms or identifiers, one per line.

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

Stop after this many dataset rows.

## `maxSeconds` (type: `integer`):

Stop after this many seconds and keep completed rows.

## Actor input object example

```json
{
  "startUrls": [
    "machine learning tutorial",
    "python course"
  ],
  "maxItems": 10,
  "maxSeconds": 240
}
```

# Actor output Schema

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

Open all returned YouTube Search Scraper rows with 19 declared fields and 6 working views.

## `json` (type: `string`):

Retrieve clean YouTube Search Scraper records for API, MCP, or webhook use.

## `csv` (type: `string`):

Download the YouTube Search Scraper table for spreadsheets and data tools.

## `excel` (type: `string`):

Open the YouTube Search Scraper rows as an Excel workbook.

## `jsonl` (type: `string`):

Stream one clean YouTube Search Scraper record per line for downstream processing.

# 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 = {
    "startUrls": [
        "machine learning tutorial",
        "python course"
    ],
    "maxItems": 10,
    "maxSeconds": 240
};

// Run the Actor and wait for it to finish
const run = await client.actor("reapx/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 = {
    "startUrls": [
        "machine learning tutorial",
        "python course",
    ],
    "maxItems": 10,
    "maxSeconds": 240,
}

# Run the Actor and wait for it to finish
run = client.actor("reapx/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 '{
  "startUrls": [
    "machine learning tutorial",
    "python course"
  ],
  "maxItems": 10,
  "maxSeconds": 240
}' |
apify call reapx/youtube-search-scraper --silent --output-dataset

```

## MCP server setup

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