---
title: "Get dashboard analytics for multiple projects in a single batch request"
method: GET
path: "/dashboard/projects-analytics"
tags: ["Events"]
---

# Get dashboard analytics for multiple projects in a single batch request

`GET /dashboard/projects-analytics`

## Request

- Base URL: `/api` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/api/dashboard/projects-analytics`
- Auth: HTTP bearer

Returns unique visitor counts and hourly sparkline data for all requested projects
using only 2 SQL queries instead of 2×N per-project queries.

## Query parameters

- `project_ids` string, required
- `start_date` string, required
- `end_date` string, required

## Response `200`

Successfully retrieved batch analytics

- DashboardProjectsAnalyticsResponse: Batch response for dashboard project analytics
  - `projects` object, required: Map of project_id -> analytics data

## Other responses

- `400`: Bad request
- `401`: Unauthorized
- `500`: Internal server error

## Changes

- **2026-04-25** `774be20905f2`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/gotempsh/apis/temps/changes/dashboard/projects-analytics/get.md)

---

[API](https://skmtc.dev/gotempsh/apis/temps.md) - [All operations](https://skmtc.dev/gotempsh/apis/temps/llms.txt) - [OpenAPI document](https://skmtc.dev/gotempsh/apis/temps/revisions/3b040526eb43?raw)
