YouTube Search Scraper: Videos, Views & Rank Tracker avatar

YouTube Search Scraper: Videos, Views & Rank Tracker

Pricing

from $0.80 / 1,000 search results

Go to Apify Store
YouTube Search Scraper: Videos, Views & Rank Tracker

YouTube Search Scraper: Videos, Views & Rank Tracker

YouTube search scraper: results for any keyword with title, channel, views, duration, upload date and rank position; optional likes, comments, description and tags. Sort, upload date, type and duration filters. Video URLs too. No API key. $1 per 1,000 results.

Pricing

from $0.80 / 1,000 search results

Rating

0.0

(0)

Developer

Atesen Software

Atesen Software

Maintained by Community

Actor stats

0

Bookmarked

1

Total users

0

Monthly active users

3 days ago

Last modified

Features

Limited permissions

Share

Exports YouTube search results to JSON, CSV or Excel: title, channel, views, date and rank position, no API key. For SEO and creator teams; pay per result: $1.00 per 1,000 results (see the Pricing tab for the current price).

Scrape YouTube search results for any keyword, and videos by URL: title, URL, channel, views, duration, upload date, description snippet, thumbnail and rank position, and optionally the exact publish date, view count, likes, comment count, full description and hashtags (plus keywords and category when YouTube provides them). Use YouTube's own filters: sort by upload date / view count / rating, upload date (hour, today, week, month, year), type (video, channel, playlist) and duration. Price: $1 per 1,000 results, exact video details +$0.80 per 1,000.

  • $1 per 1,000 results; exact video details +$0.80 per 1,000. Full data for $1.80 per 1,000 videos, less than half the $4 per 1,000 of the most used YouTube scraper.
  • No YouTube API key, no quota, no login, no browser, 256 MB. Hundreds of results per query (paginated).
  • Every result has its position, so it doubles as a YouTube rank tracker.
  • Bad URLs and empty searches become free status rows; the run never fails because of one input.

Use cases

  • YouTube SEO and rank tracking: where your videos rank for your keywords, over time.
  • Market and trend research: what is being published this week about a topic, and what gets views.
  • Influencer discovery: find channels by keyword (type = channel).
  • Datasets for AI: titles, descriptions, tags and stats at scale.
  • Video stats for a list of URLs: views, likes and comments of your or your competitors' videos.

Input

FieldDescription
searchQueriesKeywords
videoUrlsVideos to scrape directly (always with details)
maxResultsPerQueryDefault 50, 0 = all YouTube returns
sortByrelevance, upload_date, view_count, rating
uploadDateany, hour, today, week, month, year
typevideo, channel, playlist, all
durationany, short (<4 min), medium (4-20), long (>20)
videoDetailsExact date, views, likes, comments, description, hashtags
countryResults country (default US)

Keywords, category and exact duration come from YouTube's player data, which YouTube sometimes withholds. When that happens those fields are null; publish date, views, likes, comment count, description, hashtags and channel subscribers still come from the watch page (detailsSource: "watch-page").

{
"searchQueries": ["web scraping tutorial", "bitcoin"],
"maxResultsPerQuery": 100,
"sortBy": "upload_date",
"uploadDate": "week",
"videoDetails": true
}

Output

{
"type": "result",
"resultType": "video",
"position": 1,
"searchQuery": "bitcoin",
"videoId": "xYz123AbCdE",
"title": "Why JP Morgan Is Finally Bullish on Bitcoin",
"url": "https://www.youtube.com/watch?v=xYz123AbCdE",
"channelName": "Crypto Channel",
"channelId": "UC...",
"viewCount": 29260,
"likeCount": 507,
"commentCount": 120,
"publishedAt": "2026-10-20T09:30:02-07:00",
"durationSec": 895,
"keywords": ["bitcoin", "jp morgan"],
"category": "Education"
}

Not affiliated with YouTube or Google.

Pricing

Pay per event: $0.001 per search result ($1 per 1,000) and $0.0008 per video when videoDetails is on. Status rows are free. Set a maximum cost per run and the Actor stops there. Platform usage is included in the event price.

Maximum items is a hard cap on charged rows. Set maxItems in the run options (or ?maxItems= in the API) and the run stops after that many videos: it never writes or charges more rows than that number. Leave it empty for no cap. Free status rows are not counted.

Use via API

One request runs the Actor, waits for it and returns the dataset items as JSON. Send your token in the Authorization header, not in the URL:

curl -X POST "https://api.apify.com/v2/acts/atesen-software~youtube-search-scraper/run-sync-get-dataset-items?timeout=120" \
-H "Authorization: Bearer $APIFY_TOKEN" \
-H "Content-Type: application/json" \
-d '{"searchQueries":["web scraping tutorial"],"maxResultsPerQuery":20,"sortBy":"relevance"}'

The synchronous endpoint waits up to 300 seconds. For longer jobs start a run with POST https://api.apify.com/v2/acts/atesen-software~youtube-search-scraper/runs and read the dataset when it finishes.

JavaScript (npm install apify-client):

import { ApifyClient } from 'apify-client';
const client = new ApifyClient({ token: process.env.APIFY_TOKEN });
const run = await client.actor('atesen-software/youtube-search-scraper').call({ searchQueries: ["web scraping tutorial"], maxResultsPerQuery: 20, sortBy: "relevance" });
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items);

Use with AI agents (MCP)

Claude Desktop, Cursor, VS Code and other MCP clients can call this Actor as a tool through the Apify MCP server. Load only this Actor with:

https://mcp.apify.com?tools=atesen-software/youtube-search-scraper

Client config (sign in with Apify OAuth when the browser opens, or add an Authorization: Bearer <APIFY_TOKEN> header instead):

{
"mcpServers": {
"apify": { "url": "https://mcp.apify.com?tools=atesen-software/youtube-search-scraper" }
}
}

Then ask in plain words, for example: "Search YouTube for 'web scraping tutorial' and list the top 20 videos with channel and views." The agent fills the same input fields you see on the Input tab, and runs are billed to your Apify account at the prices on the Pricing tab.

FAQ

What does YouTube Search Scraper return? One row per search result with position, title, URL, channel, views, duration, upload date and thumbnail. With videoDetails on it adds the exact publish date, likes, comment count, description and hashtags. Output is JSON, CSV or Excel.

How much does it cost? Pay per result: $1.00 per 1,000 search results, plus $0.80 per 1,000 videos when videoDetails is on and a $0.00005 start fee; higher Apify plans pay less (see the Pricing tab for the current prices). Status rows are free, and Maximum cost per run caps your spend.

Is it allowed to scrape YouTube search results? The Actor reads public YouTube pages without logging in and is not affiliated with YouTube or Google. Whether your use is allowed depends on YouTube's terms and the law that applies to you, so check both. This is not legal advice.

Do I need a YouTube API key? No. The Actor reads public YouTube pages. It is not affiliated with YouTube or Google.

Can I track rank? Yes. Every row includes position for that query, so a scheduled run is a rank tracker.

How do I keep the first run cheap? Leave videoDetails off and set maxResultsPerQuery to 20. You still get titles, channels, views and URLs.