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

# Show star ratings across a category page

```shell Shell
# 1. Fetch rating bottomlines across your catalog (paginated)
curl "https://api-cdn.yotpo.com/v3/storefront/stores/YOUR_STORE_ID/ratings?page=1&perPage=10"

# 2. Increment page until you have every product
curl "https://api-cdn.yotpo.com/v3/storefront/stores/YOUR_STORE_ID/ratings?page=2&perPage=10"
```

```json Response Example
{
  "response": {
    "pagination": { "page": 1, "perPage": 10, "total": 342 },
    "bottomlines": [ "..." ]
  }
}
```

# Fetch bottomlines for all products

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

One request returns rating bottom lines for up to 10 products, with no auth needed. `page` and `perPage` are both required, and `perPage` can be at most 10; higher values return `400`. Match them to your category page's products instead of calling per-product ratings one by one.

# Page through the catalog

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

The response's `pagination.total` is the number of products; increment `page` until you've fetched them all. With 10 per page, a 342-product catalog takes 35 calls, so run this as a scheduled server-side job rather than on page load. Cache the results: bottom lines change slowly, and this keeps category pages fast.