v1

latestOpenAPI 3.0.2cPanel License2026-08-06657427.1 MB
Stats
Domain Statistics

Return daily AwStats statistics for a domain

This function returns the daily AwStats statistics for a domain.

get/Stats/get_stats_daily

Query parameters

domainstring domain required
Example:example.com

The domain to retrieve statistics for. Must be owned by the current cPanel user.

Response

HTTP Request was successful.

apiversioninteger

The version of the API.

funcstring

The name of the method called.

modulestring

The name of the module called.

Example response

{
  "apiversion": 3,
  "func": "get_stats_daily",
  "module": "Stats",
  "result": {
    "data": {
      "domain": "example.com",
      "stats": {
        "Thu Feb 01 2024 00:00:00 GMT+0000 (Coordinated Universal Time)": {
          "bandwidth": 81110,
          "hits": 6,
          "pages": 6,
          "visits": 5
        },
        "Fri Feb 02 2024 00:00:00 GMT+0000 (Coordinated Universal Time)": {
          "bandwidth": 888296,
          "hits": 43,
          "pages": 14,
          "visits": 7
        }
      }
    },
    "status": 1
  }
}