YouTube Search API
Pricing
from $0.35 / 1,000 results
YouTube Search API
YouTube Search API: search YouTube by keyword and get ranked videos, channels or playlists with title, link, views, length, publish time, channel and thumbnail, hundreds per search. Filters for date, length and sort. No login or API key.
Pricing
from $0.35 / 1,000 results
Rating
0.0
(0)
Developer
Automly
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
1
Monthly active users
7 days ago
Last modified
Categories
Features
Share
What is YouTube Search API?
YouTube Search API lets you search YouTube by keyword and get the results as data, ranked exactly as YouTube shows them: each video's title, link, views, length, publish time, channel and thumbnail, plus channel and playlist results if you want them. Type your search terms, click Start, and download hundreds of results per search as Excel, CSV or JSON, or call it from your own code.
- 🔎 Many searches at once: one search term per line, every result tagged with its search term and rank
- 🎚️ YouTube's own filters: sort by relevance, upload date, view count or rating; upload date and video length filters
- 🎬 Videos, channels and playlists: keep the result types you need
- 🌍 Any country: results for the country you choose
- 🔓 No login: no YouTube account, cookies or API key, and no daily quota
- 💸 Free to try: every Apify account gets $5 of free usage each month
What can YouTube Search API do?
- Get YouTube search results in bulk for a list of keywords, one row per result
- Track YouTube rankings for your keywords with a daily schedule
- Find the top videos for a topic sorted by views, upload date or rating
- Find channels and playlists about any topic
- Export to Excel, CSV, JSON, HTML or XML, or send the data to Google Sheets, Make, Zapier and more
What data can you extract from YouTube search?
| 🔢 Rank in the results | 🎬 Title | 🔗 Link |
| 👁️ Views | ⏱️ Length | 📅 Publish time |
| 📺 Channel name and link | 🖼️ Thumbnail | 📝 Description snippet |
| 📱 Short or live stream | 🏷️ Badges (New, 4K, CC, Verified) | 👥 Subscribers (channel results) |
How to scrape YouTube search results
- Create a free Apify account.
- Open YouTube Search API.
- Type your search terms, one per line, and choose how many results to get for each.
- Click Start, then download the results as Excel, CSV, JSON or HTML.
How much does it cost to scrape YouTube search?
You pay only for the results you get:
| Apify plan | Price per 1,000 results |
|---|---|
| Free | $0.50 |
| Bronze | $0.45 |
| Silver | $0.40 |
| Gold, Platinum, Diamond | $0.35 |
Example on the Bronze plan: 10 searches of 100 results each cost $0.45. Each run also costs $0.001 to start.
A search YouTube has no results for is not charged. Every Apify account gets $5 of free usage each month, and you can set a maximum cost per run.
⬇️ Input
| Setting | What it does |
|---|---|
| Search terms | What to search YouTube for, one search term per line |
| Max results per search term | 1 to 1,000 (YouTube itself stops some searches earlier) |
| Result types | video, channel and/or playlist; videos only by default |
| Sort by | Relevance, upload date, view count or rating |
| Upload date | Last hour, today, this week, this month or this year |
| Video length | Under 4 minutes, 4-20 minutes or over 20 minutes |
| Country | Two-letter country code of the results, e.g. US, GB, DE |
| Language | Two-letter language code, e.g. en |
The 100 most viewed videos over 20 minutes long for two searches:
{"queries": ["web scraping tutorial", "python for beginners"],"maxResults": 100,"order": "viewCount","videoDuration": "long","regionCode": "US"}
If you used another YouTube search API, your saved input works here too: q, order, videoDuration, regionCode and relevanceLanguage are understood.
⬆️ Output
Every result is one row:
{"query": "web scraping tutorial","rank": 2,"resultKind": "video","itemId": "QhD015WUMxE","videoId": "QhD015WUMxE","channelId": "UCZDA1kA3y3EIg25BpcHSpwQ","playlistId": null,"title": "Beginners Guide To Web Scraping with Python - All You Need To Know","url": "https://www.youtube.com/watch?v=QhD015WUMxE","channelName": "Tinkernut","channelUrl": "https://www.youtube.com/@Tinkernut","publishedText": "4y ago","publishedAt": null,"duration": "7:36","durationSeconds": 456,"viewCountText": "490,897 views","viewCount": 490897,"descriptionSnippet": "The web is full of data. Lots and lots of data. Data prime for scraping. But manually going to a website and copying and pasting the ...","thumbnailUrl": "https://i.ytimg.com/vi/QhD015WUMxE/hq720.jpg","isShort": false,"isLive": false,"badges": ["Verified"],"subscriberCountText": null,"subscriberCount": null,"videoCount": null,"channelDescription": null,"channelThumbnailUrl": null,"fetchedAt": "2026-11-14T15:06:39Z"}
The Overview tab shows the main columns; download the dataset for every field. Channel results carry the channel's subscribers and video count, playlist results their video count.
How can I use YouTube search data?
- SEO and rank tracking: see where your videos rank for your keywords, and who ranks above you
- Content research: find what performs for a topic: titles, lengths, views and upload times
- Influencer discovery: find the channels that appear for the keywords of your market
- Trend monitoring: run the same searches every day sorted by upload date and catch new videos
- Apps and AI agents: give your app or agent YouTube search results without a quota
Scrape more YouTube and social media data
| Actor | What it gets |
|---|---|
| YouTube Scraper | YouTube videos, Shorts and live streams with exact likes and comments from search, channels, playlists and links |
| YouTube Video Details Scraper | Full details of any YouTube video from its link or ID |
| YouTube Channel Scraper - Search Channels by Keyword | YouTube channels by keyword: subscribers, video and view counts, country, links |
| YouTube Transcript Scraper | Transcripts and captions of YouTube videos and Shorts |
❓FAQ
How many results can I get for one search?
Ask for up to 1,000 per search term. YouTube itself ends most searches after a few hundred results; you then get every result it shows.
Do I need a YouTube API key?
No. There is no key to create, no quota to watch and no Google Cloud project to set up.
Does it get exact likes and comment counts?
Search results show views, length and publish time. For exact likes, comments and publish dates of each video, use YouTube Scraper or YouTube Video Details Scraper.
Do I need a YouTube account?
No. The scraper reads the same public search results anyone can see without signing in.
Can I connect YouTube Search API to other tools or AI agents?
Yes. Start runs and download results with the Apify API or the Python and JavaScript clients, send results to Make, Zapier, n8n, Google Sheets or Slack with Apify integrations and webhooks, or let AI assistants and agents run it through the Apify MCP server at mcp.apify.com.
Is it legal to scrape YouTube search results?
This scraper only collects public data that anyone can see on YouTube without signing in. Channel names and descriptions can still contain personal data, which may be protected by laws such as GDPR, so only scrape it for a legitimate reason, and ask a lawyer if you are unsure. You can read more in Is web scraping legal?
YouTube Search API is an independent tool. It is not affiliated with, endorsed by or sponsored by YouTube or Google.
Something isn't working?
Open the Issues tab with your input and what you expected, or ask for a field you need. We read every one and usually reply within a day.
⭐ Your feedback
Have an idea or found a problem? Tell us in the Issues tab. If YouTube Search API saved you time, a short review on the Reviews tab helps other people find it.