StableTube API
StableTube resolves a YouTube URL to a direct *.googlevideo.com download URL via x402. URLs are short-lived (~6 hours); there is no history or free re-resolve — if the URL expires, repay.
Endpoints
GET /api/info?url=...— free metadata (title, duration, channel, thumbnails, available qualities).POST /api/download— paid. Body:url, optionalquality("360p" | "720p" | "1080p", default720p). Returns inlinedownloadUrl.
Pricing
| Quality | USD |
|---|---|
| 360p | $0.02 |
| 720p | $0.04 |
| 1080p | $0.08 |
flat per-quality: 360p $0.02 / 720p $0.04 / 1080p $0.08.
Quality fallback
If the requested quality isn't available for that video, the closest lower quality is returned and the response quality field reflects what was actually picked. If nothing matches the request before payment, the call aborts with 404 and you are not charged.
Upstream
Backed by YTStream on RapidAPI. Outage / breakage is forwarded as 502.