Support needed? Reach out! 📧

Youtube Search by Keyword API

Search YouTube by keyword to find trending videos, channels, and topics for SEO and 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  

Parameters

keyword (string) The keyword to base the search on. REQUIRED
depth (integer) Abstraction of the API pagination. Depth 1 returns X results, depth N returns N * X results. Note that the exact number of results per depth (X) may differ per endpoint. Please refer to the specific endpoint description for more information. REQUIRED
start_cursor (string) If no `start cursor` is specified, it fetches the results from the 'All' category on the Youtube search. Other cursors can be fetched by first sending a request to our `Featured Categories Search` endpoint.
period Time filter to return only videos from a certain time period (overall, this hour, today, this week, this month, This year).
sorting Sort results based on a parameter (relevance, upload time, view count, rating).
get_additional_info (boolean) Fetch additional info for the video (number of subscribers, likes and comments) and channel owner. 1 extra unit is charged per video.
token (string) Private token assigned to each client to access the APIs. REQUIRED

Scrape Youtube Data Effortlessly

Find popular YouTube content and channels by keyword for targeted video marketing.

deco-icon

Plug & Play API

Integrate in minutes with clear docs and code samples. Get started with a single REST call.

deco-icon

Real-Time Results

Every request scrapes the latest data in seconds. No stale datasets, just up-to-date insights.

deco-icon

Flexible APIs

Need something special? We tailor endpoints and data delivery to your unique business needs.

Youtube Scraping Features

Uncover trending topics and influencers on YouTube using keyword-based search for better audience targeting.

  • YouTube Keyword Search
  • Trending Videos
  • SEO Research
  • Content Discovery
  • Video Marketing
  • Audience Targeting
  • YouTube keyword insights
  • SEO for video content

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

A Youtube data scraping API allows you to programmatically collect and analyze public data from Youtube and other platforms. This helps businesses, researchers, and marketers gain insights, monitor trends, and automate data collection for various use cases.

Our API only accesses publicly available Youtube data in compliance with GDPR and other privacy regulations. We do not support scraping private or restricted content, ensuring ethical and legal data usage for all clients.

Our API is designed to be easy to use for both developers and non-developers. We provide clear documentation, code samples, and a user-friendly dashboard to help you get started quickly, even if you have limited technical experience.

You can extract a wide range of public data from Youtube, including user profiles, posts, videos, comments, hashtags, followers, and engagement statistics.

Our platform delivers real-time Youtube data with high reliability and minimal downtime. Most requests are processed in under 5 seconds, ensuring you always have access to the latest public Youtube data for your needs.