---
title: "Get Google My Business Analytics"
method: GET
path: "/locations/{locationId}/google-analytics"
tags: ["Profile Analytics"]
---

# Get Google My Business Analytics

`GET /locations/{locationId}/google-analytics`

## Request

- Base URL: `https://api.synup.com/api/v4`
- URL: `https://api.synup.com/api/v4/locations/{locationId}/google-analytics`
- Auth: none required
- TypeScript: <https://skmtc.dev/synup/apis/synup-api/docs/locations/:locationId/google-analytics/get.ts> (a function with typed inputs; its response is checked against the schema)

This API retrieves a specific location's profile analytics data from Google Business Profile (GBP).

## Path parameters

- `locationId` string, required

## Query parameters

- `fromDate` string, date
- `toDate` string, date

## Headers

- `Authorization` string, required

## Response `200`

Successful response

- object
  - `data` object
    - `googleInsights` object
      - `directionsAction` InsightMetricV2[]: The number of times directions for the particular location was requested
        - `startTime` string, date-time: Start time of the analytics period
        - `value` integer: Metric value for the period
      - `maps` InsightMetricV2[]: The number of times the location showed up on Google Maps
        - `startTime` string, date-time: Start time of the analytics period
        - `value` integer: Metric value for the period
      - `phoneAction` InsightMetricV2[]: The number of times the call number for the location was requested
        - `startTime` string, date-time: Start time of the analytics period
        - `value` integer: Metric value for the period
      - `search` InsightMetricV2[]: The number of times the location showed up on Google Search results
        - `startTime` string, date-time: Start time of the analytics period
        - `value` integer: Metric value for the period
      - `websiteAction` InsightMetricV2[]: The number of times the website URL for the location was requested
        - `startTime` string, date-time: Start time of the analytics period
        - `value` integer: Metric value for the period
      - `total` InsightMetricV2[]: The total sum of all the above interactions
        - `startTime` string, date-time: Start time of the analytics period
        - `value` integer: Metric value for the period

## Other responses

- `401`: Unauthorized
- `404`: Location not found

---

[API](https://skmtc.dev/synup/apis/synup-api.md) - [All operations](https://skmtc.dev/synup/apis/synup-api/llms.txt) - [OpenAPI document](https://skmtc.dev/synup/apis/synup-api/revisions/67de2d51c22e?raw)
