S

StableTube · Download

by StableTube

POSTBase

$0.1

per call · USD Coin on Base

Create a paid StableTube download job. StableTube downloads the video server-side, uploads the mp4 to S3, and returns a temporary StableTube-owned download URL when ready.

Endpoint

POST https://stabletube.dev/api/download

22

Calls / 30d

6

Unique payers / 30d

Sep 9

Last called

exact

Payment scheme

Call this service

TypeScript · @x402/fetch
import { wrapFetchWithPayment } from "@x402/fetch";
import { privateKeyToAccount } from "viem/accounts";

const account = privateKeyToAccount(process.env.PRIVATE_KEY);
const fetchWithPay = wrapFetchWithPayment(fetch, account);

const res = await fetchWithPay("https://stabletube.dev/api/download", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({
    "format": "mp4",
    "quality": "720p",
    "tier": "tube-500mb",
    "type": "stabletube.download",
    "url": "https://www.youtube.com/watch?v=dQw4w9WgXcQ"
  }),
});
const data = await res.json();
cURL
curl -X POST \
  "https://stabletube.dev/api/download" \
  -H "Content-Type: application/json" \
  -d '{"format":"mp4","quality":"720p","tier":"tube-500mb","type":"stabletube.download","url":"https://www.youtube.com/watch?v=dQw4w9WgXcQ"}' \
  -H "X-PAYMENT: <signed x402 payment>"

Example response

{
  "contentLengthBytes": 23456789,
  "downloadUrl": "https://stabletube-bucket.s3.us-east-1.amazonaws.com/...",
  "durationSec": 213,
  "expiresAt": "2026-05-04T18:00:00.000Z",
  "format": "mp4",
  "jobId": "clxstabletubejob123",
  "maxBytes": 524288000,
  "mimeType": "video/mp4; codecs=\"avc1.64001F, mp4a.40.2\"",
  "price": "0.10",
  "quality": "720p",
  "status": "complete",
  "tier": "tube-500mb",
  "title": "Rick Astley - Never Gonna Give You Up (Official Video)",
  "videoId": "dQw4w9WgXcQ"
}

Payment details

Pay to0xf4b8037bf3709f37c5ffe224004d2e61833d084c
AssetUSD Coin · 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
NetworksBase
Schemesexact

Is this your API?

Pin it to the top of Developer Tools and the homepage with a featured placement.

Get featured →

More from StableTube & similar services