---
title: Get Analytics Summary
protocol: rest
method: GET
endpoint: /v1/projects/{projectId}/analytics/summary
description: "Aggregated traffic and engagement metrics for a project."
---

# Get Analytics Summary

Returns aggregated traffic and engagement metrics for the given time window.

<Endpoint method="GET" path="/v1/projects/{projectId}/analytics/summary" />

## Path Parameters

<ParamField path="projectId" type="string" required>
  The project ID.
</ParamField>

## Query Parameters

<ParamField query="days" type="integer" default="30">
  Time window in days.
</ParamField>

## Example

```bash
curl "https://api.syntext.dev/v1/projects/prj_abc123/analytics/summary?days=30" \
  -H "Authorization: Bearer stx_abc12345_..."
```

### Response

```json
{
  "data": {
    "totalViews": 48210,
    "uniqueVisitors": 12034,
    "totalSearches": 3921,
    "totalChatQuestions": 1287,
    "avgTimeOnPage": 94
  }
}
```

<Note>
Exact fields may grow over time — treat unknown fields as forward-compatible additions.
</Note>
