latestOpenAPI 3.0.2cPanel License2026-08-106251554.3 MB

3da41671c02c

Server Administration
API Statistics

Return deprecated cPanel API 1 functions by date

This function returns the cPanel API 1 functions that the system called on specific dates. This is useful, for example, to check whether your system calls any cPanel API 1 functions.

Important:

The function only returns cPanel API 1 functions. We deprecated cPanel API 1 and plan to remove those functions at a later date. For more information, read our Guide to Replacing cPanel API 1 Functions with UAPI Equivalents documentation.

get/get_api_calls

Query parameters

typestring
Example:cpapi1

The cPanel API 1 function to query.

Note:

cpapi1 is the only possible value.

Response

HTTP Request was successful.

Example response

{
  "data": {
    "result": [
      {
        "count": 200000,
        "entry": "Email::printdomainoptions",
        "timestamp": 1548828000
      }
    ]
  },
  "metadata": {
    "command": "get_api_calls",
    "reason": "OK",
    "result": 1,
    "version": 1
  }
}