Embed affiliate products on any website
No plugin for your platform? Paste a product embed or the two-line JavaScript widget, or build your own with the Catalog API. Your referral code goes on every link. Using a CMS? See the plugins for WordPress, Wix, Drupal and more.
Product embeds for Ghost, Squarespace, static sites and more
No plugin or key needed. Build the snippet in your partner dashboard (Links → Product embeds), or write it by hand. The loader turns it into an iframe that resizes itself. If scripts or iframes are blocked, the plain link stays visible. Editors that discover oEmbed also accept a pasted product URL.
<blockquote class="avdeb-embed" data-avdeb-src="https://avdeb.com/embed/product/PRODUCT-HANDLE/?ref=YOUR-CODE"> <a href="https://avdeb.com/store/PRODUCT-HANDLE/?ref=YOUR-CODE" rel="sponsored noopener">Product name</a> </blockquote> <script async src="https://avdeb.com/embed/loader.js"></script>
-
/embed/product/{handle}/— Product card (default). Add ?layout=link for the compact editorial row. -
/embed/collection/?products=a,b,c— 2–4 hand-picked products in your order. Or ?tag=slug / ?q=search with &limit=2–4. -
ref— Your referral code — added to every product link, with an “Affiliate link” label. -
theme— auto (reader's system setting), light or dark. -
accent— Button colour as hex, e.g. accent=e4572e. -
disclosure=sponsored— Label a paid placement “Sponsored”. Referral embeds always show a label. -
campaign— Sent as utm_campaign so you can tell placements apart. -
title— Collection heading, up to 80 characters.
Editors that only accept iframes: use
<iframe src="https://avdeb.com/embed/product/…" width="100%"
height="460" loading="lazy">. Embed pages set no cookies and load nothing except product images.
Embed products on any website
Paste two lines into any page. Create a publishable key for your domain under Partner dashboard → Embeds & API — the dashboard builds the snippet for you. Products render in an isolated box that inherits your fonts; no cookies, no iframes, no tracking.
<div data-avdeb-products data-key="avdeb_pk_…" data-creator="your-creator-slug" data-limit="6"></div> <script src="https://avdeb.com/embed/v1.js" async></script>
Use one of data-creator, data-tag, data-handle or data-q, plus data-limit (up to 24), data-columns and data-disclosure. Anything inside
the div stays visible until the products load.
Catalog API
Query products as JSON. Responses can be cached for 5 minutes; please cache them rather than calling on every page view.
GET https://api.avdeb.com/v1/catalog/products?creator=your-slug&limit=6 | Access | How | Limit | Product links carry |
|---|---|---|---|
| No key | — | 12 per request, no paging | Your ?ref= code if you pass one |
| Publishable key | ?key=avdeb_pk_… from your allowed domains | 24 per request | Your referral code, automatically |
| Secret key | Authorization: Bearer avdeb_sk_… (server only) | 48 per request, cursor paging | Your referral code, automatically |
Parameters
- creator
- Creator slug (/creators/{slug}/)
- tag
- Category slug (/category/{slug}/)
- handle
- One product (/store/{handle}/)
- type
- Product type, e.g. Sticker
- q
- Search text (ranked, no paging)
- limit
- Number of products (default 6, capped per tier)
- cursor
- next_cursor from the previous page (secret keys)
- ref
- Referral code to add to links (without a key)
Response fields
- id, handle, title
- Product ID, URL slug and title
- url
- Product page, with the referral code when one applies
- image
- Medium-size image URL, or null
- price / compare_at_price
- Lowest current price and, when on sale, the previous price
- currency
- ISO 4217 code, e.g. USD
- type, tags
- Product type and category slugs
- creator
- { slug, name, url } for creator-designed products, otherwise null
- next_cursor
- Pass as cursor for the next page (secret keys), or null
Affiliate and creator links
Add your referral code to any avdeb.com URL. It works on product, category, creator and tool pages.
https://avdeb.com/store/product-handle/?ref=YOUR_CODE Not a partner yet? Join the affiliate program or sell your designs as a creator.
Embeds & API FAQ
Do I need an API key?
No. Without a key you can show up to 12 products per request and add your own ?ref= code. Active affiliates and creators can create keys under Partner dashboard → Embeds & API: a publishable key for the JavaScript embed, or a secret key for plugins and servers. Keys add your referral code automatically and raise the limits.
What's the difference between a publishable and a secret key?
A publishable key (avdeb_pk_…) is meant to sit in your page's HTML and only works on the domains you list. A secret key (avdeb_sk_…) must stay on your server. Never put a secret key in HTML, JavaScript or a URL; if you do, revoke it.
Can I use the product data?
Yes, to show and link to AVDEB products. It's the same public information as our product pages. Please cache responses and don't copy product photos or descriptions to sell elsewhere.
How does affiliate attribution work?
Add ?ref=YOUR_CODE to any avdeb.com link. When a visitor arrives with the code, a 30-day first-party cookie records the referral, and qualifying orders earn commission. Your code is in the affiliate dashboard.
