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:

  1. 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.
  2. Each video arrives ready to play: the full video URL, a lighter miniVersionUrl for silent autoplay previews, a thumbnail, the duration, and the products tagged in it. The files are served from the Shopify CDN.
  3. 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.

GET/apps/reelplus_sub/contextual-widgets

Query Parameters

location*string

Current page type on the storefront.

Value in"home" | "product" | "collection" | "page" | "other"
product_id?string

Shopify Product GID (for product pages).

product_handle?string

Product handle (alternative to product_id).

collection_id?string

Shopify Collection GID.

widget_id?string

Load a specific widget by ID (snippet mode).

widget_ids?string

Comma-separated widget IDs for batch loading.

v?string

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
        }
      ]
    }
  ]
}
GET/apps/reelplus_sub/widget-by-id

Query Parameters

id*string

Widget ID.

location?string

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
      }
    ]
  }
}
Empty
Empty
Empty
GET/apps/reelplus_sub/widgets-list

Query Parameters

type*string

Widget type to filter.

Value in"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
}
POST/apps/reelplus_sub/analytics

Request Body

application/json

eventType*string
Value in"impression" | "view" | "click" | "add_to_cart" | "checkout_completed"
sessionId?string
customerId?string
videoId?string
widgetId?string
attributionType?string
Value in"direct" | "influenced"
timestamp?string
Formatdate-time

Response 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"
}