Skip to main content
GET
/
v1
/
workspace
/
website
/
{website_id}
/
analytics
Get website analytics
curl --request GET \
  --url https://apidev.lindo.ai/v1/workspace/website/{website_id}/analytics \
  --header 'Authorization: Bearer <token>'
{
  "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
      }
    ]
  }
}

Authorizations

Authorization
string
header
required

Enter your API key (starts with lindo_sk_)

Path Parameters

website_id
string
required

Unique identifier of the website

Example:

"website_abc123"

Query Parameters

from
string

Start date for analytics data (ISO timestamp)

Example:

"2024-01-01T00:00:00Z"

to
string

End date for analytics data (ISO timestamp)

Example:

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

Response

Website analytics retrieved successfully

success
enum<boolean>
required

Indicates the operation was successful

Available options:
true,
false
Example:

true

result
object
required