---
title: "Get product rating"
method: GET
path: "/reviews-and-ratings/api/rating/{productId}"
tags: ["Rating"]
---

# Get product rating

`GET /reviews-and-ratings/api/rating/{productId}`

Retrieves the rating of a product.
 ## Permissions

This endpoint does not require [permissions](https://help.vtex.com/en/tutorial/license-manager-resources--3q6ztrC8YynQf6rdc6euk3).

## Path parameters

- `productId` string, required

## Headers

- `Content-Type` string, required
- `Accept` string, required

## Response `200`

OK

- object — Response body object.
  - `average` number — Average rating of the product.
  - `totalCount` number — Total amount of ranting of the product.
  - `starsFive` number — Total five-star ratings received by the product.
  - `starsFour` number — Total four-star ratings received by the product.
  - `starsThree` number — Total three-star ratings received by the product.
  - `starsTwo` number — Total two-star ratings received by the product.
  - `starsOne` number — Total one-star ratings received by the product.

## Other responses

- `404` — Not Found

---

[API](https://skmtc.net/vtex/apis/reviews-and-ratings-api.md) · [All operations](https://skmtc.net/vtex/apis/reviews-and-ratings-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/vtex/reviews-and-ratings-api/revisions/b3004f2e6a88/schema)
