---
title: "Get Destinations Analytics"
method: GET
path: "/admin/analytics/destinations"
tags: ["admin"]
---

# Get Destinations Analytics

`GET /admin/analytics/destinations`

## Request

- Base URL: `https://stardrift.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://stardrift.ai/admin/analytics/destinations`
- Auth: none declared

Get popular destinations analytics.

Shows top destinations and countries by trip or user count.

## Query parameters

- `start_date` string, required: Start date (ISO format)
- `end_date` string, required: End date (ISO format)
- `count_by` string: Count by 'trips' or 'users'

## Response `200`

Successful Response

- DestinationsAnalyticsResponse: Response for destinations analytics endpoint.
  - `destinations` ApiRoutesAdminDestinationItem[], required
    - `destination` string, required
    - `country` string, required
    - `count` integer, required
  - `countries` DestinationCountryItem[], required
    - `country` string, required
    - `count` integer, required
  - `count_by` string, required

## Other responses

- `422`: Validation Error

---

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