curl --request POST \
--url https://api.okeyproxy.com/ipglobal-api/api/v2/proxy/endpoints/continents-custom \
--header 'Content-Type: application/json' \
--data '
{
"apiKey": "<string>",
"proxyType": 123,
"secUsername": "<string>",
"protocol": "<string>",
"randomLocation": 123,
"continentCode": "<string>",
"countryCode": "<string>",
"regionName": "<string>",
"cityName": "<string>",
"sessionType": "<string>",
"sessionTime": 123,
"count": 123
}
'import requests
url = "https://api.okeyproxy.com/ipglobal-api/api/v2/proxy/endpoints/continents-custom"
payload = {
"apiKey": "<string>",
"proxyType": 123,
"secUsername": "<string>",
"protocol": "<string>",
"randomLocation": 123,
"continentCode": "<string>",
"countryCode": "<string>",
"regionName": "<string>",
"cityName": "<string>",
"sessionType": "<string>",
"sessionTime": 123,
"count": 123
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
apiKey: '<string>',
proxyType: 123,
secUsername: '<string>',
protocol: '<string>',
randomLocation: 123,
continentCode: '<string>',
countryCode: '<string>',
regionName: '<string>',
cityName: '<string>',
sessionType: '<string>',
sessionTime: 123,
count: 123
})
};
fetch('https://api.okeyproxy.com/ipglobal-api/api/v2/proxy/endpoints/continents-custom', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.okeyproxy.com/ipglobal-api/api/v2/proxy/endpoints/continents-custom",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'apiKey' => '<string>',
'proxyType' => 123,
'secUsername' => '<string>',
'protocol' => '<string>',
'randomLocation' => 123,
'continentCode' => '<string>',
'countryCode' => '<string>',
'regionName' => '<string>',
'cityName' => '<string>',
'sessionType' => '<string>',
'sessionTime' => 123,
'count' => 123
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.okeyproxy.com/ipglobal-api/api/v2/proxy/endpoints/continents-custom"
payload := strings.NewReader("{\n \"apiKey\": \"<string>\",\n \"proxyType\": 123,\n \"secUsername\": \"<string>\",\n \"protocol\": \"<string>\",\n \"randomLocation\": 123,\n \"continentCode\": \"<string>\",\n \"countryCode\": \"<string>\",\n \"regionName\": \"<string>\",\n \"cityName\": \"<string>\",\n \"sessionType\": \"<string>\",\n \"sessionTime\": 123,\n \"count\": 123\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.okeyproxy.com/ipglobal-api/api/v2/proxy/endpoints/continents-custom")
.header("Content-Type", "application/json")
.body("{\n \"apiKey\": \"<string>\",\n \"proxyType\": 123,\n \"secUsername\": \"<string>\",\n \"protocol\": \"<string>\",\n \"randomLocation\": 123,\n \"continentCode\": \"<string>\",\n \"countryCode\": \"<string>\",\n \"regionName\": \"<string>\",\n \"cityName\": \"<string>\",\n \"sessionType\": \"<string>\",\n \"sessionTime\": 123,\n \"count\": 123\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.okeyproxy.com/ipglobal-api/api/v2/proxy/endpoints/continents-custom")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"apiKey\": \"<string>\",\n \"proxyType\": 123,\n \"secUsername\": \"<string>\",\n \"protocol\": \"<string>\",\n \"randomLocation\": 123,\n \"continentCode\": \"<string>\",\n \"countryCode\": \"<string>\",\n \"regionName\": \"<string>\",\n \"cityName\": \"<string>\",\n \"sessionType\": \"<string>\",\n \"sessionTime\": 123,\n \"count\": 123\n}"
response = http.request(request)
puts response.read_body"socks5: //customer-mn5m509632-continents-AF-country-PT-region-Aveiro-city-Arcos-session-k102pjzfil6nsvx-time-6:qli98bex@tunnel-proxy.okeyproxy.com:30000"Generate customized endpoints for continent
Generate custom proxy endpoints with protocol, location, session type, and sticky session duration.
curl --request POST \
--url https://api.okeyproxy.com/ipglobal-api/api/v2/proxy/endpoints/continents-custom \
--header 'Content-Type: application/json' \
--data '
{
"apiKey": "<string>",
"proxyType": 123,
"secUsername": "<string>",
"protocol": "<string>",
"randomLocation": 123,
"continentCode": "<string>",
"countryCode": "<string>",
"regionName": "<string>",
"cityName": "<string>",
"sessionType": "<string>",
"sessionTime": 123,
"count": 123
}
'import requests
url = "https://api.okeyproxy.com/ipglobal-api/api/v2/proxy/endpoints/continents-custom"
payload = {
"apiKey": "<string>",
"proxyType": 123,
"secUsername": "<string>",
"protocol": "<string>",
"randomLocation": 123,
"continentCode": "<string>",
"countryCode": "<string>",
"regionName": "<string>",
"cityName": "<string>",
"sessionType": "<string>",
"sessionTime": 123,
"count": 123
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
apiKey: '<string>',
proxyType: 123,
secUsername: '<string>',
protocol: '<string>',
randomLocation: 123,
continentCode: '<string>',
countryCode: '<string>',
regionName: '<string>',
cityName: '<string>',
sessionType: '<string>',
sessionTime: 123,
count: 123
})
};
fetch('https://api.okeyproxy.com/ipglobal-api/api/v2/proxy/endpoints/continents-custom', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.okeyproxy.com/ipglobal-api/api/v2/proxy/endpoints/continents-custom",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'apiKey' => '<string>',
'proxyType' => 123,
'secUsername' => '<string>',
'protocol' => '<string>',
'randomLocation' => 123,
'continentCode' => '<string>',
'countryCode' => '<string>',
'regionName' => '<string>',
'cityName' => '<string>',
'sessionType' => '<string>',
'sessionTime' => 123,
'count' => 123
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.okeyproxy.com/ipglobal-api/api/v2/proxy/endpoints/continents-custom"
payload := strings.NewReader("{\n \"apiKey\": \"<string>\",\n \"proxyType\": 123,\n \"secUsername\": \"<string>\",\n \"protocol\": \"<string>\",\n \"randomLocation\": 123,\n \"continentCode\": \"<string>\",\n \"countryCode\": \"<string>\",\n \"regionName\": \"<string>\",\n \"cityName\": \"<string>\",\n \"sessionType\": \"<string>\",\n \"sessionTime\": 123,\n \"count\": 123\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.okeyproxy.com/ipglobal-api/api/v2/proxy/endpoints/continents-custom")
.header("Content-Type", "application/json")
.body("{\n \"apiKey\": \"<string>\",\n \"proxyType\": 123,\n \"secUsername\": \"<string>\",\n \"protocol\": \"<string>\",\n \"randomLocation\": 123,\n \"continentCode\": \"<string>\",\n \"countryCode\": \"<string>\",\n \"regionName\": \"<string>\",\n \"cityName\": \"<string>\",\n \"sessionType\": \"<string>\",\n \"sessionTime\": 123,\n \"count\": 123\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.okeyproxy.com/ipglobal-api/api/v2/proxy/endpoints/continents-custom")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"apiKey\": \"<string>\",\n \"proxyType\": 123,\n \"secUsername\": \"<string>\",\n \"protocol\": \"<string>\",\n \"randomLocation\": 123,\n \"continentCode\": \"<string>\",\n \"countryCode\": \"<string>\",\n \"regionName\": \"<string>\",\n \"cityName\": \"<string>\",\n \"sessionType\": \"<string>\",\n \"sessionTime\": 123,\n \"count\": 123\n}"
response = http.request(request)
puts response.read_body"socks5: //customer-mn5m509632-continents-AF-country-PT-region-Aveiro-city-Arcos-session-k102pjzfil6nsvx-time-6:qli98bex@tunnel-proxy.okeyproxy.com:30000"Body
Agent API key used for authentication
Rotating proxies type. 1 for Starter, 2 for Advanced, 3 for Premium.
Sec-user account. Letters and numbers only, up to 40 characters.
Protocol used for the endpoint. Options: Endpoint:Port (default), HTTP(S), SOCKS5.
Random location option. 1 for random location, 2 for custom location. Required location fields (countryCode, regionName, cityName) can be omitted when set to 1 (default: 1).
Continent code. Required only when randomLocation is 2. Case-insensitive.
Country code. Required only when randomLocation is 2 and continentCode is provided.
Region name
City name. Required only when randomLocation is 2 and regionName is provided.
Session type. Options: Rotating (default), Sticky.
Session time. Required only when sessionType is Sticky. Allowed range: 3–60.
Number of endpoints to return. Required only when sessionType is Sticky. Allowed range: 1–50000.
Response
Generated proxy endpoint with authentication