
Fast, reliable YouTube public data: search videos, channels and playlists, video metadata, related videos, comments and replies, captions/transcripts, channel profiles and uploads, playlists, trending, and hashtag feeds. Clean JSON, consistent parameter names, continuation tokens for pagination. Identify a video by its 11-character `video_id` (from the watch URL). Identify a channel by `channel_id` (`UC…`) or resolve a `@handle` first. Identify a playlist by `playlist_id` (`PL…`, `UU…`). Unknown ids return HTTP 404. Invalid parameters return HTTP 400. This API does not download, convert, or return media streams or MP3/MP4 URLs.
Returns ranked search results for a query. Filter by result type, upload date, duration and sort order. Pass continuation from a previous response to get the next page — do not re-send the query when paging.
Search query. Required on the first page; omit when sending continuation.
Result type. Default video.
Sort order. Default relevance.
Only return results uploaded in this window.
Filter by duration. short under 4 minutes, long over 20.
Interface language, e.g. en, es.
Region code, e.g. US, GB, IN.
Opaque token from a previous search response.
Language:
Client:
fetch('https://api.apivex.com/youtube/api/search/all?query=lofi hip hop&type=video&sort=relevance&hl=en&gl=US', {
method: 'GET',
headers: {
'x-apivex-key': 'YOUR_API_KEY'
}
})
.then(response => response.json())
.then(data => console.log(data));