# Get Interaction Analytics

```http
GET https://api.synup.com/api/v4/locations/{locationId}/{type}
```

This API retrieves interaction analytics data based on the requested analytics type.

**Available Analytics Types:**
- `review-analytics-overview` – Provides overall statistics, including total interactions, average ratings, and response rates.
- `review-analytics-timeline` – Returns time-based analytics, showing interaction trends over a selected period.
- `review-analytics-sites-stats` – Provides site-wise breakdown, showing performance across platforms like Google, Facebook, and Yelp.

Source: https://developer.synup.com/api/reviews/get-interaction-analytics

## Path parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `locationId` | string | required | Base64 encoded location ID (e.g., TG9jYXRpb246MTA1NTk0Nw==) |
| `type` | string | required | Type of analytics data to retrieve |

## Query parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `startDate` | string | optional | Required for timeline analytics. Format YYYY-MM-DD |
| `endDate` | string | optional | Required for timeline analytics. Format YYYY-MM-DD |

## Example request

```bash
curl -X GET 'https://api.synup.com/api/v4/locations/:locationId/:type' \
  -H 'Authorization: API YOUR_API_KEY' \
  -H 'Content-Type: application/json'
```

## Responses

| Status | Description |
| --- | --- |
| `200` | Successfully retrieved analytics data |
