---
updatedAt: 2026-11-11T07:32:40.000Z
agentTools:
  projectIndex: https://docs.yotpo.com/llms.txt
---

# Reviews per topic

Retrieves reviews on specific products according to topics. The response includes review data such as reviewer email, review id, title, content, star-rating, opinions, and can be filtered accordingly. For a full breakdown, see the Body Params list below.

> 📘 Authentication and request format
>
> Authenticate with `Authorization: Bearer YOUR_ACCESS_TOKEN`. The Insights API does not accept the `X-Yotpo-Token` header.
>
> Send filters inside the `filter` object, pagination inside `paging` and sorting inside `sorting`. Fields sent at the top level of the body are ignored.
>
> To sort results, set `sorting.sorting_field` to `reviewed_at`. It is the only supported sort field; other values return `500`.

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "Reviews API (V1)",
    "version": "1.0"
  },
  "servers": [
    {
      "url": "https://api.yotpo.com",
      "description": "Main API server for authenticated and write operations"
    }
  ],
  "components": {
    "securitySchemes": {
      "X-Yotpo-Token": {
        "type": "apiKey",
        "in": "header",
        "name": "X-Yotpo-Token",
        "description": "Your Yotpo account access token. See [Yotpo Authentication](ref:yotpo-authentication) to learn how to generate your token."
      },
      "bearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "description": "Your Yotpo access token sent as `Authorization: Bearer YOUR_ACCESS_TOKEN`. Used by the Insights API."
      }
    }
  },
  "security": [
    {
      "X-Yotpo-Token": []
    }
  ],
  "paths": {
    "/insights/v1/topics/reviews": {
      "post": {
        "summary": "Reviews per topic",
        "description": "Retrieves reviews on specific products according to topics. The response includes review data such as reviewer email, review id, title, content, star-rating, opinions, and can be filtered accordingly. For a full breakdown, see the Body Params list below.\n\n> 📘 Authenticate with `Authorization: Bearer YOUR_ACCESS_TOKEN`. The `X-Yotpo-Token` header is not accepted by the Insights API. Flat (un-nested) filter fields are ignored, so always nest them under `filter`.",
        "operationId": "reviews",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "filter"
                ],
                "properties": {
                  "filter": {
                    "type": "object",
                    "required": [
                      "app_key",
                      "topics",
                      "sentiment_filter"
                    ],
                    "description": "Filters for the request. `app_key` is required.",
                    "properties": {
                      "app_key": {
                        "type": "string",
                        "description": "Your store ID (app key)."
                      },
                      "date_range": {
                        "type": "object",
                        "description": "Date range of the reviews to analyze.",
                        "properties": {
                          "start_date": {
                            "type": "string",
                            "description": "Start of the range, ISO 8601 (e.g. `2024-01-01T00:00:00.000Z`).",
                            "format": "date-time"
                          },
                          "end_date": {
                            "type": "string",
                            "description": "End of the range, ISO 8601 (e.g. `2024-12-31T23:59:59.999Z`).",
                            "format": "date-time"
                          }
                        }
                      },
                      "location": {
                        "type": "object",
                        "description": "Reviewer location filter.",
                        "properties": {
                          "countries": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            },
                            "description": "Two-letter reviewer country codes, e.g. `US`. [See list](https://github.com/pariz/gountries/tree/master/data/json/countries)",
                            "example": [
                              "US"
                            ]
                          },
                          "states": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            },
                            "description": "Reviewer state codes, e.g. `CA`. [See list](https://github.com/YotpoLtd/country-states/blob/master/us.go)",
                            "example": [
                              "CA"
                            ]
                          }
                        }
                      },
                      "external_product_ids": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        },
                        "description": "Product IDs (domain keys / SKUs) to include.",
                        "example": [
                          "2063374417974"
                        ]
                      },
                      "product_groups": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        },
                        "description": "Product group names as defined in your Yotpo product catalog."
                      },
                      "product_collections": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        },
                        "description": "Product collection names as defined in your Yotpo product catalog."
                      },
                      "minimum_score": {
                        "type": "integer",
                        "description": "Minimum star rating, 1–5.",
                        "minimum": 1,
                        "maximum": 5
                      },
                      "exclude_unpublished": {
                        "type": "boolean",
                        "description": "Set to `true` to leave unpublished reviews out of the results."
                      },
                      "minimum_mentions": {
                        "type": "integer",
                        "description": "Only include topics mentioned at least this many times. Default: 0.",
                        "minimum": 0
                      },
                      "topics": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        },
                        "description": "Topic names to include.",
                        "example": [
                          "quality"
                        ]
                      },
                      "exclude_topics": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        },
                        "description": "Topic names to leave out."
                      },
                      "sentiment_filter": {
                        "type": "object",
                        "description": "Sentiment filter.",
                        "required": [
                          "sentiment_field"
                        ],
                        "properties": {
                          "sentiment_type": {
                            "type": "string",
                            "description": "Sentiment to return. Case-sensitive.",
                            "enum": [
                              "POSITIVE",
                              "NEGATIVE",
                              "NEUTRAL"
                            ]
                          },
                          "sentiment_field": {
                            "type": "string",
                            "description": "Set to `sentiment`. Required."
                          }
                        }
                      }
                    }
                  },
                  "paging": {
                    "type": "object",
                    "description": "Pagination. If omitted, up to 25 results are returned.",
                    "properties": {
                      "page": {
                        "type": "integer",
                        "description": "Page number, starting from 0.",
                        "minimum": 0
                      },
                      "per_page": {
                        "type": "integer",
                        "description": "Results per page.",
                        "minimum": 1
                      }
                    }
                  },
                  "sorting": {
                    "type": "object",
                    "description": "Sorting options.",
                    "properties": {
                      "sorting_field": {
                        "type": "string",
                        "description": "Field to sort by. `reviewed_at` is the only supported value and is required when you send `sorting`; omit `sorting` to use the default order.",
                        "enum": [
                          "reviewed_at"
                        ]
                      },
                      "sorting_direction": {
                        "type": "string",
                        "description": "Sort direction. Case-sensitive. Does not apply to `yotpo_default_sorting`.",
                        "enum": [
                          "ASC",
                          "DESC"
                        ]
                      }
                    }
                  }
                }
              },
              "examples": {
                "Body": {
                  "value": {
                    "filter": {
                      "app_key": "YOUR_STORE_ID",
                      "date_range": {
                        "start_date": "2018-01-23T00:00:00.000Z",
                        "end_date": "2018-04-23T23:59:59.999Z"
                      },
                      "minimum_mentions": 10,
                      "external_product_ids": [
                        "2055"
                      ],
                      "location": {
                        "countries": [
                          "US"
                        ],
                        "states": [
                          "CA",
                          "FL"
                        ]
                      },
                      "product_groups": [],
                      "product_collections": [],
                      "topics": [
                        "flavor",
                        "taste"
                      ],
                      "exclude_topics": [],
                      "sentiment_filter": {
                        "sentiment_type": "POSITIVE",
                        "sentiment_field": "sentiment"
                      },
                      "minimum_score": 3,
                      "exclude_unpublished": true
                    },
                    "paging": {
                      "page": 0,
                      "per_page": 10
                    },
                    "sorting": {
                      "sorting_field": "reviewed_at",
                      "sorting_direction": "DESC"
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n  \"paging\": {\n    \"page\": 0,\n    \"page_count\": 1,\n    \"per_page\": 10,\n    \"total\": 3\n  },\n  \"reviews\": [\n    {\n      \"review_id\": 55920385,\n      \"email\": \"reviewer1@example.com\",\n      \"title\": \"My Favorite !!\",\n      \"content\": \"I have a ton of mods. Big mods, little mods, expensive mods, cheap mods. This one is my favorite, Compact with smooth edges that ride in my pocket perfectly. Huge tank that lasts days. The JVIC coils rock !! I use the .6ohm for DTL hits and its perfect. Air daw is great even without adjustable flow control. Im not a cloud chaser but, this thing makes great clouds, Flavor is excellent. Battery lasts all day. All around a perfect mod for my vaping style. I bought 2 so i always have one ready to go. Protip: Thoroughly clean all parts for the unit where you fill it or it may leak. if its clean and dry. no problems.\",\n      \"reviewed_at\": 1521728328000,\n      \"score\": 5,\n      \"opinions\": [\n        {\n          \"opinion\": \"excellent\",\n          \"sentence\": \"im not a cloud chaser but, this thing makes great clouds, flavor is excellent.\"\n        }\n      ]\n    },\n    {\n      \"review_id\": 56301440,\n      \"email\": \"reviewer2@example.com\",\n      \"title\": \"Solid device..\",\n      \"content\": \"If you're looking for an all in one, easy to use, cute little device.. This little guy is for you. Provides a great rip, and amazing flavor. I'm a mouth to lung girl. Hubby is a straight to lung guy. We both get what we need from this device. Enjoy!\",\n      \"reviewed_at\": 1522500878000,\n      \"score\": 4,\n      \"opinions\": [\n        {\n          \"opinion\": \"amazing flavor\",\n          \"sentence\": \"provides a great rip, and amazing flavor.\"\n        }\n      ]\n    },\n    {\n      \"review_id\": 57397817,\n      \"email\": \"reviewer3@example.com\",\n      \"title\": \"Great power and great flavor with some drawbacks\",\n      \"content\": \"The tank on this little thing leaks like crazy, so I drip fluid everywhere I go. The coils (I use .6 coils) also seem to be pretty unreliable -- one will last 10 days, the next one starts tasting burnt after 2.\",\n      \"reviewed_at\": 1523501544000,\n      \"score\": 3,\n      \"opinions\": [\n        {\n          \"opinion\": \"great flavor with some drawbacks\",\n          \"sentence\": \"great power and great flavor with some drawbacks\"\n        }\n      ]\n    }\n  ]\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "paging": {
                      "type": "object",
                      "properties": {
                        "page": {
                          "type": "integer",
                          "example": 0,
                          "default": 0,
                          "description": "Page number, starting at 0."
                        },
                        "page_count": {
                          "type": "integer",
                          "example": 1,
                          "default": 0,
                          "description": "Number of pages. On the review endpoints this can be `0` even when reviews are returned, so don't rely on it to stop paging."
                        },
                        "per_page": {
                          "type": "integer",
                          "example": 10,
                          "default": 0,
                          "description": "Results per page."
                        },
                        "total": {
                          "type": "integer",
                          "example": 3,
                          "default": 0,
                          "description": "Total number of results. On the review endpoints this can be `0` even when reviews are returned, so don't rely on it to stop paging."
                        }
                      },
                      "description": "Paging details."
                    },
                    "reviews": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "review_id": {
                            "type": "integer",
                            "example": 55920385,
                            "default": 0,
                            "description": "Review ID."
                          },
                          "email": {
                            "type": "string",
                            "example": "reviewer1@gmail.com",
                            "description": "Reviewer's email address."
                          },
                          "title": {
                            "type": "string",
                            "example": "My Favorite !!",
                            "description": "Review title."
                          },
                          "content": {
                            "type": "string",
                            "example": "I have a ton of mods. Big mods, little mods, expensive mods, cheap mods. This one is my favorite, Compact with smooth edges that ride in my pocket perfectly. Huge tank that lasts days. The JVIC coils rock !! I use the .6ohm for DTL hits and its perfect. Air daw is great even without adjustable flow control. Im not a cloud chaser but, this thing makes great clouds, Flavor is excellent. Battery lasts all day. All around a perfect mod for my vaping style. I bought 2 so i always have one ready to go. Protip: Thoroughly clean all parts for the unit where you fill it or it may leak. if its clean and dry. no problems.",
                            "description": "Review text."
                          },
                          "reviewed_at": {
                            "type": "integer",
                            "example": 1521728328000,
                            "default": 0,
                            "description": "When the review was written, as a Unix timestamp in milliseconds (for example `1734998400000`)."
                          },
                          "score": {
                            "type": "integer",
                            "example": 5,
                            "default": 0,
                            "description": "Star rating (1-5)."
                          },
                          "opinions": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "opinion": {
                                  "type": "string",
                                  "example": "excellent",
                                  "description": "The opinion, as extracted from the review text (lowercase)."
                                },
                                "sentence": {
                                  "type": "string",
                                  "example": "im not a cloud chaser but, this thing makes great clouds, flavor is excellent.",
                                  "description": "The sentence the opinion was found in."
                                }
                              }
                            },
                            "description": "Opinions found in the review that match the filter."
                          }
                        }
                      },
                      "description": "Reviews that match the filter."
                    }
                  }
                }
              }
            },
            "headers": {
              "ratelimit-limit": {
                "description": "The maximum number of requests allowed in the current time window",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "The number of requests remaining in the current time window",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "The time (in seconds) until the rate limit resets",
                "schema": {
                  "type": "integer"
                }
              },
              "x-ratelimit-limit-minute": {
                "description": "The maximum number of requests allowed per minute",
                "schema": {
                  "type": "integer"
                }
              },
              "x-ratelimit-remaining-minute": {
                "description": "The number of requests remaining in the current minute",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "400": {
            "description": "400",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {}
                }
              }
            },
            "headers": {
              "ratelimit-limit": {
                "description": "The maximum number of requests allowed in the current time window",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "The number of requests remaining in the current time window",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "The time (in seconds) until the rate limit resets",
                "schema": {
                  "type": "integer"
                }
              },
              "x-ratelimit-limit-minute": {
                "description": "The maximum number of requests allowed per minute",
                "schema": {
                  "type": "integer"
                }
              },
              "x-ratelimit-remaining-minute": {
                "description": "The number of requests remaining in the current minute",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid bearer token. The body is the plain string `unauthorized`."
          }
        },
        "deprecated": false,
        "security": [
          {
            "bearerAuth": []
          }
        ]
      }
    }
  },
  "x-readme": {
    "headers": [
      {
        "value": "application/json",
        "key": "Content-Type"
      }
    ],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true
}
```