> ## Documentation Index
> Fetch the complete documentation index at: https://docs.postsyncer.com/llms.txt
> Use this file to discover all available pages before exploring further.

# List reviews

> Get the Google reviews of your Google Business Profile locations, unanswered first.

> [!NOTE]
>
> Needs `comments:read`: reviews use the comments permissions. See [Permissions](https://docs.postsyncer.com/essentials/authentication.md#permissions).

Gives the reviews of the Google Business Profile locations in every workspace the key can reach, 20 a page: the ones without a reply first, then newest first. `account_id` keeps one location's reviews, and `rating`, `replied`, `from`, `to` and `since` narrow the list further.

`meta.unanswered` counts the reviews without a reply, for `account_id` when you send it; the other filters leave it alone. PostSyncer reads each connected location's reviews every 30 minutes, so a new review can take that long to show. [Sync reviews](https://docs.postsyncer.com/api-reference/reviews/sync.md) reads one location now. Works on every plan.

`replied` takes the words `true` and `false`, not `1` and `0`.

## Errors

| Status | `error` | When | Retry? |
| - | - | - | - |
| 401 | | No API key, or not a valid one. | No: fix the key. |
| 403 | | The key lacks `comments:read`, or its user is inactive. | No: grant it in Settings → API. |
| 422 | | `rating` isn't 1 to 5, `replied` isn't `true` or `false`, a date can't be read, or `page` or `per_page` is out of range. | No: fix the request. |
| 429 | | More than 60 requests a minute. | Yes, after `Retry-After` seconds. |

## Related

* [Reply to a review](https://docs.postsyncer.com/api-reference/reviews/reply.md): answer one on Google.
* [Answer Google reviews](https://docs.postsyncer.com/guides/reviews.md): the whole flow.


## OpenAPI

````yaml GET /reviews
openapi: 3.0.3
info:
  title: PostSyncer API
  description: >-
    Post to 12 social networks from your code: posts, media, comments,
    analytics, webhooks and more.
  version: 1.0.0
servers:
  - url: https://postsyncer.com/api/v1
security:
  - bearerAuth: []
tags:
  - name: Workspaces
    description: The workspaces the key can reach.
  - name: Accounts
    description: Connected social accounts, links to connect more, and disconnecting them.
  - name: Posts
    description: Drafts, scheduled and published posts, approvals and a post's history.
  - name: Post settings
    description: A post's auto-plug, comment moderation and contact collection.
  - name: Media
    description: >-
      The media library: file uploads, URL imports, and reading videos and
      social posts' files.
  - name: Folders
    description: Folders that organise the media library.
  - name: Comments
    description: >-
      Comments on your posts: reading, replying, editing, hiding, deleting and
      syncing them.
  - name: Reviews
    description: Google Business Profile reviews and your replies to them.
  - name: Analytics
    description: Workspace, account and post performance.
  - name: Brand
    description: >-
      A workspace's brand: identity, voice, look, accounts, competitors,
      learnings and rules.
  - name: Labels
    description: Labels used to tag posts.
  - name: Campaigns
    description: Campaigns used to group posts.
  - name: Snippets
    description: Saved snippets and hashtag groups to drop into posts.
  - name: Webhooks
    description: Signed webhook endpoints that get your notification events.
paths:
  /reviews:
    get:
      tags:
        - Reviews
      summary: List reviews
      description: >-
        Needs `comments:read`. Reviews use the comments permissions. Gives the
        reviews of the Google Business Profile locations in every workspace the
        key can reach: unanswered first, then newest first, 20 a page.
        `meta.unanswered` counts the reviews without a reply, for `account_id`
        when it is sent (the other filters leave it alone). PostSyncer reads
        each connected location's reviews every 30 minutes; [Sync
        reviews](/api-reference/reviews/sync) reads one now. Works on every
        plan.
      operationId: listReviews
      parameters:
        - name: account_id
          in: query
          required: false
          description: Only this location's reviews (a Google Business Profile account id).
          schema:
            type: integer
        - name: rating
          in: query
          required: false
          description: Only reviews with this many stars.
          schema:
            type: integer
            minimum: 1
            maximum: 5
        - name: replied
          in: query
          required: false
          description: >-
            `true` keeps the reviews with a reply, `false` the ones waiting for
            one. Send the word: `1` and `0` are refused with `422`.
          schema:
            type: string
            enum:
              - 'true'
              - 'false'
        - name: from
          in: query
          required: false
          description: Reviews written on this day or later (UTC), like `2030-03-01`.
          schema:
            type: string
            format: date
        - name: to
          in: query
          required: false
          description: Reviews written on this day or earlier (UTC).
          schema:
            type: string
            format: date
        - name: since
          in: query
          required: false
          description: >-
            Reviews written at this moment or later, like
            `2030-03-14T09:00:00Z`: for picking up where you left off.
          schema:
            type: string
            format: date-time
        - name: per_page
          in: query
          required: false
          description: >-
            Items a page, 1 to 100. 20 when left out. Outside 1 to 100 it is
            refused with `422`.
          schema:
            type: integer
            minimum: 1
            maximum: 100
            default: 20
        - name: page
          in: query
          required: false
          description: The page, from 1.
          schema:
            type: integer
            minimum: 1
            default: 1
      responses:
        '200':
          description: The page of reviews, where it sits, and how many wait for a reply.
          content:
            application/json:
              schema:
                type: object
                required:
                  - data
                  - pagination
                  - meta
                properties:
                  data:
                    type: array
                    items:
                      $ref: '#/components/schemas/Review'
                  pagination:
                    $ref: '#/components/schemas/Pagination'
                  meta:
                    type: object
                    required:
                      - unanswered
                    properties:
                      unanswered:
                        type: integer
                        description: >-
                          Reviews without a reply, in the locations the key can
                          reach (or in `account_id`).
              examples:
                default:
                  summary: One waiting, one answered
                  value:
                    data:
                      - id: 6120
                        account_id: 304
                        location_title: Halden Coffee · Harbourside
                        reviewer_name: Rowan Example
                        reviewer_photo_url: https://cdn.postsyncer.com/examples/avatar-rowan.jpg
                        star_rating: 5
                        comment: >-
                          Best flat white in Bristol, and they remembered my
                          order.
                        media: []
                        reviewed_at: '2030-03-12T15:04:00.000000Z'
                        reply_comment: null
                        reply_updated_at: null
                        reply_source: null
                        review_url: https://maps.google.com/?cid=4512345678901234567
                      - id: 6118
                        account_id: 304
                        location_title: Halden Coffee · Harbourside
                        reviewer_name: Jordan Example
                        reviewer_photo_url: null
                        star_rating: 3
                        comment: Lovely coffee, but the queue was long on Saturday.
                        media:
                          - thumbnail_url: >-
                              https://cdn.postsyncer.com/examples/review-queue-thumb.jpg
                            video_url: null
                            label: null
                        reviewed_at: '2030-03-09T11:20:00.000000Z'
                        reply_comment: Thanks Jordan. We're adding a second till on weekends.
                        reply_updated_at: '2030-03-09T17:02:00.000000Z'
                        reply_source: google
                        review_url: https://maps.google.com/?cid=4512345678901234567
                    pagination:
                      current_page: 1
                      last_page: 1
                      per_page: 20
                      total: 2
                      has_more_pages: false
                    meta:
                      unanswered: 1
        '401':
          $ref: '#/components/responses/Unauthorized401'
        '403':
          description: The key lacks `comments:read`, or its user is inactive.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                missing_permission:
                  summary: The key lacks comments:read
                  value:
                    message: >-
                      This API key does not have the "comments:read" permission.
                      Edit the key in PostSyncer under Settings → API to grant
                      it.
                inactive_account:
                  summary: The key's user is inactive
                  value:
                    message: Your account is inactive.
        '422':
          description: >-
            A filter isn't one of its values or isn't a date, or `page` or
            `per_page` is out of range.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ValidationError'
              examples:
                rating:
                  summary: rating outside 1 to 5
                  value:
                    message: The rating field must be between 1 and 5.
                    errors:
                      rating:
                        - The rating field must be between 1 and 5.
                replied:
                  summary: replied=1 instead of true
                  value:
                    message: The selected replied is invalid.
                    errors:
                      replied:
                        - The selected replied is invalid.
                from:
                  summary: from is not a date
                  value:
                    message: The from field must be a valid date.
                    errors:
                      from:
                        - The from field must be a valid date.
                per_page_too_big:
                  summary: per_page over 100
                  value:
                    message: The per page field must not be greater than 100.
                    errors:
                      per_page:
                        - The per page field must not be greater than 100.
                per_page_too_small:
                  summary: per_page below 1
                  value:
                    message: The per page field must be at least 1.
                    errors:
                      per_page:
                        - The per page field must be at least 1.
        '429':
          $ref: '#/components/responses/RateLimited429'
components:
  schemas:
    Review:
      type: object
      description: >-
        A Google review of a connected Google Business Profile location, with
        your reply when there is one.
      required:
        - id
        - account_id
        - location_title
        - reviewer_name
        - reviewer_photo_url
        - star_rating
        - comment
        - media
        - reviewed_at
        - reply_comment
        - reply_updated_at
        - reply_source
        - review_url
      properties:
        id:
          type: integer
          description: PostSyncer's id for the review.
        account_id:
          type: integer
          description: 'The location: a connected Google Business Profile account.'
        location_title:
          type: string
          nullable: true
          description: The location's name in PostSyncer.
        reviewer_name:
          type: string
          nullable: true
          description: The name Google shows.
        reviewer_photo_url:
          type: string
          nullable: true
        star_rating:
          type: integer
          nullable: true
          minimum: 1
          maximum: 5
          description: 1 to 5 stars; null when Google gives none.
        comment:
          type: string
          nullable: true
          description: The review's text; null for stars only.
        media:
          type: array
          description: Photos and videos the reviewer added.
          items:
            type: object
            required:
              - thumbnail_url
              - video_url
              - label
            properties:
              thumbnail_url:
                type: string
                nullable: true
              video_url:
                type: string
                nullable: true
                description: Set on a video.
              label:
                type: string
                nullable: true
        reviewed_at:
          type: string
          format: date-time
          nullable: true
          description: When it was written, UTC.
        reply_comment:
          type: string
          nullable: true
          description: Your reply; null when there is none.
        reply_updated_at:
          type: string
          format: date-time
          nullable: true
          description: When the reply was written or last changed, UTC.
        reply_source:
          type: string
          nullable: true
          enum:
            - postsyncer
            - google
            - null
          description: >-
            `postsyncer` when the reply was sent from PostSyncer, `google` when
            it was written in Google; null with no reply.
        review_url:
          type: string
          nullable: true
          description: The location on Google Maps, where its reviews are.
    Pagination:
      type: object
      description: Where this page sits in the whole list (comments and reviews).
      required:
        - current_page
        - last_page
        - per_page
        - total
        - has_more_pages
      properties:
        current_page:
          type: integer
        last_page:
          type: integer
        per_page:
          type: integer
        total:
          type: integer
          description: Items in the whole list.
        has_more_pages:
          type: boolean
          description: True when a next page has items.
    Error:
      type: object
      description: >-
        An error answer. Every one has `message`, in plain words; some add an
        `error` code and fields of their own.
      required:
        - message
      properties:
        message:
          type: string
          description: What went wrong and what to do about it.
    ValidationError:
      type: object
      description: '422: the request didn''t pass validation, and nothing changed.'
      required:
        - message
        - errors
      properties:
        message:
          type: string
          description: >-
            The first error and, when there are more, how many: `(and 1 more
            error)`, `(and 2 more errors)`.
        errors:
          type: object
          description: >-
            The messages, by field. A field inside a list is named with dots:
            `accounts.0.id`.
          additionalProperties:
            type: array
            items:
              type: string
  responses:
    Unauthorized401:
      description: No API key, or not a valid one.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          examples:
            unauthenticated:
              summary: No valid API key
              value:
                message: Unauthenticated.
    RateLimited429:
      description: >-
        More than 60 requests in a minute from this key's user (the API and the
        MCP server share the count). Wait `Retry-After` seconds.
      headers:
        Retry-After:
          description: Seconds until requests are allowed again.
          schema:
            type: integer
        X-RateLimit-Limit:
          description: Requests allowed a minute.
          schema:
            type: integer
        X-RateLimit-Remaining:
          description: Requests left this minute.
          schema:
            type: integer
        X-RateLimit-Reset:
          description: When requests are allowed again, as a Unix timestamp.
          schema:
            type: integer
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          examples:
            too_many_attempts:
              summary: Too many requests
              value:
                message: Too Many Attempts.
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.