DocsIntegrationsPlaygroundPricing
Get API Key
YouTube

Search Millions of
YouTube Videos
Via API

Query + Filters Video/Channel/Playlist Sort by Views or Date 1 credit/request
# pip install supacrawlx
from supacrawlx import Client

client = Client("YOUR_API_KEY")
result = client.youtube.search(
    query="machine learning tutorial",
    type="video",
    sort_by="viewCount",
    limit=20
)
for item in result.results:
    print(item.title, item.id)
Features

What Makes This API Special

Full-Text Search

Search YouTube with any query string and get ranked results instantly — videos, channels, and playlists in one endpoint.

Content Type Filter

Narrow results to only videos, channels, or playlists. Or search across all types at once with type=all.

Duration Filter

Filter by video length: short (<4 min), medium (4–20 min), or long (>20 min). Perfect for targeting specific content formats.

Sort Options

Order results by relevance, upload date, view count, or rating. Build trending feeds or find the most-watched content.

Pagination Support

Use nextPageToken to fetch additional result pages. Each page costs 1 credit — full control over how many results you consume.

Rich Metadata

Every result includes title, description, thumbnail, channel name, and publish date. No extra requests needed.

Use Cases

Platform-Specific Workflows

Content Discovery Tools

Build video recommendation engines, niche content finders, or competitor research tools powered by real YouTube search results.

DiscoveryRecommendationsResearch

Competitor Research

Search for keywords in your niche and analyze the top-performing videos and channels. Track what is working in your market.

AnalyticsSEOStrategy

Trend Monitoring

Run scheduled searches on industry keywords and track how results shift over time. Spot emerging topics before they go mainstream.

AutomationWebhookTrends
FAQs

YouTube Search API Questions

Can I search for channels and playlists too?

Yes. Set type=channel or type=playlist to find channels or playlists matching your query. Or use type=all to get mixed results.

How many results can I get per request?

Up to 50 results per request. Use the returned nextPageToken to fetch the next page — each page costs 1 credit.

Does the duration filter work for non-video searches?

Duration filter only applies when type=video. It is ignored for channel and playlist searches.

What metadata is returned per result?

Videos return: id, title, description, thumbnail, channelId, channelName, publishedAt. Channels and playlists return similar fields relevant to their type.

Is the search real-time?

Yes. Results come directly from the YouTube Data API v3 and reflect the current state of YouTube search at the time of the request.

Ready to Build Something Extraordinary?

Start with 100 free requests. No credit card. No setup fee. Ship your first AI-powered feature today.

Start Building Free View Pricing