CrownPanel's API allows you to manage your VPS programmatically - including actions like power control, hostname changes, snapshot management, and more.
POST method to https://api.crownpanel.comYou can use the API with:
curlIdeal for automation, integration into management panels, or performing bulk operations across multiple VPS instances.
Use this API call to retrieve the list of IP addresses assigned to your VPS - including IPv4 and IPv6 addresses, gateways, and netmasks.
| Key | Variable | Description | Required |
|---|---|---|---|
API_KEY |
YOUR_API_KEY |
Replace YOUR_API_KEY with your actual API key provided in "Account Settings", under the API section. |
â Yes |
QUERY |
list_ip_addresses |
Fixed value: "list_ip_addresses" | â Yes |
VMID |
YOUR_VMID |
Replace YOUR_VMID with your VPS VMID provided by "List All VPS" API Query |
â Yes |
YOUR_API_KEY, QUERY & YOUR_VMID parameters are valid, you would get the following output,{"ip_address":"www.xxx.yyy.zzz","ip_address_type":"IPv4","ip_address_gateway":"www.xxx.yyy.zzz","ip_address_netmask":"255.255.255.192"},{"ip_address":"aaa:bbb:ccc:ddd::/64","ip_address_type":"IPv6","ip_address_gateway":"aaa:bbb:ccc::d","ip_address_netmask":"/48"}
â If YOUR_API_KEY or QUERY or YOUR_VMID are invalid, you would get the following output,
{"query_status":"Error","query":"","query_result":""}
If you prefer to use another language or environment, here are examples for PHP, Python and Node.js:
âī¸ Install (only once): Required to install necessary libraries before running the code.
âī¸ Install (only once): Required to install necessary libraries before running the code.
Need help? Visit our Support Portal or use our live chat.