Description
This function retrieves an account's statistics.
Warning:
We strongly recommend that you use the following UAPI function instead of this function:
- 
StatsBar::get_stats— This function retrieves a cPanel account's statistics.
Examples
Note:
Use cPanel's API Shell interface (Home >> Advanced >> API Shell) to directly test cPanel API calls.
Parameters
| Parameter | Type | Description | Possible values | Example | 
| display | string | Required A list of the account's statistics. | Click to view... Note: Separate each value with a pipe character (|). | ftpaccounts|perlversion|dedicatedip | 
| warnings | Boolean | Required Whether to return all results. | 
 | 0 | 
| warninglevel | integer | Required The minimum level at which to return warnings. | A positive integer. | 87 | 
| warnout | Boolean | Required Whether to display results with a value of 100%. | 
 | 0 | 
| infinityimg | string | Required The full file path to an alternative infinity symbol. | An absolute file path to an image file. | /home/example/infinity.png | 
| infinitylang | string | Required A phrase represent infinity that the locales system can use. | A string value. | infinity | 
| rowcounter | string | Required The type of row. | 
 | even | 
Returns
| Return | Type | Description | Possible vales | Example | 
| zeroisunlimited | Boolean | Whether a value of 0 means unlimited or zero. | 
 | 1 | 
| percent10 | integer | The percentage of value. | A positive integer. Note: Round to the nearest ten if applicable. | 0 | 
| percent | integer | The percentage of value, if applicable. | An integer value. | 0 | 
| item | string | A human-readable version of the queried item. | A string value. | Disk Space Usage | 
| max | string | The queried value's limit. | A string value. | unlimited | 
| langkey | string | The value's display locale. | A string value. | INDXDiskUsage | 
| percent5 | integer | The percentage of value. | An integer value. Note: Round to the nearest five if applicable. | 0 | 
| id | string | The display key. | A string value. | diskusage | 
| module | string | The module that retrieved the information. | A string value. | Quota | 
| count | string | The queried data's value. | A string value. | 0.77 | 
| _count | string | The queried data's value. | A string value. | 0.77 | 
| name | string | The display key. | A string value. | diskusage | 
| _max | string | The queried parameter's limit. | A string value. | unlimited | 
| normalized | Boolean | Whether the function normalized the output values. | 
 | 1 | 
| _percent20 | integer | The percentage of value. | An integer value. Note: Round to the nearest twenty if applicable. | 0 | 
| _maxed | Boolean | Whether the values reached their maximum value. | 
 | 0 | 
| units | string | The queried value's unit of measure. | A string value. | MB | 
