v1

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

Return Analog statistics for all domains

This function displays the Analog statistics for the domains on a cPanel account.

get/Stats/list_sites

Query parameters

engine'webalizer' | 'analog' required
Example:webalizer

The statistics engine.

  • webalizer
  • analog
traffic'http' | 'ftp'
Example:http

The web traffic type.

  • http
  • ftp

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": "list_sites",
  "module": "Stats",
  "result": {
    "data": [
      {
        "all_domains": 1,
        "domain": "example.com",
        "path": "/tmp/user/webalizer/index.html",
        "ssl": 1
      }
    ],
    "status": 1
  }
}