---
title: "List product reviews"
method: GET
path: "/products/{product_id}/reviews"
---

# List product reviews

`GET /products/{product_id}/reviews`

## Request

- Base URL: `https://api.ecommerceapi.uk/v1`
- URL: `https://api.ecommerceapi.uk/v1/products/{product_id}/reviews`
- Auth: HTTP basic

Retrieves a list of product reviews for a specified product with pagination and sorting.

## Path parameters

- `product_id` integer, required

## Query parameters

- `count` integer
- `offset` integer
- `sort` 'created' | 'created_asc' | 'created_desc'
- `fields` string

## Response `200`

A list of product reviews.

- ProductReview[]
  - `id` integer: Unique identifier for the product review.
  - `createdAt` string, date-time: Timestamp when the review was created.
  - `name` string: The name of the customer who added the review.
  - `content` string: The content of the review.
  - `rating` integer: The review rating (between 1 and 5).
  - `active` boolean: Indicates whether the review is displayed.

## Other responses

- `400`: Invalid request parameters.
- `401`: Unauthorized. Invalid or missing API key.
- `500`: Server error.

---

[API](https://skmtc.dev/ecommerceapi/apis/product-reviews.md) - [All operations](https://skmtc.dev/ecommerceapi/apis/product-reviews/llms.txt) - [OpenAPI document](https://skmtc.dev/ecommerceapi/apis/product-reviews/revisions/e7212702d624?raw)
