# YouTube Search Scraper Lowcost (0.03$/1K 🤑) (`sones/youtube-search-scraper-lowcost`) Actor

Scrape YouTube search results by keyword: videos, Shorts, playlists and channels with views, duration, upload date, channel and rank. Filter by type, upload date, duration, 4K, live or country. No API key or login. $0.03 per 1,000 results.

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

## Pricing

from $0.02 / 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 Lowcost](https://apify.com/actor-badge?actor=sones/youtube-search-scraper-lowcost)](https://apify.com/sones/youtube-search-scraper-lowcost)

**YouTube Search Scraper** extracts **YouTube search results** for any keyword at **$0.03 per 1,000 results**. Type the searches you would type in YouTube's search box and get every result in YouTube's order: videos, Shorts, playlists and channels, with their views, duration, upload date, channel and rank. YouTube's own filters work too: type, upload date, duration, live, 4K, HD, subtitles, Creative Commons, sort order, country and language.

No YouTube API key, no quota and no login. Export JSON, CSV or Excel, schedule runs to track rankings, or call the Actor from the API, n8n, Make, Zapier or an AI agent.

### What data does the YouTube Search Scraper extract?

One row per search result:

| Field                                                                          | Videos | Shorts  | Playlists | Channels |
| ------------------------------------------------------------------------------ | :----: | :-----: | :-------: | :------: |
| `position`: rank among the query's results                                     |   ✅   |   ✅    |    ✅     |    ✅    |
| `title`, `url`, `id`                                                           |   ✅   |   ✅    |    ✅     |    ✅    |
| `thumbnailUrl`                                                                 |   ✅   |   ✅    |    ✅     |          |
| `viewCount` and `viewCountText`                                                | exact  | rounded |           |          |
| `durationSeconds`, `durationText`                                              |   ✅   |         |           |          |
| `publishedTimeText` (`3 days ago`)                                             |   ✅   |         |           |          |
| `isLive`, `badges` (4K, CC, New)                                               |   ✅   |         |           |          |
| `descriptionSnippet`                                                           |   ✅   |         |           |    ✅    |
| `channelName`, `channelId`, `channelHandle`, `channelUrl`, `isChannelVerified` |   ✅   |         |    ✅     |    ✅    |
| `videoCount`, `playlistKind` (playlist, mix, podcast, course)                  |        |         |    ✅     |          |
| `subscriberCountText`                                                          |        |         |           |    ✅    |

Every row also has its `type` (`video`, `short`, `playlist` or `channel`), the `query`, the results page URL in `input`, and `scrapedAt`.

### Use cases

- **YouTube SEO and rank tracking:** see where your videos and your competitors' rank for a keyword, and schedule the run daily.
- **Keyword and trend research:** find what ranks for a topic this week with the upload-date filter, or the most popular videos with the popularity sort.
- **Influencer and channel discovery:** search with **Result type: Channels** to list channels for a niche, with their subscribers and handles.
- **Playlist and course discovery:** search with **Result type: Playlists** for curated playlists, mixes, podcasts and courses.
- **Shorts research:** search with **Result type: Shorts** for the Shorts that rank for a keyword, with their views.
- **AI and data pipelines:** feed fresh search results to an LLM, a dashboard or a spreadsheet.

### How to scrape YouTube search results

1. Open the **Input** tab and enter one or more search queries, one per line.
2. Set **Results per query** (default 50, up to 1,000).
3. Optionally pick a **Result type**, **Upload date**, **Duration**, **Features**, **Sort by**, **Country** or **Language**.
4. Click **Start**, then export the results from the **Output** tab.

### Input example

```json
{
    "searchQueries": ["lofi hip hop", "n8n tutorial"],
    "maxResults": 100,
    "searchType": "all",
    "uploadDate": "any",
    "duration": "any",
    "features": [],
    "sortBy": "relevance",
    "searchCountry": "US"
}
```

| Field            | Values                                                                                      | Default     |
| ---------------- | ------------------------------------------------------------------------------------------- | ----------- |
| `searchQueries`  | Keywords, one search per entry                                                              | —           |
| `maxResults`     | 1 to 1,000 results per query                                                                | `50`        |
| `searchType`     | `all`, `videos`, `shorts`, `playlists`, `channels`                                          | `all`       |
| `uploadDate`     | `any`, `hour`, `today`, `week`, `month`, `year`                                             | `any`       |
| `duration`       | `any`, `under3`, `under4`, `3to20`, `4to20`, `over20` (minutes)                             | `any`       |
| `features`       | `live`, `4k`, `hd`, `subtitles`, `creativeCommons`, `360`, `vr180`, `3d`, `hdr`, `location` | none        |
| `sortBy`         | `relevance`, `popularity`                                                                   | `relevance` |
| `searchCountry`  | Two-letter country code, such as `US`, `GB`, `DE`                                           | `US`        |
| `searchLanguage` | Language code, such as `en`, `de`, `pt-BR`                                                  | `en`        |

### Output example

```json
{
    "type": "video",
    "position": 1,
    "query": "lofi hip hop",
    "id": "n61ULEU7CO0",
    "url": "https://www.youtube.com/watch?v=n61ULEU7CO0",
    "title": "Best of lofi hip hop 2021 ✨ [beats to relax/study to]",
    "thumbnailUrl": "https://i.ytimg.com/vi/n61ULEU7CO0/hqdefault.jpg",
    "channelId": "UCSJ4gkVC6NrvII8umztf0Ow",
    "channelName": "Lofi Girl",
    "channelHandle": null,
    "channelUrl": "https://www.youtube.com/channel/UCSJ4gkVC6NrvII8umztf0Ow",
    "isChannelVerified": true,
    "viewCount": 58775324,
    "viewCountText": "58,775,324 views",
    "durationSeconds": 22258,
    "durationText": "6:10:58",
    "publishedTimeText": "4 years ago",
    "isLive": false,
    "badges": [],
    "descriptionSnippet": "Lofi Girl's best of 2021...",
    "videoCount": null,
    "playlistKind": null,
    "subscriberCountText": null,
    "input": "https://www.youtube.com/results?search_query=lofi+hip+hop",
    "scrapedAt": "2026-11-16T22:00:00.000Z"
}
```

### How much does it cost to scrape YouTube search results?

| Event         | Price                                                                            |
| ------------- | -------------------------------------------------------------------------------- |
| Search result | $0.00003 ($0.03 per 1,000); $0.027 per 1,000 on Silver, $0.024 on Gold and above |
| Actor start   | $0.001 per run                                                                   |

For example, 10 keywords with 100 results each cost 1,000 × $0.00003 + $0.001 = **$0.031**. Apify's free $5 monthly credit covers about 160,000 results. Other YouTube search scrapers on the Apify Store charge $0.04 to $3 per 1,000 results (November 2026).

### Limits and good to know

- **YouTube decides how many results a search has.** Most searches end after a few hundred results, so `maxResults` is a ceiling.
- **Dates are relative.** Search results show `3 days ago`, not a date. For exact publish dates, use the [YouTube Channel & Video Scraper](https://apify.com/sones/youtube-scraper-lowcost), which also searches.
- **Upload date filter:** YouTube still serves a few older videos under it. The Actor skips the videos whose date shows they are older and does not charge them. Shorts, playlists and channels show no date and are kept.
- **Views:** exact on videos, rounded on Shorts (`217K views` becomes 217,000), and empty on live streams, which show viewers instead (`viewCountText`).
- **Language:** counts and durations are read from English texts. With another `searchLanguage`, `viewCount` may stay empty while `viewCountText` keeps YouTube's text.
- **Ads and "People also watched" shelves are left out.** Shorts shelves are included as `short` rows.

### FAQ

**Do I need a YouTube API key?** No. The Actor reads YouTube's public search like a logged-out visitor, so there is no API quota.

**Can I scrape YouTube search results for a specific country?** Yes: set `searchCountry`, such as `GB` or `IN`. It changes the ranking YouTube serves, not the uploaders' country.

**How do I find YouTube channels for a keyword?** Set **Result type** to **Channels**. Each row has the channel's name, handle, link, subscribers and verified badge.

**Can I get only Shorts or only playlists?** Yes, with **Result type**: Shorts, Playlists, Videos or Channels.

**Can I track my video's ranking over time?** Yes. Save the input as a task, schedule it daily, and compare `position` across runs.

**Can I get the comments or transcripts of the videos?** Use the [YouTube Comments Scraper](https://apify.com/sones/youtube-comments-scraper-lowcost) and the [YouTube Transcript Scraper](https://apify.com/sones/youtube-transcript-scraper-lowcost) with the video links from this Actor.

**Is it legal to scrape YouTube search results?** The Actor reads only public search results that anyone can see without logging in. Check the rules that apply to how you use the data.

### Also see

- [YouTube Channel & Video Scraper](https://apify.com/sones/youtube-scraper-lowcost): channel videos, Shorts and streams with exact views and dates.
- [YouTube Comments Scraper](https://apify.com/sones/youtube-comments-scraper-lowcost): comments and replies of any video, $0.25 per 1,000.
- [YouTube Transcript Scraper](https://apify.com/sones/youtube-transcript-scraper-lowcost): transcripts and captions of videos.

# Changelog

This Actor's version history is a separate document: https://apify.com/sones/youtube-search-scraper-lowcost/changelog.md

# Actor input Schema

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

Keywords to search on YouTube, one query per line, as you would type them in YouTube's search box. Each query has its own limit of results.

## `maxResults` (type: `integer`):

The most results to export for each query, from 1 to 1,000. YouTube itself stops after a few hundred results for most queries.

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

All results as YouTube shows them (videos, Shorts, playlists and channels), or one type only, as YouTube's Type filter.

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

Only videos uploaded within this time. YouTube still serves a few older videos under this filter: the Actor skips those whose date shows they are older, without charging them. Shorts, playlists and channels show no date and are kept.

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

YouTube's duration filter, for videos.

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

YouTube's feature filters, combined: live now, 4K, HD, subtitles, Creative Commons and more.

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

Relevance, YouTube's default, or its popularity ranking, close to most viewed first.

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

The country YouTube searches from, as a two-letter code such as US, GB or DE. It changes the ranking, not the uploaders' country. Default US.

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

The language of YouTube's interface for the search, such as en, de or pt-BR. Default en. View counts and durations are read from English texts: in another language, viewCount may stay empty while viewCountText keeps YouTube's text.

## `proxy` (type: `object`):

Leave on automatic. To send every request through your own proxies instead, choose 'Own proxies' and enter their URLs.

## Actor input object example

```json
{
  "searchQueries": [
    "lofi hip hop",
    "n8n tutorial"
  ],
  "maxResults": 10,
  "searchType": "all",
  "uploadDate": "any",
  "duration": "any",
  "features": [],
  "sortBy": "relevance",
  "searchCountry": "US",
  "searchLanguage": "en",
  "proxy": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

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

One row per search result, in YouTube's order.

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

The run's outcome and the result for every query.

# 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": [
        "lofi hip hop"
    ],
    "maxResults": 10,
    "proxy": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("sones/youtube-search-scraper-lowcost").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": ["lofi hip hop"],
    "maxResults": 10,
    "proxy": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("sones/youtube-search-scraper-lowcost").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": [
    "lofi hip hop"
  ],
  "maxResults": 10,
  "proxy": {
    "useApifyProxy": true
  }
}' |
apify call sones/youtube-search-scraper-lowcost --silent --output-dataset

```

## MCP server setup

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

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/4BOaQPj6bW4VQQhPw/builds/2SqpjZLOU4aRUcdiP/openapi.json
