DansUGCUGC clipsAdvertising

License clips & get download links

dansugc.ugc.clips.purchase

Purchase B-Roll Videos

Prix
$11/resultAu prix catalogue
Taux de réussite
—Aucune donnée de taux de réussite pour le momentAucune donnée de taux de réussite pour le moment
Latence p50
——
Dernière vérification
4 nov. 2026Vérifié et opérationnel
POSThttps://toolswitch.dev/v1/tools/dansugc.ugc.clips.purchaseBeta
  • Utilise le quota de la plateforme
  • Réponse synchrone
  • Lit des données publiques

Paramètres

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.

ParamètreTypeObligatoireDescriptionExemple
Corps (JSON)
video_idstableauObligatoire1–50 clip UUIDs["1166a85d-b967-4fb0-8ed8-6d2f2d22f23b"]
customer_emailchaîneFacultatifyour end customer, for your own billing reconciliation
expected_total_centsentierFacultatifthe 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 buy1100
  • Corps (JSON)
  • video_idstableauObligatoire

    1–50 clip UUIDs

    Exemple : ["1166a85d-b967-4fb0-8ed8-6d2f2d22f23b"]

  • customer_emailchaîneFacultatif

    your end customer, for your own billing reconciliation

  • expected_total_centsentierFacultatif

    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

    Exemple : 1100

Exemples de code

Remplacez $TOOLSWITCH_KEY par la clé créée dans la console.

Beta
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}'

Cette API de passerelle est en version Beta ; son URL et son authentification peuvent changer. Les paramètres de l’exemple sont des données fictives. Les appels sont facturés à $11/result, frais de service inclus.