YouTube Search Scraper
Pricing
from $0.35 / 1,000 results
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.
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
| Field | Description |
|---|---|
queries | Keywords to search. |
maxResultsPerQuery | Default 50, maximum 1,000. YouTube typically returns up to a few hundred results per search. |
sortBy | relevance (default) or views. |
uploadDate | any, hour, today, week, month or year. |
duration | any, short (under 4 min), medium (4-20 min) or long (over 20 min). |
country / language | Localises 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:
viewsis exact in every language.- Live streams have
isLive: trueandconcurrentViewersinstead ofviews. publishedAtApproxis estimated from YouTube's relative time ("9 days ago") and is only filled for English (language: "en").publishedTimeTextis 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. isPaidContentmarks 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 ApifyClientclient = 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.