OpenRoadCode
Public API reference for OpenRoadCode
Loading...
Searching...
No Matches
youtube_search_resolver Namespace Reference

Resolve first YouTube search result to its normal watch page. More...

Functions

str first_video_url (str query, *, str|None api_key=None, float timeout=12.0)
 Return first YouTube search video, falling back to the search page.

Detailed Description

Resolve first YouTube search result to its normal watch page.

Function Documentation

◆ first_video_url()

str youtube_search_resolver.first_video_url ( str query,
* ,
str | None api_key = None,
float timeout = 12.0 )

Return first YouTube search video, falling back to the search page.

Use the configured Data API key first, then optional yt-dlp.