Storefront API
How the ReelPlus player loads widgets on a merchant's store and reports what shoppers do. Reference only, no key and no playground.
Storefront use only. These endpoints are reached through Shopify's App Proxy on the merchant's own domain (/apps/reelplus_sub/…). Shopify signs every request with an HMAC and ReelPlus verifies it, so they cannot be called from outside a storefront, which is why there is no Send button on this page. For your own code, use the Analytics API.
Why this page exists
The Analytics API reads numbers. This is where those numbers come from. Knowing the loop makes the analytics easier to trust:
- A page on the store loads. The ReelPlus widget loader calls contextual-widgets with the page type (
location) and, on product pages, the product. It gets back every active widget for that spot, each with its videos. - Each video arrives ready to play: the full video URL, a lighter
miniVersionUrlfor silent autoplay previews, a thumbnail, the duration, and the products tagged in it. The files are served from the Shopify CDN. - As the shopper watches and clicks, the player posts analytics events:
impression,view,click,add_to_cart,checkout_completed. Those events are exactly what the summary, video and widget endpoints add up.
widget-by-id and widgets-list serve the same JSON for theme snippets that embed one specific widget.
/apps/reelplus_sub/contextual-widgetsQuery Parameters
Current page type on the storefront.
"home" | "product" | "collection" | "page" | "other"Shopify Product GID (for product pages).
Product handle (alternative to product_id).
Shopify Collection GID.
Load a specific widget by ID (snippet mode).
Comma-separated widget IDs for batch loading.
Version string for cache validation.
Response Body
application/json
curl -X GET "https://help.reelplus.app/apps/reelplus_sub/contextual-widgets?location=home"{
"location": "string",
"context": {
"productId": "string",
"collectionId": "string",
"pageHandle": "string"
},
"version": "string",
"timestamp": "2019-08-24T14:15:22Z",
"removeBranding": true,
"widgets": [
{
"id": "string",
"type": "carousel",
"title": "string",
"status": "string",
"priority": 0,
"viewStyle": "string",
"clickBehavior": "string",
"modalLayout": "string",
"videos": [
{
"id": "string",
"title": "string",
"thumbnail": "string",
"videoUrl": "string",
"miniVersionUrl": "string",
"duration": 0,
"order": 0,
"viewCount": "string",
"products": [
{
"id": "string",
"title": "string",
"handle": "string",
"image": "string",
"url": "string"
}
],
"hasProducts": true
}
]
}
]
}/apps/reelplus_sub/widget-by-idQuery Parameters
Widget ID.
Page type for display rule check.
Response Body
application/json
curl -X GET "https://help.reelplus.app/apps/reelplus_sub/widget-by-id?id=string"{
"success": true,
"widget": {
"id": "string",
"type": "carousel",
"title": "string",
"status": "string",
"priority": 0,
"viewStyle": "string",
"clickBehavior": "string",
"modalLayout": "string",
"videos": [
{
"id": "string",
"title": "string",
"thumbnail": "string",
"videoUrl": "string",
"miniVersionUrl": "string",
"duration": 0,
"order": 0,
"viewCount": "string",
"products": [
{
"id": "string",
"title": "string",
"handle": "string",
"image": "string",
"url": "string"
}
],
"hasProducts": true
}
]
}
}/apps/reelplus_sub/widgets-listQuery Parameters
Widget type to filter.
"carousel" | "story" | "productpage"Response Body
application/json
curl -X GET "https://help.reelplus.app/apps/reelplus_sub/widgets-list?type=carousel"{
"success": true,
"widgets": [
{
"id": "string",
"title": "string",
"type": "string",
"status": "string",
"sourceType": "string",
"videoCount": 0,
"createdAt": "2019-08-24T14:15:22Z"
}
],
"count": 0
}/apps/reelplus_sub/analyticsRequest Body
application/json
"impression" | "view" | "click" | "add_to_cart" | "checkout_completed""direct" | "influenced"date-timeResponse Body
application/json
curl -X POST "https://help.reelplus.app/apps/reelplus_sub/analytics" \ -H "Content-Type: application/json" \ -d '{ "eventType": "impression" }'{
"success": true,
"message": "string",
"timestamp": "2019-08-24T14:15:22Z"
}