Developers

Embed

Copy a snippet from Embed Tubonics.

JavaScript

Play, pause, speed, and skip via Tubonics.Embed. JavaScript API

REST

Call these endpoints from a backend or the browser:

  • GET /api/search?q=食べる&lang=japanese&mode=related (add captions=auto to include autogenerated captions)
  • GET /api/video/VIDEO_ID
  • GET /api/video/VIDEO_ID/matches?q=食べる
  • POST /api/harvest { language: "korean" } — search YouTube for new videos/channels and queue indexing. GET /api/harvest?list=1 lists languages. GET /api/harvest?lang=spanish previews without indexing. CLI: npm run harvest -- --all.
  • POST /api/index/video
  • GET /api/jobs / POST /api/jobs
  • GET /api/dictionary?q=schedule&lang=english
  • GET /api/translate?q=こんにちは&from=ja&to=English
  • GET /api/captions?videoId=VIDEO_ID&lang=japanese

Search reads the subtitle index and returns timestamps, original caption text, the matched substring, and ranking. YouTube is used only to ingest captions.