technologys/tabihost
0
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 URLSUPABASE_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 intoPORT— defaults to 7860, matches HF Spaces requirement
Endpoints
Public (no auth, used by simple frontend UI)
POST /api/public/info—{ url }→ video metadataPOST /api/public/download—{ url, quality }→ Drive view/download links
Developer API (requires x-api-key header)
POST /api/v1/infoPOST /api/v1/downloadGET /api/v1/history
Account management
POST /api/account/generate-key—{ userId, label }GET /api/account/keys/:userId
