The cPanel API 2 system is deprecated. We strongly recommend that you use UAPI instead of cPanel API 2.
The DenyIp module manages access to IP addresses.
In cPanel & WHM version 76, we introduced server profiles and roles. When you enable a non-Standard Node server profile, the system disables API calls associated with that profile's disabled roles.
cPanel API 2 Functions -
DenyIp::listdenyips — This function lists blocked IP addresses.