ST
Market Data · x402 · early usage

Create a paid StableTube download job

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.

by stabletube.dev · discovered, not yet claimed by its owner · updated 2026-10-12

30d calls15
30d payers6
MethodPOST
Outputjson

Mirrored from Coinbase's public x402 Bazaar. The description is the provider's own text and has not been reviewed here; the payment requirements are copied as published.

What it does

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.

Tags: Download · bazaar

Call contract

Method
POST
Input
json
Output
json
Last paid call
2026-10-12
Input example from Bazaar metadata
{
  "format": "mp4",
  "quality": "720p",
  "tier": "tube-500mb",
  "type": "stabletube.download",
  "url": "https://www.youtube.com/watch?v=dQw4w9WgXcQ"
}
Output example
{
  "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"
}

Use with an agent

  1. Discover. Agents find this listing with GET https://bazaar.saylorinnovations.com/discovery/search?query=…, the MCP tool search_resources, or /discovery/resources.
  2. Inspect. Fetch /resources/27115.json for the price and payment options.
  3. Pay. Call GET https://stabletube.dev/api/download. The provider answers 402 with its payment requirements. An x402 client signs one of the options below and retries with PAYMENT-SIGNATURE.
  4. Execute. The provider returns 200 with the data. Agent Bazaar is not in the request path and never sees your payment.

For humans

You don't need an account or an API key; you need a wallet holding a small amount of USDC on Base, and an x402-capable client (see the examples below). Call the endpoint unpaid first to see exactly what it asks for.

Pricing & payment

Price
$0.1 / request
Protocol
x402 v2
Auth
No account or API key. Pay per request.
Networks
Base
Demand
15 calls · 6 unique payers in 30d (public x402 Bazaar data)

x402 payment requirements

SchemeNetworkAssetAmountPay toTimeout
exactBase
eip155:8453
USDC$0.10xF4B8037bF3709f37c5FfE224004D2e61833d084C300s
accepts[] (raw JSON)
[
  {
    "scheme": "exact",
    "network": "eip155:8453",
    "payTo": "0xF4B8037bF3709f37c5FfE224004D2e61833d084C",
    "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
    "amount": "100000",
    "amountUsd": 0.1,
    "maxTimeoutSeconds": 300
  }
]

Schemas

Output schema (JSON Schema)
{
  "properties": {
    "example": {
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "oneOf": [
        {
          "additionalProperties": false,
          "properties": {
            "jobId": {
              "type": "string"
            },
            "maxBytes": {
              "exclusiveMinimum": 0,
              "maximum": 9007199254740991,
              "type": "integer"
            },
            "price": {
              "type": "string"
            },
            "retryAfterSec": {
              "default": 5,
              "exclusiveMinimum": 0,
              "maximum": 9007199254740991,
              "type": "integer"
            },
            "status": {
              "const": "processing",
              "type": "string"
            },
            "tier": {
              "enum": [
                "tube-100mb",
                "tube-500mb",
                "tube-1gb"
              ],
              "type": "string"
            },
            "videoId": {
              "type": "string"
            }
          },
          "required": [
            "status",
            "jobId",
            "videoId",
            "tier",
            "maxBytes",
            "retryAfterSec"
          ],
          "type": "object"
        },
        {
          "additionalProperties": false,
          "properties": {
            "contentLengthBytes": {
              "anyOf": [
                {
                  "maximum": 9007199254740991,
                  "minimum": -9007199254740991,
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ]
            },
            "downloadUrl": {
              "description": "Temporary StableTube-owned S3 download URL. Fetch before expiresAt or poll the job again for a fresh URL.",
              "format": "uri",
              "type": "string"
            },
            "durationSec": {
              "anyOf": [
                {
                  "maximum": 9007199254740991,
                  "minimum": -9007199254740991,
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ]
            },
            "expiresAt": {
              "format": "date-time",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
              "type": "string"
            },
            "format": {
              "enum": [
                "mp4"
              ],
              "type": "string"
            },
            "jobId": {
              "type": "string"
            },
            "maxBytes": {
              "exclusiveMinimum": 0,
              "maximum": 9007199254740991,
              "type": "integer"
            },
            "mimeType": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "price": {
              "type": "string"
            },
            "quality": {
              "enum": [
                "360p",
                "720p",
                "1080p"
              ],
              "type": "string"
            },
            "status": {
              "const": "complete",
              "type": "string"
            },
            "tier": {
              "enum": [
                "tube-100mb",
                "tube-500mb",
                "tube-1gb"
              ],
              "type": "string"
            },
            "title": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "videoId": {
              "type": "string"
            }
          },
          "required": [
            "status",
            "jobId",
            "videoId",
            "quality",
            "tier",
            "format",
            "maxBytes",
            "downloadUrl",
            "expiresAt"
          ],
          "type": "object"
        },
        {
          "additionalProperties": false,
          "properties": {
            "error": {
              "additionalProperties": false,
              "properties": {
                "code": {
                  "type": "string"
                },
                "message": {
                  "type": "string"
                }
              },
              "required": [
                "code",
                "message"
              ],
              "type": "object"
            },
            "jobId": {
              "type": "string"
            },
            "maxBytes": {
              "exclusiveMinimum": 0,
              "maximum": 9007199254740991,
              "type": "integer"
            },
            "price": {
              "type": "string"
            },
            "status": {
              "const": "failed",
              "type": "string"
            },
            "tier": {
              "enum": [
                "tube-100mb",
                "tube-500mb",
                "tube-1gb"
              ],
              "type": "string"
            },
            "videoId": {
              "type": "string"
            }
          },
          "required": [
            "status",
            "jobId",
            "error"
          ],
          "type": "object"
        }
      ],
      "type": "object"
    },
    "type": {
      "type": "string"
    }
  },
  "required": [
    "type"
  ],
  "type": "object"
}
Example shape — generated from the schema, not a captured live response
{
  "example": {},
  "type": "string"
}

Examples

curl
curl "https://stabletube.dev/api/download"
# -> 402 Payment Required, accepts[] lists how to pay
# retry with a PAYMENT-SIGNATURE (or PAYMENT header) once paid
JavaScript
const res = await fetch("https://stabletube.dev/api/download");
if (res.status === 402) {
  const { accepts } = await res.json();
  // pay one of accepts[] via an x402 client, then retry with the payment header
}
Python
import httpx
res = httpx.get("https://stabletube.dev/api/download")
if res.status_code == 402:
    accepts = res.json()["accepts"]
    # pay one of accepts[] via an x402 client, then retry with the payment header

Details

Provider
stabletube.dev
Endpoint
https://stabletube.dev/api/download
Machine-readable
/resources/27115.json