CoolFace
Apppublic

technologys/tabihost

sourceHugging Faceupdated 3mo agoView on Hugging Face
0likes
App README

Tabi Host — Video Downloader API

Backend for Tabi Host's video downloader feature. Supports TikTok, YouTube, and other yt-dlp compatible sites. Downloaded files are uploaded to Google Drive (via Service Account) and metadata/logs are stored in Supabase.

Environment Variables (set in HF Spaces "Settings > Variables and secrets")

  • SUPABASE_URL — your Supabase project URL
  • SUPABASE_SERVICE_KEY — Supabase service role key (secret)
  • GOOGLE_SERVICE_ACCOUNT_JSON — full JSON content of your Google service account key (secret)
  • GDRIVE_FOLDER_ID — (optional) Drive folder ID to upload videos into
  • PORT — defaults to 7860, matches HF Spaces requirement

Endpoints

Public (no auth, used by simple frontend UI)

  • POST /api/public/info{ url } → video metadata
  • POST /api/public/download{ url, quality } → Drive view/download links

Developer API (requires x-api-key header)

  • POST /api/v1/info
  • POST /api/v1/download
  • GET /api/v1/history

Account management

  • POST /api/account/generate-key{ userId, label }
  • GET /api/account/keys/:userId