# YouTube Search Results Scraper: $0.16 per 1,000 Results (`zaiqltd/youtube-search-results-scraper`) Actor

YouTube search results for any list of searches, without an API key: videos with title, channel, views, age, length and description, or the channels or playlists YouTube lists. Sort by relevance, date or views; filter by upload date and length; any country. $0.16 per 1,000 results.

- **URL**: https://apify.com/zaiqltd/youtube-search-results-scraper.md
- **Developed by:** [Zaiq](https://apify.com/zaiqltd) (community)
- **Categories:** Social media, Videos, SEO tools
- **Features:** Limited permissions
- **Stats:** 3 total users, 2 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.13 / 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 Results Scraper: videos, channels or playlists for any keyword, in YouTube's order (no API key)

Type searches and get **what YouTube shows for them, in order**: for videos the **title, channel, views, how long ago it was uploaded, length, description and thumbnail**; or the **channels** or **playlists** it lists instead. No API key, no quota and no login.

**Sort** by relevance, upload date, views or rating, **filter** by upload period and length, and read results **as any country sees them**. **$0.16 per 1,000 results**; a search with no results costs nothing.

### What you get

| Field | What it holds |
|---|---|
| Video results | `title`, `url`, `videoId`, `viewCount`, `publishedAgo`, `durationSeconds`, `description`, `thumbnail`, `isLive`, `isShort` |
| Channel of the video | `channelName`, `channelId`, `channelUrl`, `channelVerified` |
| Channel results | `name`, `handle`, `url`, `subscribers`, `description`, `verified` |
| Playlist results | `title`, `url`, `playlistId`, `channelName` |
| Every row | `kind`, `input` (the search), `scrapedAt` |

### What people use it for

- **Keyword and topic research:** what ranks for a search and how many views it gets
- **YouTube SEO:** track which videos hold the top places for your keywords
- **Trend spotting:** sort by upload date and filter to this week
- **Competitor monitoring:** who shows up for the searches you care about
- **AI agents:** let a model search YouTube and read the results

### How to use it

1. Type one or more **searches**, one per line.
2. Choose **what to list**, the **order**, and any **filters**.
3. Click **Start** and open the **Results** table.

### Input

| Field | Example | Notes |
|---|---|---|
| Searches | `how to bake sourdough bread` | One per line |
| Results per search | `20` | Up to 500 |
| What to list | Videos | Or channels or playlists |
| Sort by | Relevance | Or date, views, rating |
| Uploaded in the last | Any time | Hour, day, week, month or year |
| Video length | Any length | Under 4, 4 to 20, over 20 minutes |
| Country | `US` | Two-letter code |

### Output

Each result is one row in the run's dataset (download it as JSON, CSV, Excel, XML or HTML, or read it through the API). An example row (values shortened):

```json
{
  "input": "how to bake sourdough bread",
  "kind": "video",
  "videoId": "XXXXXXXXXXX",
  "url": "https://www.youtube.com/watch?v=XXXXXXXXXXX",
  "title": "How To Make Sourdough Bread Masterclass",
  "channelName": "Example Cooking Channel",
  "channelId": "UCxxxxxxxxxxxxxxxxxxxxxx",
  "channelUrl": "https://www.youtube.com/@examplecooking",
  "channelVerified": false,
  "viewCount": 16409691,
  "publishedAgo": "8 years ago",
  "durationSeconds": 969,
  "description": "We've collected some of the most-asked questions from your comments ...",
  "thumbnail": "https://i.ytimg.com/vi/XXXXXXXXXXX/hq720.jpg",
  "isLive": false,
  "isShort": false,
  "scrapedAt": "2026-11-13T11:16:37Z"
}
```

A record named `SUMMARY` in the run's key-value store says what each input returned, with any notes (for example an account that does not exist), what was charged and how much traffic the run used.

### Pricing

- **$0.00016 per result** ($0.16 per 1,000)
- A search with no results costs nothing
- Apify's start fee is $0.00005 per run
- Launch price. It may rise later; Apify emails every user 14 days before any price increase takes effect, and a rise can happen at most once a month.

What typical jobs cost at the list price:

| Job | Cost |
|---|---|
| 20 results for one search | $0.0032 |
| 50 searches, 20 results each | $0.16 |
| 1,000 results | $0.16 |
| 100 searches, 50 results, every day for a month | $24.00 |

On Apify's Scale and Business plans the per-event prices are lower (Store discounts). Set **Maximum cost per run** and the Actor stops cleanly when it is reached: you never pay more than that.

### Tips

- For rank tracking, keep the same searches, country and order, and schedule a daily run.
- Sort by **Upload date** with **Uploaded in the last: Week** to see what is new on a topic.
- Need likes and exact dates? Pass the video links to the YouTube Video Details Scraper.

### Use it through the API

**Python**

```python
from apify_client import ApifyClient

client = ApifyClient("<YOUR_APIFY_TOKEN>")
run = client.actor("zaiqltd/youtube-search-results-scraper").call(run_input={"searches": ["how to bake sourdough bread"], "maxResultsPerSearch": 50, "sort": "views"})
for row in client.dataset(run.default_dataset_id).iterate_items():
    print(row)
```

**JavaScript**

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

const client = new ApifyClient({ token: '<YOUR_APIFY_TOKEN>' });
const run = await client.actor('zaiqltd/youtube-search-results-scraper').call({"searches": ["how to bake sourdough bread"], "maxResultsPerSearch": 50, "sort": "views"});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
```

**HTTP (one call, results back)**

```bash
curl -X POST 'https://api.apify.com/v2/acts/zaiqltd~youtube-search-results-scraper/run-sync-get-dataset-items?token=<YOUR_APIFY_TOKEN>' \
  -H 'Content-Type: application/json' \
  -d '{"searches": ["how to bake sourdough bread"], "maxResultsPerSearch": 50, "sort": "views"}'
```

### Integrations and schedules

- **Schedules:** run it every hour, day or week from the Apify Console (Schedules) and keep a history of results.
- **Make, Zapier, n8n, Google Sheets, Slack, Airtable:** connect it through Apify's integrations, or send each finished run to a **webhook**.
- **Datasets:** results stay in the run's dataset; export them or read them by API whenever you need them.

### Use it with AI agents (MCP)

Add Apify's MCP server with this Actor already pinned (`https://mcp.apify.com?tools=zaiqltd/youtube-search-results-scraper`) to Claude, ChatGPT, Cursor, VS Code or any MCP client. The agent can find this Actor and run it for you: ask it for "the top 20 YouTube videos for 'standing desk review' sorted by views". AI agents can also pay for runs directly through Apify's agentic payments.

### Limits

- Public YouTube data only, read signed out: private, deleted and age-restricted videos are not returned.
- Counts are what YouTube shows at the moment of the run; they change all the time.
- Public data only: you are responsible for how you use it under YouTube's terms and the laws that apply to you.
- Search results show how long ago a video was uploaded ("3 weeks ago"), not the exact date, and no like counts.
- YouTube decides how many results a search has; narrow searches can end before your limit.

### FAQ

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

No. No key and no quota.

**Is the order the same as on YouTube?**

Yes: rows come in the order YouTube returns them for the country and sort you chose.

**Can I get only this week's videos?**

Yes: set Uploaded in the last to Week.

**Can I list channels instead of videos?**

Yes: set What to list to Channels, or use the YouTube Channel Search Scraper.

### Related Actors from Zaiq

- [youtube-comments-scraper](https://apify.com/zaiq/youtube-comments-scraper): every comment and reply under a video
- [youtube-transcript-scraper](https://apify.com/zaiq/youtube-transcript-scraper): YouTube transcripts and subtitles
- [youtube-outlier-finder](https://apify.com/zaiq/youtube-outlier-finder): videos that beat their channel's usual views
- [video-transcripts](https://apify.com/zaiq/video-transcripts): YouTube, TikTok, Instagram and X videos to text

### Support

Questions, a site that changed, or a field you need? Open an issue on this Actor's **Issues** tab: we answer there, usually within a day.

***

Also found as: youtube search results scraper, youtube search scraper, youtube search api, youtube keyword search, youtube video search, youtube rank tracker, youtube seo tool.

# Actor input Schema

## `searches` (type: `array`):

What to search for on YouTube, one search per line.

## `maxResultsPerSearch` (type: `integer`):

How many results for each search ($0.00016 each).

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

Which kind of result YouTube should return.

## `sort` (type: `string`):

The order of the results.

## `uploaded` (type: `string`):

Only videos uploaded within this period.

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

Videos only: keep one length band.

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

Two-letter country whose YouTube results to read, for example US, GB, DE, IN, BR.

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

Language for titles and dates, for example en, es, de, pt.

## Actor input object example

```json
{
  "searches": [
    "how to bake sourdough bread"
  ],
  "maxResultsPerSearch": 20,
  "type": "video",
  "sort": "relevance",
  "uploaded": "any",
  "duration": "any",
  "country": "US",
  "language": "en"
}
```

# Actor output Schema

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

Dataset: the results.

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

What each input returned, and notes.

# 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 = {
    "searches": [
        "how to bake sourdough bread"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("zaiqltd/youtube-search-results-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 = { "searches": ["how to bake sourdough bread"] }

# Run the Actor and wait for it to finish
run = client.actor("zaiqltd/youtube-search-results-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 '{
  "searches": [
    "how to bake sourdough bread"
  ]
}' |
apify call zaiqltd/youtube-search-results-scraper --silent --output-dataset

```

## MCP server setup

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