DashForDevsDocs
DocsNewsAPI v1
dashfordevs.comSign in

© 2026 DashForDevs

DocsNewsdashfordevs.comLegalStatus
DocsReviewsGet Product Reviews
Introduction
Getting Started
Authentication
Products
Categories
Cart
Checkout
Blog
Reviews
Get Product ReviewsSubmit Review
Webhooks
Customers
Orders
Inventory
Shipping
Discounts
Affiliates
Email
Media & Files
Analytics & Tracking
Locations
Tax
Global Data
SEO
Error Handling
Geography
Finance
Automations
Page Types
Surveys
Billing & Subscriptions
Storefront Payments
SDK Reference
REST API
Storefront Architecture
Notifications
Security
Team & Permissions
Migrations & Import
Calendar & Appointments
Contact Forms
AI Bots
Dashboard API
Deployment
Changelog
Troubleshooting
Recipes
CLI & Deployment
Image Pipeline
White-label Platforms
Records Engine
Platform Modules
Platform Security
Site Keys & Client Sites
Use Cases
Operations

Get Product Reviews

Retrieve reviews for a specific product.

Updated March 29, 2026

On this page
  • Overview
  • Product Reviews
  • All Store Reviews
  • Review Object
  • Reviews Section Example
  • REST API
  • Next Steps

Overview

Fetch reviews for a specific product, or list all approved reviews across your store.

Product Reviews

typescript
import dash from "@/lib/dash"

const { reviews, stats, pagination } = await dash.products.getReviews("blue-dream", {
  limit: 10,
  offset: 0,
})

// stats = { avg_rating: 4.7, total: 42 }
// reviews = [{ id, rating, title, body, author_name, created_at, ... }]

All Store Reviews

typescript
const { reviews, avg_rating, total, pagination } = await dash.products.getAllReviews({
  limit: 20,
  sort: "newest",       // "newest" | "highest" | "lowest"
  rating: 5,            // filter by star rating
  has_media: true,      // only reviews with photos
})

Review Object

json
{
  "id": "rev_abc123",
  "product_id": "prod_xyz",
  "rating": 5,
  "title": "Amazing quality",
  "body": "This is the best product I've tried...",
  "author_name": "John D.",
  "verified_purchase": true,
  "helpful_count": 12,
  "media_urls": ["https://cdn.dashfordevs.com/review-photo.jpg"],
  "variation_slug": "blue-dream",
  "created_at": "2025-01-10T08:00:00Z"
}

Reviews Section Example

typescript
// components/ProductReviews.tsx
import dash from "@/lib/dash"

export default async function ProductReviews({ slug }: { slug: string }) {
  const { reviews, stats } = await dash.products.getReviews(slug)

  return (
    <section>
      <h2>Customer Reviews</h2>
      <div>
        <span>{stats.avg_rating.toFixed(1)} / 5</span>
        <span>({stats.total} reviews)</span>
      </div>
      {reviews.map(review => (
        <div key={review.id} className="border-b py-4">
          <div className="flex items-center gap-2">
            <span>{"★".repeat(review.rating)}{"☆".repeat(5 - review.rating)}</span>
            {review.verified_purchase && <span className="text-green-500 text-sm">Verified</span>}
          </div>
          <h3 className="font-semibold">{review.title}</h3>
          <p>{review.body}</p>
          <p className="text-sm text-gray-400">
            {review.author_name} · {new Date(review.created_at).toLocaleDateString()}
          </p>
        </div>
      ))}
    </section>
  )
}

REST API

shell
# Product reviews
GET /storefront/products/blue-dream/reviews?limit=10
X-API-Key: pk_live_your_key

# All store reviews
GET /storefront/reviews?limit=20&sort=newest
X-API-Key: pk_live_your_key

Next Steps

  • Submit Review — Let customers write reviews
  • Get Product by Slug — Full product details
PreviousGet Post by SlugNextSubmit Review

On this page

  • Overview
  • Product Reviews
  • All Store Reviews
  • Review Object
  • Reviews Section Example
  • REST API
  • Next Steps