Endpoints Overview
| Endpoint | Description | Credits |
|---|---|---|
POST /youtube/search | Search videos by keywords | 2 + 1/video |
POST /youtube/hashtag/search | Search videos by hashtags | 2 + 1/video |
POST /youtube/comments | Get video comments | 1 + 0.5/comment |
POST /youtube/channel/videos | Get channel videos | 2 + 1/video |
POST /youtube/channel/shorts | Get channel Shorts | 2 + 1/short |
Search Videos by Keywords
Search YouTube for videos matching keywords.Basic Search
Multiple Keywords with Filters
With Enrichment
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
keywords | array | Yes | - | Keywords to search (1-10) |
max_posts_per_keyword | integer | No | 100 | Max videos per keyword (1-500) |
depth | integer | No | 30 | API pagination depth (1-50) |
period | string | No | today | Time filter: today, week, month, all |
sorting | string | No | relevance | Sort: relevance, date, viewCount, rating |
enrich | array | No | - | ML enrichments |
categories | object | No | - | Custom topic categories |
Response
Search by Hashtags
Search YouTube videos by hashtags.Basic Hashtag Search
Shorts Only
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
hashtags | array | Yes | - | Hashtags to search (1-10) |
depth | integer | No | 1 | Pagination depth (1-50) |
only_shorts | boolean | No | false | Filter to Shorts only |
enrich | array | No | - | ML enrichments |
Get Video Comments
Fetch comments from YouTube videos. Supports multiple URL formats.Using Full URL
Using youtu.be Short URL
Using Video ID Only
Mixed Formats with Enrichment
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
post_urls | array | Yes | - | Video URLs or IDs |
limit_per_post | integer | No | 50 | Comments per video (1-500) |
enrich | array | No | - | ML enrichments |
Response
Get Channel Videos
Fetch videos from YouTube channels using browse IDs.Single Channel
Multiple Channels with Enrichment
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
browse_ids | array | Yes | - | Channel browse IDs (1-10) |
depth | integer | No | 10 | Pagination depth (1-50) |
enrich | array | No | - | ML enrichments |
Get Channel Shorts
Fetch YouTube Shorts from channels.Request
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
browse_ids | array | Yes | - | Channel browse IDs (1-10) |
enrich | array | No | - | ML enrichments |