v1
latestOpenAPI 3.1.02026-08-04253331435.1 KBYouTube
Search Youtube
Search YouTube caption chunks.
Institution linkage is dual-route — chunks are matched if EITHER the video's channel is mapped to the institution (via youtube_links) OR the video itself carries a per-video tag (raw.video_institution_unique_id). Results from both routes are unioned and deduped, preferring the per-video tag when both routes match the same chunk.
The query field uses websearch_to_tsquery('english', ...) — websearch syntax (quoted phrases, OR, leading - to exclude). For tight phrase matching, quote the phrase. Cover-density ranking (ts_rank_cd) already favors chunks where query terms appear close together.
At least one of institution_ids or query is required.
post/api/internal/youtube/search
Request body
Response
Successful Response