Professional YouTube downloader API. Requires API key. Downloads served via signed, time-limited CDN tokens.
# Required params: url = YouTube video/shorts/playlist URL key = Your API key TD_xxx fmt = mp3 | mp4 | mp4_360 | mp4_720 | mp4_1080 # Response: { "status": "success", "title": "Video Title", "thumbnail": "https://...", "duration": 212, "format": "mp4", "filesize_mb": 8.4, "download_url": "https://cdn.teamdev.sbs/download?token=a3f9...&file=abc.mp4", "expires_at": "2025-01-01 12:30:00 UTC", "expires_in_minutes": 20, "quota_remaining": 49 }
# Returns metadata + available formats. No file downloaded. # Deducts 1 quota.
# Returns quota, used count, active status
import requests API_KEY = "TD_your_key_here" r = requests.get("https://yt.teamdev.sbs/api/v1/", params={ "url": "https://youtu.be/dQw4w9WgXcQ", "key": API_KEY, "fmt": "mp3" }) data = r.json() # Signed token URL — valid for 20 minutes print(data["download_url"]) # https://cdn.teamdev.sbs/download?token=a3f9b2...&file=abc123.mp3 # Download the file file_bytes = requests.get(data["download_url"]).content open("audio.mp3", "wb").write(file_bytes)