Skip to Content
Metrics

Get Projects Dashboard Data

POST
/v0/metrics/projects-dashboard

Authorization

apiKeyAuth
headerx-api-key<token>

FastStats API key. Pass it in the x-api-key header or as a Bearer token in the Authorization header.

Request Body

application/json
  1. body
ownerId*string
metrics?array<string>|null

Response Body

Success

application/json
  1. response
projects*array<>
stats*
Example Request
curl -X POST 'https://api.faststats.dev/v0/metrics/projects-dashboard' \
  -H 'Content-Type: application/json' \
  -d '{
  "ownerId": "string"
}'
Example Response
{
  "projects": [
    {
      "id": "string",
      "name": "string",
      "errorTrackingEnabled": true,
      "webVitalsEnabled": true,
      "sessionReplaysEnabled": true,
      "slug": "string",
      "private": true,
      "templateId": "string",
      "createdAt": "string",
      "firstEventAt": "string",
      "ownerId": "string",
      "preferredChartColors": [
        "string"
      ],
      "icon": {
        "type": "icon",
        "value": "string",
        "color": "string"
      },
      "hasLlmProvider": true,
      "viewerRole": "string"
    }
  ],
  "stats": {
    "property1": {
      "events": 0,
      "eventsPrevious": 0,
      "eventsChange": 0,
      "users": 0,
      "usersPrevious": 0,
      "usersChange": 0,
      "errors": 0,
      "errorsPrevious": 0,
      "errorsChange": 0,
      "onlineServers": 0,
      "totalServers": 0,
      "onlinePlayers": 0,
      "totalDownloads": 0,
      "lastActivity": "string"
    },
    "property2": {
      "events": 0,
      "eventsPrevious": 0,
      "eventsChange": 0,
      "users": 0,
      "usersPrevious": 0,
      "usersChange": 0,
      "errors": 0,
      "errorsPrevious": 0,
      "errorsChange": 0,
      "onlineServers": 0,
      "totalServers": 0,
      "onlinePlayers": 0,
      "totalDownloads": 0,
      "lastActivity": "string"
    }
  }
}