Return deprecated cPanel API 1 functions

This function returns the daily interface use of cPanel API 1 functions. Use this function to find out which API calls your custom interfaces or third-party plugins use.

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.

Authorizations:
query Parameters
type
string
Default: "cpapi1"

The cPanel API type to query.

Value: "cpapi1"
Example: type=cpapi1

Responses

Response Schema: application/json
object
object

Request samples

whmapi1 --output=jsonpretty \
  get_api_pages

Response samples

Content type
application/json
{
  • "data": {
    • "count": 200000,
    • "entry": "/usr/local/cpanel/base/frontend/paper_lantern/plugin1/index.html.tt",
    • "timestamp": 1548828000
    },
  • "metadata": {
    • "command": "get_api_pages",
    • "reason": "OK",
    • "result": 1,
    • "version": 1
    }
}