GUIDE

Timestamp-Cited Semantic Search Over YouTube Channels (REST API Guide)

Short answer: POST your query to https://api.cuedex.dev/v1/search with a Bearer key to get ranked transcript passages with video_id, title, start_sec, and a timestamped youtu.be URL. Then POST video_id and at_sec to /v1/context for a plus or minus 90 second window around any hit, all backed by hybrid dense and BM25 retrieval.

At a glance

EndpointMethodUse it for
POST /v1/searchPOSTRanked passages with timestamps
POST /v1/contextPOSTTranscript window around a moment
POST /v1/preflightPOSTCached versus fresh split before attach
POST /v1/collections/{slug}/attachPOSTIndex a channel, playlist, or video
GET /v1/jobs/{job_id}GETIngest progress and failure reasons

Copy, paste, done

cURL example
curl https://api.cuedex.dev/v1/search \
  -H "Authorization: Bearer cdx_live_..." \
  -d '{"query":"how to price infrastructure","limit":5}'

Common questions

What does a search hit contain?

Each hit has video_id, title, quoted text, start_sec, a timestamped youtu.be URL, and an excerpt wrapped as untrusted data with its source.

How large a transcript window can I pull?

Use window_sec up to 180 on /v1/context for up to three minutes on each side of the timestamp.

Do I need an API key for the demo endpoint?

No. POST /public/demo-search needs no key and searches the shared public index with the same timestamped shape.

Next: read the full API reference or request early access.