# Get key metrics

Fetches aggregated key metrics for the authenticated user based on the provided location filters.

Endpoint: POST /home/key-metrics
Version: 20260801

## Request fields (application/json):

  - `locationIds` (array)
    List of location IDs to include

  - `businessIds` (array)
    List of business IDs to include

  - `locationGroupIds` (array)
    List of location group IDs to include

  - `labels` (array)
    List of labels to include
    Example: ["premium", "flagship"]

  - `excludedLocationIds` (array)
    List of location IDs to exclude

  - `excludedBusinessIds` (array)
    List of business IDs to exclude

  - `excludedLocationGroupIds` (array)
    List of location group IDs to exclude

  - `excludedLabels` (array)
    List of labels to exclude

  - `filterCategory` (string)
    Filter strategy to apply: location-groups, labels, business, or location
    Example: business

  - `query` (string)
    Search query string depending on filter category

## Response 200 fields (application/json):

  - `status` (string, required)
    Overall status of metric data availability
    Enum: "DEFAULT", "CONFIGURED"

  - `googleConnectionStatus` (string, required)
    Status of the Google Business Profile connection
    Enum: "CONNECTED", "PARTIALLY_CONNECTED", "NOT_CONNECTED"

  - `metrics` (array, required)
    List of key performance metrics

  - `metrics.metricType` (string, required)
    Type of metric
    Example: GOOGLE_SEARCHES

  - `metrics.timePeriod` (string, required)
    Time period for the metric
    Example: LAST_30_DAYS

  - `metrics.value` (number, required)
    Current metric value
    Example: 1250

  - `metrics.previousValue` (number)
    Previous period metric value for comparison
    Example: 1100

  - `metrics.deltaPercentage` (number)
    Percentage change from previous to current value
    Example: 13.6

  - `metrics.startDate` (string)
    Start date of the metric period
    Example: 2025-01-01

  - `metrics.endDate` (string)
    End date of the metric period
    Example: 2025-01-31

  - `metrics.deepLink` (string, required)
    Deep link URL to the detailed metrics view
    Example: /analytics/google-searches

  - `metrics.currencyCode` (string)
    Currency code for monetary metrics
    Example: EUR

