Support needed? Reach out! 📧

Youtube Search by Keyword API

Search YouTube by keyword to find trending videos, relevant channels, and topic clusters for SEO and content research.

python-logo Python
Youtube Keyword Search
1 import requests
2  
3 root = "https://ensembledata.com/apis"
4 endpoint = "/youtube/search"
5 params = {
6   "keyword""magic",
7   "depth"1,
8   "start_cursor""",
9   "period""overall",
10   "sorting""relevance",
11   "get_additional_info"False,
12   "token""YOUR-TOKEN-HERE"
13 }
14  
15 res = requests.get(root+endpoint, params=params)
16 print(res.json())
17  

Why Developer Teams Use Our API

Ranked Search Results

Query a keyword and get back the same ranked videos a viewer would see.

Discover Niche Channels

Surface channels already ranking for a topic to speed up creator outreach lists.

Spot Rising Topics

Catch what's gaining traction around a keyword before it becomes a mainstream trend.

No API Key Quotas

Run keyword research without burning through YouTube Data API daily quota limits.

Live Ranking Data

Results reflect what's actually ranking on YouTube right now, not a stale index.

Schedule Ongoing Searches

Automate repeat lookups on key terms to track how a topic shifts over time.

Scrape Youtube Data Effortlessly

Crawl ranked video results and channel data for any search term with our YouTube keyword search API, useful for SEO research and video content strategy.

deco-icon

Video SEO Audit

See which YouTube videos already rank for your target keyword before you publish.

deco-icon

Channel Discovery by Topic

Find YouTube channels actively producing content around a search term.

deco-icon

Keyword Volume Signal

Gauge how much content competes for a keyword before investing in a video.

Youtube Scraping Features

Find out what is trending on YouTube for any keyword and use that data to better position your content or identify new opportunities.

  • Query a term and get back the same ranked videos and channels YouTube's own search shows.
  • See which videos already rank for a keyword before investing in a new upload.
  • Filter results to a recent upload window with an optional date-range parameter.
  • Separate matching videos from matching channels directly in the response structure.
  • Run keyword research without burning through YouTube Data API daily quota limits.

Starting crawling Youtube now!

deco-icon

Get Your API Key in Minutes

Create a free account (no credit card required) and receive an API token instantly to test endpoints, pull live data, and rapidly prototype integrations. Upgrade as your needs grow.

Get started free
deco-icon

Developer Support

Need help integrating or customizing data for your workflows? Our developer success team offers onboarding, guidance, and enterprise support to get your project production-ready.

Contact us

Frequently Asked Questions

It returns ranked videos and channels matching your search term, similar to YouTube's native search results.

Yes, seeing which videos and channels currently rank for a keyword is commonly used to inform video SEO and content strategy.

Results are pulled live from YouTube at request time, reflecting current search rankings for that keyword.

Each request returns a page of ranked results, generally a few dozen videos and channels, without deep pagination beyond that first page.

Yes, an optional date filter parameter mirrors YouTube's own upload-date search filters, letting you narrow results to a recent window.

Yes, the response separates matching videos from matching channels so each result type can be processed independently.

Yes, the search term is passed through as-is, so results reflect whatever language or script you query in.

No, you interact with it purely through HTTP requests to our own API, no Google Cloud project or API key is needed.

Yes, many teams call this endpoint on a schedule for a fixed set of keywords to continuously monitor how videos and channels rank over time.