---
updatedAt: 2026-10-29T08:09:44.000Z
agentTools:
  projectIndex: https://docs.yotpo.com/llms.txt
---

# Display product reviews on a product page

```shell Shell
# 1. Fetch reviews for the product (public CDN endpoint, no auth needed)
curl "https://api-cdn.yotpo.com/v3/storefront/store/YOUR_STORE_ID/product/YOUR_PRODUCT_ID/reviews?page=1&perPage=10"

# 2. Fetch the rating bottomline for the stars summary
curl "https://api-cdn.yotpo.com/v3/storefront/store/YOUR_STORE_ID/product/YOUR_PRODUCT_ID/ratings"
```

```json Response Example
{
  "bottomline": {
    "totalReview": 128,
    "averageScore": 4.6
  },
  "pagination": { "page": 1, "perPage": 10, "total": 128 },
  "reviews": [ "..." ]
}
```

# Fetch the product's reviews

<!-- shell@1-2 -->

Storefront endpoints are public and CDN-backed (`api-cdn.yotpo.com`), and need no token. Your Store ID in the path identifies the store, so this is safe to call directly from browser code. The response includes `reviews`, `pagination`, and a `bottomline` block; tune `page`/`perPage` to your layout, and see the reference for `sort`, `direction`, and `lang`.

# Fetch the star-rating summary

<!-- shell@3-5 -->

The ratings endpoint returns just the `bottomline` (total reviews and average score), ideal for the stars-and-count summary at the top of your page without fetching review bodies.