Documentation Index
Fetch the complete documentation index at: https://developer.dashsocial.com/llms.txt
Use this file to discover all available pages before exploring further.
Overview
Use Dash Social’s API to build fully custom Product Page Galleries that match your brand’s layout and infrastructure. The API gives you complete design control, avoids third-party JavaScript, and supports server-side caching for fast page loads. You can integrate it into any web or mobile stack. For a quick, prebuilt option with minimal setup, see the Product Page Gallery Widget →Product Page Gallery Widget Setup
Embed product-linked media on PDPs using the Product Page Gallery widget.
Before starting
To implement a product gallery, make sure:- Your product feed is set up and synced in the Dash Library. Set up your product feed.
- Your media is linked to products in the Library. Learn how.
Access requirements
- No API key or authentication required
- Rate limited per IP address
Key concepts
product_source_id: Unique product identifier (SKU) from your feedproduct_source_group_id: Shared ID used to group product variants into a single galleryhide_in_widget: Flag to exclude media from rendering. Filter these out before displaying the gallery
Implementation
Query media by product ID
Step 1: Find the product ID/SKU
This should match the product’s ID in your e-commerce system and in your product feed.Step 2: Make the API call
This query returns all media tagged to the product withproduct_source_id = APPLE-001, along with product metadata and localization fields:
Querying media for multiple products
When to use
You have product variants like T-shirt Red, Yellow, and Blue but want to group them into a single gallery on your PDP.Step 1: Add group ID to your feed
To group related products, add a group ID column in your product feed. Each variant should share the same group ID (e.g.,TSHIRT).
| SKU | Group ID |
|---|---|
| TSHIRT-RED | TSHIRT |
| TSHIRT-BLUE | TSHIRT |
| TSHIRT-YELLOW | TSHIRT |
This setup is required. The API won’t return grouped media unless the group ID is present and consistent across variants in the feed.
TSHIRT) for each variant row.
Step 2: Query with product_source_group_id
TSHIRT.
API behavior tips
Hidden media
- If a media item has
hide_in_widget: 1, it has been marked as hidden from the product page gallery in the Dash UI. - These media are still included in API responses.
- Filter them out before rendering the gallery.
TikTok media is returned as images
- Due to a technical limitation, TikTok media always appears with
"type": "IMAGE"in API responses. - Use the
tiktok.embed_urlfield to render the playable video directly in your gallery.
Sample response
Server-side caching
To improve load speed and reduce API calls, cache Product Page Gallery data on your server instead of requesting it on every page load.Why cache API responses?
- Faster PDP load times: Serve gallery content instantly from your backend.
- Lower API usage: Avoid duplicate requests and hitting rate limits.
- Consistent experience: Cached content ensures pages load smoothly without waiting on a live API call.
How long should you cache?
- The ideal cache duration depends on how frequently you update product media or information.
- If product media rarely changes, you can cache for 12–24 hours or longer.
- If updates are frequent, use a shorter TTL (e.g., 1–2 hours) to keep galleries fresh.
Tip: Choose a cache duration that matches your update frequency. This balances performance with content accuracy.