> To build or manage a Wix site with an AI agent, follow https://www.wix.com/headless/skill.md
> It builds a new Wix site or puts your own site online, from a prompt, and keeps changing it afterwards. The pages are code in any web technology, and Wix runs the backend.
> It works through the Wix plugin (the Wix MCP and the Wix skills), the Wix CLI or no Wix login, and puts the site live on Wix hosting or on another host.
> Business features include a store, bookings, events and tickets, a restaurant, a blog, forms, members and many more.
> Read the Wix skills online at https://www.wix.com/skills
> 
> Portal Navigation:
> 
> - Append `.md` to any URL under `https://dev.wix.com/docs/` to get its markdown version.
> - Pages are either content pages (article or reference text) or menu pages (a list of links to child pages).
> - To get a menu page, truncate any URL to a parent path and append `.md` (e.g. `https://dev.wix.com/docs/sdk.md`, `https://dev.wix.com/docs/sdk/core-modules.md`).
> - If a reference page seems to be missing its schema (parameters, return types, or type definitions), append `?schema=true` to its `.md` URL (e.g. `https://dev.wix.com/docs/contexts/contexts/stores/category-info/use-category-info-context.md?schema=true`).
> - Top-level index of all portals: https://dev.wix.com/docs/llms.txt
> - Full concatenated docs: https://dev.wix.com/docs/llms-full.txt

# ListReviews

# Package: googleBusinessProfile

# Namespace: GbpLocationsService

# Method link: https://dev.wix.com/docs/api-reference/business-management/google-business-profile/gbplocation-v1/list-reviews.md

## Permission Scopes:
Manage SEO Settings: SCOPE.PROMOTE.MANAGE-SEO

## Introduction

Retrieves a list of up to 100 reviews for a location, given the provided
paging and sorting.

Reviews belong to Google and can't be created or edited here. You can reply
to one with Put Review Reply.

Sort with `orderBy`: `NEWEST`, `HIGHEST_RATING` or `LOWEST_RATING`.

`metrics` carries the location's average rating and total review count.
Those cover every review on the profile, not just the current page.

Errors:
- `NOT_FOUND`: the location isn't recorded for this site. Google isn't called.
- `REVIEWS_LOCATION_NOT_FOUND`: Google returned 404 for this location's
reviews. The description names the location id; Google's response body
is withheld.
- `GOOGLE_API_CALL_FAILED`: the call to Google failed for any other reason.
Google's status is in the error payload; its response body is withheld.

---

## REST API

### Schema

```
 Method: listReviews
 Description: Retrieves a list of up to 100 reviews for a location, given the provided paging and sorting.  Reviews belong to Google and can't be created or edited here. You can reply to one with Put Review Reply.  Sort with `orderBy`: `NEWEST`, `HIGHEST_RATING` or `LOWEST_RATING`.  `metrics` carries the location's average rating and total review count. Those cover every review on the profile, not just the current page.  Errors: - `NOT_FOUND`: the location isn't recorded for this site. Google isn't called. - `REVIEWS_LOCATION_NOT_FOUND`: Google returned 404 for this location's reviews. The description names the location id; Google's response body is withheld. - `GOOGLE_API_CALL_FAILED`: the call to Google failed for any other reason. Google's status is in the error payload; its response body is withheld.
 URL: https://www.wixapis.com/gbp/v1/locations/{locationId}/reviews
 Method: GET
 # Note: If the parameter `a.b` is listed under required parameters, `b` is only required if `a` is also present.
 Required parameters:  locationId
 Method parameters: 
   param name: locationId | type:   none | required: true 
   param name: orderBy | type: ReviewSortOrder | description: Sort order for listing reviews.  
      - enum:
           NEWEST - 
           HIGHEST_RATING - 
           LOWEST_RATING - 
   param name: paging | type: CursorPaging    
        - name: limit | type: integer | description: Maximum number of items to return in the results.  | validation: minimum 0, maximum 100, format int32
        - name: cursor | type: string | description: Pointer to the next or previous page in the list of results.  Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response. Not relevant for the first request.  | validation: maxLength 16000
 Return type: ListReviewsResponse
  - name: reviews | type: array<Review> | description: Reviews for the location.  
     - name: reviewId | type: string | description: Google's opaque review GUID.  | validation: maxLength 255
     - name: starRating | type: integer | description: Star rating, from 1 to 5.  | validation: minimum 1, maximum 5
     - name: comment | type: string | description: Review comment text.  | validation: maxLength 4096
     - name: createTime | type: string | description: ISO 8601 timestamp of when the review was written.  | validation: maxLength 64
     - name: reviewerDisplayName | type: string | description: Reviewer's display name.  | validation: maxLength 255
     - name: anonymousReviewer | type: boolean | description: Whether the reviewer chose to remain anonymous.  
     - name: reply | type: ReviewReply | description: The merchant's current reply to this review, if any.  
        - name: text | type: string | description: The reply text.  | validation: maxLength 4096
        - name: updateTime | type: string | description: ISO 8601 timestamp of when the reply was last updated.  | validation: maxLength 64
     - name: updateTime | type: string | description: ISO 8601 timestamp of when the review was last changed. Never earlier than `createTime`. Listing with `NEWEST` sorts by this time, newest first.  | validation: maxLength 64
  - name: pagingMetadata | type: CursorPagingMetadata | description: Paging metadata. `cursors.next` is the token to specify for the next page, and `hasNext` says whether there is one.  
     - name: count | type: integer | description: Number of items returned in current page.  | validation: format int32
     - name: cursors | type: Cursors | description: Cursor strings that point to the next page, previous page, or both.  
        - name: next | type: string | description: Cursor string pointing to the next page in the list of results.  | validation: maxLength 16000
        - name: prev | type: string | description: Cursor pointing to the previous page in the list of results.  | validation: maxLength 16000
     - name: hasNext | type: boolean | description: Whether there are more pages to retrieve following the current page.  + `true`: Another page of results can be retrieved. + `false`: This is the last page.  
  - name: metrics | type: ReviewMetrics | description: Aggregate review metrics for the location.  
     - name: averageRating | type: number | description: Average star rating, from 1.0 to 5.0, across every review on the profile.  
     - name: totalReviewCount | type: integer | description: Total number of reviews.  

 Possible Errors:
   HTTP Code: 404 | Status Code: NOT_FOUND | Application Code: REVIEWS_LOCATION_NOT_FOUND | Description: Google v4 reviews.list 404: the reviews resource is missing. NOT_FOUND so callers don't retry it as an INTERNAL fault. Read path, so there is no error payload — Google's body stays in visibility events.
   HTTP Code: 500 | Status Code: INTERNAL | Application Code: GOOGLE_API_CALL_FAILED | Description: none


```

### Examples

### List a location's newest reviews
```curl
curl -X GET \
'https://www.wixapis.com/gbp/v1/locations/8034569321457853640/reviews?orderBy=NEWEST&paging.limit=10' \
-H 'Authorization: <AUTH>'
```

---

## JavaScript SDK

### Schema

```
 Method: wixClientAdmin.gbp.locations.listReviews(locationId, options)
 Description: Retrieves a list of up to 100 reviews for a location, given the provided paging and sorting.  Reviews belong to Google and can't be created or edited here. You can reply to one with Put Review Reply.  Sort with `orderBy`: `NEWEST`, `HIGHEST_RATING` or `LOWEST_RATING`.  `metrics` carries the location's average rating and total review count. Those cover every review on the profile, not just the current page.  Errors: - `NOT_FOUND`: the location isn't recorded for this site. Google isn't called. - `REVIEWS_LOCATION_NOT_FOUND`: Google returned 404 for this location's reviews. The description names the location id; Google's response body is withheld. - `GOOGLE_API_CALL_FAILED`: the call to Google failed for any other reason. Google's status is in the error payload; its response body is withheld.
 # Note: If the parameter `a.b` is listed under required parameters, `b` is only required if `a` is also present.
 Required parameters:  locationId
 Method parameters: 
   param name: locationId | type: string | description: Location GUID. This is Google's location identifier. | required: true | validation: minLength 1, maxLength 255
   param name: options | type: ListReviewsOptions  none  
        - name: orderBy | type: ReviewSortOrder | description: Sort order for reviews.  
             - enum: NEWEST, HIGHEST_RATING, LOWEST_RATING
        - name: paging | type: CursorPaging | description: Cursor-based paging. Unset `limit` uses a server default of 20; `cursor` is the `next` token returned by a previous response (opaque Google token). Google caps `limit` at 50.  
           - name: limit | type: integer | description: Maximum number of items to return in the results.  | validation: minimum 0, maximum 100, format int32
           - name: cursor | type: string | description: Pointer to the next or previous page in the list of results.  Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response. Not relevant for the first request.  | validation: maxLength 16000
 Return type: PROMISE<ListReviewsResponse>
  - name: reviews | type: array<Review> | description: Reviews for the location.  
     - name: reviewId | type: string | description: Google's opaque review GUID.  | validation: maxLength 255
     - name: starRating | type: integer | description: Star rating, from 1 to 5.  | validation: minimum 1, maximum 5
     - name: comment | type: string | description: Review comment text.  | validation: maxLength 4096
     - name: createTime | type: string | description: ISO 8601 timestamp of when the review was written.  | validation: maxLength 64
     - name: reviewerDisplayName | type: string | description: Reviewer's display name.  | validation: maxLength 255
     - name: anonymousReviewer | type: boolean | description: Whether the reviewer chose to remain anonymous.  
     - name: reply | type: ReviewReply | description: The merchant's current reply to this review, if any.  
        - name: text | type: string | description: The reply text.  | validation: maxLength 4096
        - name: updateTime | type: string | description: ISO 8601 timestamp of when the reply was last updated.  | validation: maxLength 64
     - name: updateTime | type: string | description: ISO 8601 timestamp of when the review was last changed. Never earlier than `createTime`. Listing with `NEWEST` sorts by this time, newest first.  | validation: maxLength 64
  - name: pagingMetadata | type: CursorPagingMetadata | description: Paging metadata. `cursors.next` is the token to specify for the next page, and `hasNext` says whether there is one.  
     - name: count | type: integer | description: Number of items returned in current page.  | validation: format int32
     - name: cursors | type: Cursors | description: Cursor strings that point to the next page, previous page, or both.  
        - name: next | type: string | description: Cursor string pointing to the next page in the list of results.  | validation: maxLength 16000
        - name: prev | type: string | description: Cursor pointing to the previous page in the list of results.  | validation: maxLength 16000
     - name: hasNext | type: boolean | description: Whether there are more pages to retrieve following the current page.  + `true`: Another page of results can be retrieved. + `false`: This is the last page.  
  - name: metrics | type: ReviewMetrics | description: Aggregate review metrics for the location.  
     - name: averageRating | type: number | description: Average star rating, from 1.0 to 5.0, across every review on the profile.  
     - name: totalReviewCount | type: integer | description: Total number of reviews.  

 Possible Errors:
   HTTP Code: 404 | Status Code: NOT_FOUND | Application Code: REVIEWS_LOCATION_NOT_FOUND | Description: Google v4 reviews.list 404: the reviews resource is missing. NOT_FOUND so callers don't retry it as an INTERNAL fault. Read path, so there is no error payload — Google's body stays in visibility events.
   HTTP Code: 500 | Status Code: INTERNAL | Application Code: GOOGLE_API_CALL_FAILED | Description: none


```

### Examples

### List a location's newest reviews
Read reviews live from Google, newest first, with the location's rating metrics.

```javascript
import { locations } from "@wix/gbp";

async function listReviews() {
  const response = await locations.listReviews("8034569321457853640", {
    orderBy: "NEWEST",
    paging: { limit: 10 },
  });

  console.log(response.reviews);
  console.log(response.metrics);
}

/* Promise resolves to:
 * {
 *   "reviews": [
 *     {
 *       "reviewId": "AbFvOqmF3kY2QpXt7d9wLcE1RhTgN8sVuZjB4aKxPnM0oWiC",
 *       "starRating": 5,
 *       "comment": "Best flat white in the Mission. The baristas remember your order.",
 *       "createTime": "2026-08-20T15:42:11Z",
 *       "reviewerDisplayName": "Jane Doe",
 *       "anonymousReviewer": false,
 *       "reply": {
 *         "text": "Thanks Jane, see you tomorrow!",
 *         "updateTime": "2026-08-21T08:03:27Z"
 *       }
 *     },
 *     {
 *       "reviewId": "AbFvOqlR8mT5WnJc2e6xPdH9KsUgQ1vYtZoD7bLwNiF3qXaE",
 *       "starRating": 4,
 *       "comment": "Great coffee, gets busy on weekends.",
 *       "createTime": "2026-08-14T10:15:33Z",
 *       "reviewerDisplayName": "Bob Johnson",
 *       "anonymousReviewer": false
 *     }
 *   ],
 *   "pagingMetadata": {
 *     "count": 2,
 *     "cursors": {},
 *     "hasNext": false
 *   },
 *   "metrics": {
 *     "averageRating": 4.7,
 *     "totalReviewCount": 128
 *   }
 * }
 */

```

### listReviews (self-managed)
Self-managed SDK calls require you to [create a client](https://dev.wix.com/docs/sdk/articles/work-with-the-sdk/about-the-wix-client.md).

```javascript
import { createClient } from '@wix/sdk';
import { locations } from '@wix/gbp';
// Import the auth strategy for the relevant access type
// Import the relevant host module if needed

const myWixClient = createClient ({
  modules: { locations },
  // Include the auth strategy and host as relevant
});


async function listReviews(locationId,options) {
  const response = await myWixClient.locations.listReviews(locationId,options);
};
```

---