DansUGC Embed
The B-roll library, inside your product.
One component gives your users 5,000+ real-human UGC reaction clips — search, accounts, purchases, and downloads included. You write zero auth, payment, or delivery code.
Everything above is live: search it, connect an account, buy a clip. Purchases use the connected user's own DansUGC credits.
Install in two minutes
Create a publishable key (starts with dpk_) from Dashboard → API Keys → Create Embed Key. It's browse-only, so it's safe to ship in your frontend — free, no subscription required.
Any website — script tag
<script src="https://dansugc.com/embed/v1.js"></script>
<div id="broll"></div>
<script>
DansUGC.createBrollEmbed({
container: "#broll",
publishableKey: "dpk_YOUR_KEY",
via: "your-affiliate-code", // optional — earn 20% on subscriptions
height: 720,
on: {
purchase: (e) => console.log("purchased", e.video_id),
select: (e) => console.log("selected", e.video),
},
});
</script>React — a component is all it takes
export function BrollLibrary({ publishableKey }: { publishableKey: string }) {
return (
<iframe
src={`https://dansugc.com/embed/broll?key=${publishableKey}`}
title="DansUGC B-roll library"
style={{ border: 0, width: "100%", height: 720, borderRadius: 12 }}
/>
);
}Need typed event callbacks (onPurchase, onSelect, …) in React? Use the @dansugc/embed-react package — email dan@dansugcmodels.com for access, or listen to the same events with the script SDK.
How it works
1 · Browse
The embed loads with your publishable key. Visitors search and preview watermarked clips instantly — no account needed.
2 · Connect
One click opens a secure DansUGC popup where users sign in or sign up and approve the connection. Your site never sees credentials or tokens.
3 · Buy & download
Clips from $5, paid with the user's own DansUGC credits. Top-ups run through Stripe in a popup. Masters download immediately.
Everything the main library has
Semantic search
Users describe the reaction they need in plain words — the same hybrid search engine as dansugc.com, with reranking.
Every filter
Emotion, creator, niche, format, location, age, hair, outfit, free-only, owned — identical to the main library.
Favourites & collections
Hearts and named collections, synced with the user's DansUGC account across every surface.
Multi-select
Tap clips to build a selection, then bulk-buy or save the whole set to a collection in one click.
Their credits, not yours
Purchases are paid with the end user's own DansUGC balance. Top-ups open Stripe Checkout in a popup.
Instant delivery
Purchased clips download as clean full-res masters via signed URLs. Previews are watermarked.
Zero sensitive surface
Your app never touches tokens, cards, or credentials. Auth runs in a first-party popup — works in Safari and every third-party-cookie-blocking browser.
Attribution built in
Every purchase made inside your embed is tagged to you, and your affiliate code earns 20% lifetime on subscriptions it starts.
Events
The embed reports what happens via postMessage (wrapped by the SDK's on callbacks). Payloads never contain tokens or payment data.
| Event | Payload | Fires when |
|---|---|---|
| ready | — | The widget finished loading |
| connect | { email } | A user connected their DansUGC account |
| disconnect | — | The user disconnected |
| select | { video } | A clip was clicked — build pickers with this |
| purchase | { video_id, title, price } | A clip was purchased |
| download | { video_id, title } | A clip download started |
| topup | { status } | The user completed a credit top-up |
Get paid for embedding
Pass your affiliate code as via and every DansUGC subscription that starts inside your embed pays you 20% — for the lifetime of the customer.
Good to know
Does it work in Safari? Yes. Account connection runs in a first-party popup on dansugc.com, so it isn't affected by third-party cookie blocking or Intelligent Tracking Prevention.
Who pays for clips? The end user, from their own DansUGC credit balance — you're never billed for your users' purchases. Clips start at $5 with full commercial rights, from real human creators, never AI.
Is the key safe to expose? Publishable keys (dpk_) only allow browsing the published catalog with watermarked previews. They can't purchase, download masters, or touch any account.
Can my customers share one account? No — DansUGC accounts and licenses are per-customer. Each of your users connects (or creates) their own account in the popup, and downloads are rate-limited per account, so a single shared login can't serve a whole user base.
Want deeper integration? The full REST API and MCP server (for AI agents) are available on the Growth plan — see the agents guide.