Analytics

Get website analytics

Retrieves analytics data for a specific website including traffic metrics, visitor counts, and performance data. Supports optional date range filtering.

get/v1/workspace/website/{website_id}/analytics

Request

  • Base URL: https://api.lindo.ai
  • URL: https://api.lindo.ai/v1/workspace/website/{website_id}/analytics
  • Auth: HTTP bearer

Path parameters

website_idstring required

Unique identifier of the website

Example:website_abc123

Query parameters

fromstring

Start date for analytics data (ISO timestamp)

Example:2024-01-01T00:00:00Z
tostring

End date for analytics data (ISO timestamp)

Example:2024-01-31T23:59:59Z

Response

Website analytics retrieved successfully

successtrue required

Indicates the operation was successful

Example response

{
  "success": true,
  "result": {
    "total_requests": 5000,
    "total_visitors": 1200,
    "avg_response_time": 120,
    "total_pages": 15,
    "total_blogs": 8,
    "traffic_over_time": [
      {
        "timestamp": "2024-01-15T10:00:00Z",
        "requests": 1500,
        "visitors": 250,
        "avg_response_time": 150,
        "errors": 5
      }
    ],
    "top_pages": [
      {
        "path": "/about",
        "requests": 500,
        "visitors": 100,
        "avg_response_time": 120
      }
    ],
    "top_countries": [
      {
        "country": "US",
        "requests": 800,
        "visitors": 150
      }
    ],
    "top_browsers": [
      {
        "browser": "Chrome",
        "count": 600,
        "visitors": 120
      }
    ],
    "top_devices": [
      {
        "device": "Desktop",
        "count": 700,
        "visitors": 140
      }
    ],
    "top_os": [
      {
        "os": "Windows",
        "count": 500,
        "visitors": 100
      }
    ],
    "top_referers": [
      {
        "domain": "google.com",
        "count": 300,
        "visitors": 80
      }
    ],
    "top_campaigns": [
      {
        "campaign": "summer_sale",
        "count": 200,
        "visitors": 50
      }
    ]
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.