Datacenter Proxy IP Authentication API
Returns the current IP-authentication configuration for your datacenter subscription.
The response includes the nftables set name, HTTP and SOCKS5 ports, all five IP slots, and the number of occupied slots.
The API key must belong to an ACTIVE user with a Datacenter plan whose subscription status is active or canceled.
Empty whitelist slots are returned as empty strings.
Endpoint details
import json
import requests
def get_whitelist_info(api_key: str) -> dict:
url = "https://proxytitan.com/api/v1.0/datacenter/whitelist/info"
params = {"apiKey": api_key}
response = requests.get(url, params=params, timeout=30)
data = response.json()
print("HTTP status:", response.status_code)
print(json.dumps(data, indent=2))
response.raise_for_status()
return data
get_whitelist_info("xxx")Adds an IPv4 address to the datacenter proxy whitelist.
Without additional IP authentication, the plan allows one slot. Adding another IP replaces ip_slot_1 and returns the replaced address in replaced_ip.
With additional IP authentication, the plan allows five slots. The first empty slot is used, and the request fails when all five slots are occupied.
The backend also accepts X-API-Key as a request header.
Endpoint details
import json
import requests
def add_ip_to_whitelist(api_key: str, ip: str) -> dict:
url = "https://proxytitan.com/api/v1.0/datacenter/whitelist/add"
payload = {
"apiKey": api_key,
"ip": ip
}
response = requests.post(url, json=payload, timeout=30)
data = response.json()
print("Add IP HTTP status:", response.status_code)
print(json.dumps(data, indent=2))
response.raise_for_status()
return data
add_ip_to_whitelist("xxx", "1.2.3.4")Removes an existing IPv4 address from the datacenter proxy whitelist.
The backend locates the matching slot, removes the address from nftables, and then clears that exact MongoDB slot.
When the supplied IP is valid but is not currently whitelisted, the endpoint returns HTTP 200 with success:false.
The backend also accepts X-API-Key as a request header.
Endpoint details
import json
import requests
def remove_ip_from_whitelist(api_key: str, ip: str) -> dict:
url = "https://proxytitan.com/api/v1.0/datacenter/proxies/whitelist/delete"
payload = {
"apiKey": api_key,
"ip": ip
}
response = requests.post(url, json=payload, timeout=30)
data = response.json()
print("Remove IP HTTP status:", response.status_code)
print(json.dumps(data, indent=2))
response.raise_for_status()
return data
remove_ip_from_whitelist("xxx", "1.2.3.4")