# Reviews - REST API

 [Reviews](https://easydigitaldownloads.com/downloads/product-reviews/?utm_campaign=documentation&amp;utm_source=helpscout&amp;utm_medium=doc&amp;utm_term=1397-product-reviews-rest-api) integrates with the [EDD REST API](https://easydigitaldownloads.com/docs/edd-rest-api-introduction/) allowing you to retrieve reviews in either a JSON or XML format.

 The [EDD REST API](https://easydigitaldownloads.com/docs/edd-rest-api-introduction/) provides an endpoint called `/reviews/`. The reviews endpoint allows you to query the database and retrieve a list of reviews placed on all products from your store. A basic reviews query looks like this:

```
https://yoursite.com/edd-api/reviews/?key=c281cf0a95be875d9eeb284fb004c938&amp;token=5f9432f3ffa5945755ebc66179810d70
```

 For each review returned, you&#039;ll receive the following information:

- **id** - The unique ID of the review
- **title** - The title of the review
- **parent** - If the review is a reply, this gives the ID of the parent review
- **download\_id** - The ID of the download for which this review was created
- **download\_title** - Title of the download for which this review was created
- **rating** - The rating given by the reviewer. This will be `null` for a reply.
- **author** - The name of the author of the review
- **email** - The email address of the author of the review
- **IP** - The IP address from which the review was submitted
- **date** - The date the review was submitted
- **date\_gmt** - The date (in GMT) the review was submitted
- **content** - The content of the review
- **status** - The status of the review. 1 represents approved and 0 represents unapproved (pending). The status can also be &quot;spam&quot; or &quot;trash&quot;
- **user\_id** - The WordPress user ID of the review author
- **type** - Either a review or reply depending on what it is
- **votes** - The number of people who have voted that this review is helpful or unhelpful. This will be `null` for a reply. If this is a review, it will have sub-keys of `yes` and `no`

 A reviews query response looks like this:

```
{
    &quot;reviews&quot;: {
        &quot;total&quot;: &quot;2&quot;,
        &quot;most_recent&quot;: [
            {
                &quot;id&quot;: &quot;63&quot;,
                &quot;title&quot;: null,
                &quot;parent&quot;: &quot;60&quot;,
                &quot;download_id&quot;: &quot;1568&quot;,
                &quot;download_title&quot;: &quot;Endless Possibilities&quot;,
                &quot;rating&quot;: null,
                &quot;author&quot;: &quot;Sunny Ratilal&quot;,
                &quot;email&quot;: &quot;dev@local.dev&quot;,
                &quot;IP&quot;: &quot;172.17.0.1&quot;,
                &quot;date&quot;: &quot;2016-07-20 17:24:48&quot;,
                &quot;date_gmt&quot;: &quot;2016-07-20 17:24:48&quot;,
                &quot;content&quot;: &quot;Replying to test review&quot;,
                &quot;status&quot;: &quot;1&quot;,
                &quot;user_id&quot;: &quot;1&quot;,
                &quot;type&quot;: &quot;reply&quot;,
                &quot;votes&quot;: null
            },
            {
                &quot;id&quot;: &quot;61&quot;,
                &quot;title&quot;: &quot;Great read&quot;,
                &quot;parent&quot;: &quot;0&quot;,
                &quot;download_id&quot;: &quot;1566&quot;,
                &quot;download_title&quot;: &quot;eBook&quot;,
                &quot;rating&quot;: &quot;4&quot;,
                &quot;author&quot;: &quot;Sunny Ratilal&quot;,
                &quot;email&quot;: &quot;dev@local.dev&quot;,
                &quot;IP&quot;: &quot;172.17.0.1&quot;,
                &quot;date&quot;: &quot;2016-07-19 19:25:22&quot;,
                &quot;date_gmt&quot;: &quot;2016-07-19 19:25:22&quot;,
                &quot;content&quot;: &quot;Well written book&quot;,
                &quot;status&quot;: &quot;1&quot;,
                &quot;user_id&quot;: &quot;1&quot;,
                &quot;type&quot;: &quot;review&quot;,
                &quot;votes&quot;: {
                    &quot;yes&quot;: &quot;3&quot;,
                    &quot;no&quot;: &quot;0&quot;
                }
            },
        ]
    },
    &quot;request_speed&quot;: 0.08372688293457
}
```

 Certain query variables can be attached to the base query. If you want to receive the data for a single review, you can add the *&amp;review\_id={identifier}* parameter, like this:

```
https://yoursite.com/edd-api/reviews/?key=c281cf0a95be875d9eeb284fb004c938&amp;token=5f9432f3ffa5945755ebc66179810d70&amp;review_id=61
```

 The response for a single review looks like this:

```
{
    &quot;reviews&quot;: {
        &quot;id&quot;: &quot;61&quot;,
        &quot;title&quot;: &quot;Great read&quot;,
        &quot;parent&quot;: &quot;0&quot;,
        &quot;download_id&quot;: &quot;1566&quot;,
        &quot;download_title&quot;: &quot;eBook&quot;,
        &quot;rating&quot;: &quot;4&quot;,
        &quot;author&quot;: &quot;Sunny Ratilal&quot;,
        &quot;email&quot;: &quot;dev@local.dev&quot;,
        &quot;IP&quot;: &quot;172.17.0.1&quot;,
        &quot;date&quot;: &quot;2016-07-19 19:25:22&quot;,
        &quot;date_gmt&quot;: &quot;2016-07-19 19:25:22&quot;,
        &quot;content&quot;: &quot;Well written book&quot;,
        &quot;status&quot;: &quot;1&quot;,
        &quot;user_id&quot;: &quot;1&quot;
    },
    &quot;request_speed&quot;: 0.0022079944610596
}
```

 If you want to view all the reviews for a single download, you can add the *&amp;download\_id={identifier}* parameter, like this:

```
https://yoursite.com/edd-api/reviews/?key=c281cf0a95be875d9eeb284fb004c938&amp;token=5f9432f3ffa5945755ebc66179810d70&amp;download_id=1568
```

 The above query will generate a response similar to above but will have multiple sub-keys under the `reviews` key