Website

Get visitor statistics for a website

get/v1/hosting/websites/{website_id}/visitors

Request

Path parameters

website_idinteger required

Query parameters

period'day' | 'week' | 'month' | 'year'

Time period for visitor statistics

Headers

x-api-keystring required

API key for authentication

Response

Visitor statistics retrieved successfully

status'ok' | 'error'
start_datestring date-time

Start date of the statistics period

end_datestring date-time

End date of the statistics period

suminteger

Total number of visitors in the period

Example response

{
  "status": "ok",
  "data": [
    {
      "count": 2,
      "date": "2025-05-29"
    },
    {
      "count": 5,
      "date": "2025-05-30"
    },
    {
      "count": 8,
      "date": "2025-05-31"
    },
    {
      "count": 3,
      "date": "2025-06-01"
    }
  ],
  "start_date": "Fri, 23 May 2025 00:00:00 GMT",
  "end_date": "Mon, 23 Jun 2025 00:00:00 GMT",
  "sum": 18
}

Changes

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