Ai Chat

WorldVPN API

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.

API Methods

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);