Return Analog statistics for all domains

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

Authorizations:
query Parameters
engine
required
string

The statistics engine.

  • webalizer
  • analog
Enum: "webalizer" "analog"
Example: engine=webalizer
traffic
string
Default: "http"

The web traffic type.

  • http
  • ftp
Enum: "http" "ftp"
Example: traffic=http

Responses

Response Schema: application/json
apiversion
integer

The version of the API.

func
string

The name of the method called.

module
string

The name of the module called.

object

Request samples

uapi --output=jsonpretty \
  --user=username \
  Stats \
  list_sites \
  engine='webalizer'

Response samples

Content type
application/json
{
  • "apiversion": 3,
  • "func": "list_sites",
  • "module": "Stats",
  • "result": {
    • "data": [
      • {
        • "all_domains": 1,
        • "domain": "example.com",
        • "path": "/tmp/user/webalizer/index.html",
        • "ssl": 1
        }
      ],
    • "errors": null,
    • "messages": null,
    • "metadata": { },
    • "status": 1,
    • "warnings": null
    }
}