v1

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

Return Analog statistics for specified domain

This function returns a domain's Analog statistics.

get/Stats/list_stats_by_domain

Query parameters

domainstring domain required
Example:example.com

The domain from which to retrieve statistics.

engine'analog' required
Example:analog

The statistics engine. analog is the only possible value.

ssl0 | 1
Example:1

Whether to return statistics from SSL requests.

  • 1 - Return statistics for SSL requests.
  • 0 - Return statistics for non-SSL requests.

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_stats_by_domain",
  "module": "Stats",
  "result": {
    "data": [
      {
        "date": 1565795929,
        "url": "tmp/cptest/analog/8.html.com"
      }
    ],
    "status": 1
  }
}