Skip to navigation

Get Reviews Widget

View as Markdown

Loads a published reviews (review showcase) widget.

data:

  • providerUrl: link to the source review page (nullable)
  • summary: { averageRating, totalReviews }
  • reviews[]: { id, reviewerName, reviewerImageUrl, submittedAt, rating, comment, externalUrl }. Every field except id and submittedAt is nullable.

config:

  • provider (nullable), layout: carousel | grid | list | slider | badge
  • autoScroll, reviewCount, rows
  • filters: onlyWithComments, ratingAtLeast, includeKeywords[], excludeKeywords[]. A null keyword list is returned as [].
  • sort: sortBy (date | rating), sortDirection (asc | desc)
  • show flags: showReviewerProfileImage, showReviewerName, showReviewDate, showReviewRating, showReviewComment
  • header, body and button fonts; backgroundColor, buttonColor, accentColor, transparentBackground

store is optional.

Set the reviewsWidgetId collection variable to a published reviews widget id.

Query parameters

widgetTypestringRequired

Required. Must be reviews.

Response headers

ETagstringOptional
Cache-ControlstringOptional
Access-Control-Allow-OriginstringOptional
Access-Control-Expose-HeadersstringOptional

Response

OK
idstringformat: "uuid"
geoobject
dataobject
typestring
storeobject
configobject
createdAtinteger
updatedAtinteger