getProxy


URL

https://onlinesim.io/api/proxy/getProxy.php?apikey=APIKEY&count=1&type=shared&connect=https&operator=all

Getting a proxy

Example

  • javascript
    var settings = {
        "async": true,
        "crossDomain": true,
        "url": "https://onlinesim.io/api/proxy/getProxy.php?apikey=APIKEY&count=1&type=shared&connect=https&operator=all",
        "method": "GET",
        "headers": {"accept": "application/json"}
    }
    $.ajax(settings).done(function (response) {
        console.log(response);
    });
  • php
    $curl = curl_init();
    curl_setopt_array($curl, array(
        CURLOPT_URL => "https://onlinesim.io/api/proxy/getProxy.php?apikey=APIKEY&count=1&type=shared&connect=https&operator=all",
        CURLOPT_RETURNTRANSFER => true,
        CURLOPT_SSL_VERIFYHOST => false,
        CURLOPT_SSL_VERIFYPEER => false,
        CURLOPT_HTTPHEADER => [
            "Content-Type: application/json",
        ]
    ));
    $response = curl_exec($curl);
    curl_close($curl);
    var_dump(json_decode($response, true));

Options

Parameter Name Parameter Data type Description
class non-required STRING type of rental or traffic days, default: days
type required STRING type. shared or sharednowait or private or privatenowait or multiport, for traffic rent not needed
connect required STRING connect type. https or socks, for traffic rent not needed
count required INT rental days [1,7,15,30] or traffic count in gb [1,5,10,15], default: 1
operator non-required STRING operator, default: any. mts,megafon,beeline,tele2
country non-required STRING country_code, see Tariffs, default: any
city non-required STRING city_code, see Tariffs, default: any
port_count non-required STRING The number of ports to Multiport
session non-required BOOLEAN Saving session to traffic rent
rotation non-required INTEGER rotation for days proxy; shared - 2,5, sharednowait - 2, private - 1,2,3,4,5,15,20,30,50,0, privatenowait - 1,2,3,4,5

Result

After successful execution, a response will be received in JSON format, as follows:

json {response:1, item => {...}}

Parameter Name Parameter Data type Description
tzid required INT tzid proxy
item proxy item

proxy item

Parameter Name type Description
tzid int tzid
host string ip
port int порт
user string user
pass string password
change_ip bool Parameter to change ip
check_at string? Proxy Check Date
comment string? Comment
connect_type string connection type
country int country code
created_at int order date
days int Number of rental days
hours int Number of rental hours
ping int ping
operator string operator
rent int Number of rental days
rotate int Change ip
status int Status
stop_at string shutdown date
time int Rental time
type string proxy type
updated_at string Update date