BrowserAct Logo
template bg

YouTube Search API

Brief


What is YouTube Search API?


BrowserAct’s YouTube Search API lets you extract structured data from YouTube search results through a single API request.

You provide KeyWords, choose Video_type, and set Date_limit. BrowserAct automatically runs the workflow in the background, scrolls the results list, and returns clean, list-level data directly via API.

This tool is designed for large-scale keyword discovery, topic research, competitor scanning, and content monitoring workflows.


What data can you get through YouTube Search API?

The API extracts structured fields directly from the YouTube search results list, including:

  • title: Title shown in search results
  • description: Short description snippet (when available)
  • view_count: View count displayed in results
  • published_at: Publish time displayed in results
  • url: Result item URL


Note: Data is extracted from the search results list only. Detail pages are not opened.


Why YouTube Search API is right for you?


  • One-call integration

Send search result data directly into your CRM, BI tools, databases, or automation workflows via API.

  • Faster extraction

No video or channel detail pages are opened, making this API significantly faster than full detail extraction.

  • Keyword-first discovery

Build topic pools and content datasets directly from search intent.

  • Built for scale

Date_limit controls how many results are extracted by scrolling the list until the limit is reached.


In short

Search → API call → List-level results delivered


API Parameters

Parameter

Description

Default

Supported values (examples)

KeyWords

Search keywords used on YouTube

AI

Any keyword or phrase e.g. AI, automation, n8n, web scraping

Video_type

Which results tab to extract from

Videos

Videos, Shorts, Channels, Playlists

Date_limit

Maximum number of items to extract from the search results list

100

Positive integer e.g. 20, 50, 100, 200

Code to Integrate


Click Get code, replace the API key, and run the code directly in your application.


javascriptCopy

API Key, get from:
# https://www.browseract.com/reception/integrations
API_KEY = os.getenv("BROWSERACT_API_KEY", "app-abcdefghijklmn")

You only need to replace:

app-abcdefghijklmn

with your own API key, and the code will run successfully.

Your API key can be found in the API & Integrations section of the BrowserAct dashboard.


image.png






API Example


Input

KeyWords: AI

Video_type: Videos

Date_limit: 100


Steps

  1. Click Get the Code
  2. Run the request
  3. Receive structured search results via API


API Results

{

"title": "The most powerful AI Agent I’ve ever used in my life",

"description": "Get Your FREE AI Company Operating System here: https://go.danmartell.com/4tVaYZG Are you a Business owner? Join my ...",

"view_count": "6.6K views",

"published_at": "2 hours ago",

"url": "https://www.youtube.com/watch?v=D_YzcH0VsGY&pp=ygUCQUk%3D",

}


Create Your Own YouTube Search API

To create your own YouTube Search API, start from a prebuilt template.

  1. Click Create from Template in the top-right corner
  2. Complete the setup
  3. You’ll receive a callable workflow_id

Once created, you can use the BrowserAct API to invoke your workflow programmatically and retrieve YouTube search results directly in your application.


Need help? Contact us at

Discord: Discord Community

E mail: service@browseract.com

What can we do for youWhat can we do for you

FAQ About the template

YouTube Search API | Extract Search Results via API