Access
Get Entry Nodes
GET /access/entry-nodes
Different entry nodes help to determine the faster route from the country you are situated in.
Example request:
curl -X GET https://resi-api.iproyal.com/v1/access/entry-nodes \
-H "Authorization: Bearer <your_api_token>"<?php
$api_token = '<your_api_token>';
$url = 'https://resi-api.iproyal.com/v1/access/entry-nodes';
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_HTTPGET, true);
$headers = [
"Authorization: Bearer $api_token"
];
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);
if (curl_errno($ch)) {
echo 'Error:' . curl_error($ch);
} else {
echo $response;
}
curl_close($ch);
?>Example response:
[
{
"dns": "proxy.iproyal.com",
"ips": ["91.239.130.34"],
"ports": [
{
"name": "http|https",
"port": 12321,
"alternative_ports": [
11200,
...
]
},
{
"name": "socks5",
"port": 32325,
"alternative_ports": [
51200,
...
]
}
]
},
{
"dns": "us.proxy.iproyal.com",
"ips": ["23.146.144.102", "23.146.144.102"],
"ports": [
{
"name": "http|https",
"port": 12321,
"alternative_ports": [
11246,
...
]
},
{
"name": "socks5",
"port": 32325,
"alternative_ports": [
51200,
...
]
}
]
},
...
]Get Countries
GET /access/countries
Returns a list of countries, cities, states, and ISPs (Internet Service Providers) that could be used to target a specific proxy. It also returns prefixes to use for each. For more information on how to build a proxy string, refer to our 'Proxy' subsection.
Example request:
Example response:
Get Regions
Similarly to Access, it returns available regions for use when targeting a proxy.
GET /access/regions
Example request:
Example response:
Get Country Sets
GET /access/country-sets
Similarly to Access, it returns available country sets to use when targeting a proxy.
Example request:
Example response:
Generate Proxy List
POST /access/generate-proxy-list
Body Parameters
format
String
Format in which proxy strings will be returned
port
String
Port as protocol type
rotation
String
Rotation that will be used
subuser_hash
String
Subuser that will be used
proxy_count
Integer
Proxy count that will be returned
username
String
Username that will be used
password
String
Password that will be used
lifetime
String
For sticky sessions this will tell how long this session will last
Example request:
Example response:
Last updated
Was this helpful?