Integrate your customized applications with WorldVPN's API and incorporate all of the provider's top features. Customize your app by managing it under your name while leveraging WorldVPN's robust capabilities.
Create VPN
This API can be used to create a VPN account. You're not required to enter any usernames and passwords while creating the account. The required parameters you need to fill the number of months for which you wish to use this account. The time period for which you wish to use this account has defined parameters.
$url = 'https://www.worldvpn.net/api/addVPN'; $postfields['resellerUsername'] = 'Your Reseller Username'; $postfields['resellerPassword'] = 'Your Reseller Password'; $postfields['vpnUsername'] = 'some username'; $postfields['vpnPassword'] = 'some password'; $postfields['period'] = '1'; $postfields['mode'] = 'test'; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_TIMEOUT, 100); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_POSTFIELDS, $postfields); $data = curl_exec($ch); curl_close($ch); $data = json_decode($data);
Renew VPN
This API can be used to renew your VPN account. The required parameters that you would need to fill are your username, and the number of months for which you want to renew your account. The time period for which you wish to use this account has defined parameters.
$url = 'https://www.worldvpn.net/api/renewVPN'; $postfields['resellerUsername'] = 'Your Reseller Username'; $postfields['resellerPassword'] = 'Your Reseller Password'; $postfields['vpnUsername'] = 'Your VPN Username'; $postfields['period'] = '1'; $postfields['mode'] = 'test'; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_TIMEOUT, 100); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_POSTFIELDS, $postfields); $data = curl_exec($ch); curl_close($ch); $data = json_decode($data);
Delete VPN
This API can be used to delete your VPN account. Required parameter you need to fill is your username.
$url = 'https://www.worldvpn.net/api/deleteVPN'; $postfields['resellerUsername'] = 'Your Reseller Username'; $postfields['resellerPassword'] = 'Your Reseller Password'; $postfields['vpnUsername'] = 'Your VPN Username'; $postfields['mode'] = 'test'; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_TIMEOUT, 100); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_POSTFIELDS, $postfields); $data = curl_exec($ch); curl_close($ch); $data = json_decode($data);
Change VPN Password
The API can be used to change the password of your VPN account. Required parameters you need to fill are your username and your new password.
$url = 'https://www.worldvpn.net/api/changePassword'; $postfields['resellerUsername'] = 'Your Reseller Username'; $postfields['resellerPassword'] = 'Your Reseller Password'; $postfields['vpnUsername'] = 'Your VPN Username'; $postfields['vpnPassword'] = 'New Password'; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_TIMEOUT, 100); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_POSTFIELDS, $postfields); $data = curl_exec($ch); curl_close($ch); $data = json_decode($data);
Take A Trial
The API can be used to 24 hours VPN Trial.
$url = 'https://www.worldvpn.net/api/getTrial'; $postfields['resellerUsername'] = 'Your Reseller Username'; $postfields['resellerPassword'] = 'Your Reseller Password'; $postfields['email'] = 'Client Email'; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_TIMEOUT, 100); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_POSTFIELDS, $postfields); $data = curl_exec($ch); curl_close($ch); $data = json_decode($data);
List Servers
The API can be used to get all WorldVPN's Servers.
$url = 'https://www.worldvpn.net/api/listServers'; $postfields['resellerUsername'] = 'Your Reseller Username'; $postfields['resellerPassword'] = 'Your Reseller Password'; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_TIMEOUT, 100); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_POSTFIELDS, $postfields); $data = curl_exec($ch); curl_close($ch); $data = json_decode($data);
Show Credit
The API can be used to show your Reseller credit.
$url = 'https://www.worldvpn.net/api/getCredit'; $postfields['resellerUsername'] = 'Your Reseller Username'; $postfields['resellerPassword'] = 'Your Reseller Password'; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_TIMEOUT, 100); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_POSTFIELDS, $postfields); $data = curl_exec($ch); curl_close($ch); $data = json_decode($data);
Get Reseller VPN Accounts
The API can be used to show your Reseller VPN accounts.
$url = 'https://www.worldvpn.net/api/getAccounts'; $postfields['resellerUsername'] = 'Your Reseller Username'; $postfields['resellerPassword'] = 'Your Reseller Password'; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_TIMEOUT, 100); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_POSTFIELDS, $postfields); $data = curl_exec($ch); curl_close($ch); $data = json_decode($data);
Check VPN Credentials
The API can be used to check your VPN credentials.
$url = 'https://www.worldvpn.net/api/checkAuth'; $postfields['resellerUsername'] = 'Your Reseller Username'; $postfields['resellerPassword'] = 'Your Reseller Password'; $postfields['vpnUsername'] = 'some username'; $postfields['vpnPassword'] = 'some password'; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_TIMEOUT, 100); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_POSTFIELDS, $postfields); $data = curl_exec($ch); curl_close($ch); $data = json_decode($data);
Add WireGuard Peer
This API creates a new WireGuard configuration for a VPN user on a specific server. The configuration limit depends on the user's account type (e.g., budget: 3 configs, unlimited: 5 configs). Returns the WireGuard config ID, client IP, and server details.
$url = 'https://www.worldvpn.net/api/addWireGuardPeer'; $postfields['resellerUsername'] = 'Your Reseller Username'; $postfields['resellerPassword'] = 'Your Reseller Password'; $postfields['vpnUsername'] = 'VPN Username'; $postfields['serverId'] = '1'; // Server ID from listServers API $postfields['mode'] = 'test'; // Remove for production $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_TIMEOUT, 100); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_POSTFIELDS, $postfields); $data = curl_exec($ch); curl_close($ch); $data = json_decode($data);
Get WireGuard Config
This API retrieves WireGuard configuration(s) for a VPN user. You can get all configurations or a specific one by providing the wireguardId. Returns the full config file content (both plaintext and Base64 encoded) ready for download or QR code generation.
$url = 'https://www.worldvpn.net/api/getWireGuardConfig'; $postfields['resellerUsername'] = 'Your Reseller Username'; $postfields['resellerPassword'] = 'Your Reseller Password'; $postfields['vpnUsername'] = 'VPN Username'; $postfields['wireguardId'] = '123'; // Optional: specific config ID $postfields['mode'] = 'test'; // Remove for production $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_TIMEOUT, 100); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_POSTFIELDS, $postfields); $data = curl_exec($ch); curl_close($ch); $data = json_decode($data);
Delete WireGuard Peer
This API deletes a WireGuard configuration for a VPN user. The configuration will be removed from the database and the server will be updated to remove the peer.
$url = 'https://www.worldvpn.net/api/deleteWireGuardPeer'; $postfields['resellerUsername'] = 'Your Reseller Username'; $postfields['resellerPassword'] = 'Your Reseller Password'; $postfields['vpnUsername'] = 'VPN Username'; $postfields['wireguardId'] = '123'; // WireGuard config ID to delete $postfields['mode'] = 'test'; // Remove for production $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_TIMEOUT, 100); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_POSTFIELDS, $postfields); $data = curl_exec($ch); curl_close($ch); $data = json_decode($data);