2.4 KiB
2.4 KiB
API Endpoints
Videos
POST /api/download- Download a video (YouTube or Bilibili)POST /api/upload- Upload a local video fileGET /api/videos- Get all downloaded videosGET /api/videos/:id- Get a specific videoPUT /api/videos/:id- Update video detailsDELETE /api/videos/:id- Delete a videoGET /api/videos/:id/comments- Get video commentsPOST /api/videos/:id/rate- Rate a videoPOST /api/videos/:id/refresh-thumbnail- Refresh video thumbnailPOST /api/videos/:id/view- Increment view countPUT /api/videos/:id/progress- Update playback progressGET /api/search- Search for videos onlineGET /api/download-status- Get status of active downloadsGET /api/check-bilibili-parts- Check if a Bilibili video has multiple partsGET /api/check-bilibili-collection- Check if a Bilibili URL is a collection/seriesGET /api/check-video-download- Check if a video has already been downloaded (by URL)
Download Management
POST /api/downloads/cancel/:id- Cancel a downloadDELETE /api/downloads/queue/:id- Remove from queueDELETE /api/downloads/queue- Clear queueGET /api/downloads/history- Get download historyDELETE /api/downloads/history/:id- Remove from historyDELETE /api/downloads/history- Clear history
Collections
GET /api/collections- Get all collectionsPOST /api/collections- Create a new collectionPUT /api/collections/:id- Update a collection (add/remove videos)DELETE /api/collections/:id- Delete a collection
Subscriptions
GET /api/subscriptions- Get all subscriptionsPOST /api/subscriptions- Create a new subscriptionDELETE /api/subscriptions/:id- Delete a subscription
Settings & System
GET /api/settings- Get application settingsPOST /api/settings- Update application settingsPOST /api/settings/verify-password- Verify login passwordPOST /api/settings/migrate- Migrate data from JSON to SQLitePOST /api/settings/delete-legacy- Delete legacy JSON dataPOST /api/scan-files- Scan for existing filesPOST /api/cleanup-temp-files- Cleanup temporary download filesGET /api/settings/password-enabled- Check if password protection is enabledPOST /api/settings/upload-cookies- Upload cookies.txt for yt-dlpPOST /api/settings/delete-cookies- Delete cookies.txtGET /api/settings/check-cookies- Check if cookies.txt exists