Return Analog statistics for all domains

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

SecurityBasicAuth
Request
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
200

HTTP Request was successful.

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
get/Stats/list_sites
Request samples
uapi --output=jsonpretty \
  --user=username \
  Stats \
  list_sites \
  engine='webalizer'
Response samples
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
    }
}