Syntext DOCS
Get Started
API Get Analytics Summary
GET/v1/projects/{projectId}/analytics/summary

Get Analytics Summary

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

Path Parameters

The project ID.

Query Parameters

Time window in days.

Example

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

Response

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

Exact fields may grow over time — treat unknown fields as forward-compatible additions.

Assistant
Responses are generated using AI and may contain mistakes.

Ask me anything about the documentation.

ESC