License clips & get download links
dansugc.ugc.clips.purchasePurchase B-Roll Videos
- Price
- $11/resultAt list price
- Success rate
- —No success-rate data yetNo success-rate data yet
- Latency p50
- ——
- Last verified
- Nov 4, 2026Verified working
POSThttps://toolswitch.dev/v1/tools/dansugc.ugc.clips.purchaseBeta- Uses platform quota
- Synchronous response
- Reads public data
Parameters
Two-step confirm: call once without expected_total_cents to get the exact total (409, nothing charged), then again with it to buy. Clips the account already owns come back under already_purchased and are not charged again. download_url links are signed for 1 hour; dansugc.ugc.purchases.list re-issues them. Each clip comes with a 12-month commercial license.
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| Request body (JSON) | ||||
video_ids | array | Required | 1–50 clip UUIDs | ["1166a85d-b967-4fb0-8ed8-6d2f2d22f23b"] |
customer_email | string | Optional | your end customer, for your own billing reconciliation | |
expected_total_cents | integer | Optional | the confirmed total in hundredths of a credit. A call without it (or with a stale value) charges nothing and answers 409 with requiresConfirmation and expectedTotalCents (e.g. 1100 for one video); repeat the call with that value to buy | 1100 |
- Request body (JSON)
video_idsarrayRequired1–50 clip UUIDs
Example:
["1166a85d-b967-4fb0-8ed8-6d2f2d22f23b"]customer_emailstringOptionalyour end customer, for your own billing reconciliation
expected_total_centsintegerOptionalthe confirmed total in hundredths of a credit. A call without it (or with a stale value) charges nothing and answers 409 with requiresConfirmation and expectedTotalCents (e.g. 1100 for one video); repeat the call with that value to buy
Example:
1100
Code samples
Replace $TOOLSWITCH_KEY with the key you created in the console.
curl -X POST 'https://toolswitch.dev/v1/tools/dansugc.ugc.clips.purchase' \
-H "X-Toolswitch-Key: $TOOLSWITCH_KEY" \
-H "Content-Type: application/json" \
--data-raw '{"video_ids":["1166a85d-b967-4fb0-8ed8-6d2f2d22f23b"],"expected_total_cents":0}'import os
import json
import requests
response = requests.request(
"POST",
"https://toolswitch.dev/v1/tools/dansugc.ugc.clips.purchase",
headers={"X-Toolswitch-Key": os.environ["TOOLSWITCH_KEY"]},
json=json.loads("{\"video_ids\":[\"1166a85d-b967-4fb0-8ed8-6d2f2d22f23b\"],\"expected_total_cents\":0}"),
)
response.raise_for_status()
print(response.text)const response = await fetch("https://toolswitch.dev/v1/tools/dansugc.ugc.clips.purchase", {
method: "POST",
headers: {
"X-Toolswitch-Key": process.env.TOOLSWITCH_KEY ?? "",
"Content-Type": "application/json",
},
body: JSON.stringify(JSON.parse("{\"video_ids\":[\"1166a85d-b967-4fb0-8ed8-6d2f2d22f23b\"],\"expected_total_cents\":0}")),
});
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
console.log(await response.text());This gateway API is in beta; its URL and authentication may change. The example parameters are sample data. Calls are billed at $11/result, including the service fee.