WorldVPN API

Enhance your very own custom applications with WorldVPN API. Employ all of WorldVPN's best features into your application and manage it with your own name.

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 days 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/api.v3.php';
        $postfields['action'] = 'createvpn';
        $postfields['resellerUsername'] = 'Your Reseller Username';
        $postfields['resellerPassword'] = 'Your Reseller Password';
        $postfields['period'] = '30';
        $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 days 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/api.v3.php';
        $postfields['action'] = 'renewvpn';
        $postfields['resellerUsername'] = 'Your Reseller Username';
        $postfields['resellerPassword'] = 'Your Reseller Password';
        $postfields['vpnUsername'] = 'Your VPN Username';
        $postfields['period'] = '30';
        $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/api.v3.php';
        $postfields['action'] = '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/api.v3.php';
        $postfields['action'] = '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/api.v3.php';
        $postfields['action'] = 'gettrial';
        $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);
      


List Servers

The API can be used to get all WorldVPN's Servers.

        $url = 'https://www.worldvpn.net/api/api.v3.php';
        $postfields['action'] = '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/api.v3.php';
        $postfields['action'] = '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);