YouTube Search Scraper avatar

YouTube Search Scraper

Pricing

from $0.35 / 1,000 results

Go to Apify Store
YouTube Search Scraper

YouTube Search Scraper

Scrape YouTube search results for any keyword: exact view counts, channel, upload date, duration and description snippet. Filter by upload date and length, sort by views. No API key.

Pricing

from $0.35 / 1,000 results

Rating

0.0

(0)

Developer

Solar G

Solar G

Maintained by Community

Actor stats

0

Bookmarked

3

Total users

2

Monthly active users

a month ago

Last modified

Categories

Features

Limited permissions

Share

Scrapes YouTube search results for one or more keywords. Each result has its exact view count, rank, channel, upload time, duration, badges and description snippet. No YouTube API key or quota is needed.

Input

FieldDescription
queriesKeywords to search.
maxResultsPerQueryDefault 50, maximum 1,000. YouTube typically returns up to a few hundred results per search.
sortByrelevance (default) or views.
uploadDateany, hour, today, week, month or year.
durationany, short (under 4 min), medium (4-20 min) or long (over 20 min).
country / languageLocalises results, for example GB / en. Default US / en.
{
"queries": ["home espresso machine review"],
"maxResultsPerQuery": 100,
"uploadDate": "month",
"sortBy": "views"
}

YouTube no longer offers sorting by upload date. To get the newest videos, use uploadDate (for example today or week).

Output

Results use the same keys as the other YouTube Actors in this series; keys that search results do not show (such as likes) are null. Example from a real run:

{
"query": "home espresso machine review",
"position": 1,
"videoId": "PmsWH7xlTCw",
"url": "https://www.youtube.com/watch?v=PmsWH7xlTCw",
"title": "Best of 2026: Entry Level Espresso Machines",
"channel": "Whole Latte Love",
"channelId": "UCJwRmBtnYh_7Xs9oXUrLhZg",
"channelUrl": "https://www.youtube.com/@Wholelattelovepage",
"channelHandle": "@Wholelattelovepage",
"channelSubscribers": null,
"channelVerified": true,
"collaborators": [],
"views": 55602,
"concurrentViewers": null,
"likes": null,
"commentCount": null,
"commentCountIsExact": null,
"duration": "16:19",
"durationSec": 979,
"publishDate": null,
"publishedAt": null,
"isShort": false,
"isLive": false,
"isAgeRestricted": null,
"isMembersOnly": null,
"commentsTurnedOff": null,
"tags": null,
"category": null,
"thumbnail": "https://i.ytimg.com/vi/PmsWH7xlTCw/hqdefault.jpg",
"description": null,
"hashtags": [],
"viewsText": "55,602 views",
"publishedTimeText": "9 days ago",
"publishedAtApprox": "2026-10-15T00:40:35.974Z",
"descriptionSnippet": "Looking for the best entry-level espresso machine in 2026? We tested six of the top machines for new home baristas, comparing ...",
"badges": ["4K"],
"isPaidContent": false,
"estimatedTotalResults": 6418831
}

Field notes:

  • views is exact in every language.
  • Live streams have isLive: true and concurrentViewers instead of views.
  • publishedAtApprox is estimated from YouTube's relative time ("9 days ago") and is only filled for English (language: "en"). publishedTimeText is always the text YouTube shows.
  • Search results do not include likes, comment counts, exact dates, tags or category, so these are null (unknown). Use the YouTube Scraper for those.
  • isPaidContent marks films and other paid videos sold through YouTube Movies.

Errors: a search with no results gives one item with query, input and error: "No videos found for this search". Error items are not charged.

API usage

curl -X POST "https://api.apify.com/v2/acts/solarg~youtube-search/run-sync-get-dataset-items?token=YOUR_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{"queries": ["home espresso machine review"], "maxResultsPerQuery": 50}'
from apify_client import ApifyClient
client = ApifyClient("YOUR_API_TOKEN")
run = client.actor("solarg/youtube-search").call(run_input={"queries": ["home espresso machine review"], "maxResultsPerQuery": 50})
items = client.dataset(run["defaultDatasetId"]).list_items().items

Pricing

$0.50 per 1,000 results. Error items are free. Apify paid plans get lower prices: 10% off on Bronze, 20% on Silver and 30% on Gold and above. Platform usage is included in the price.

Report problems in the Issues tab.