Datacenter Proxies
Datacenter proxies are exposed as assigned static endpoints in your account. Ports can vary by assignment, so the portal is the source of truth for the exact values to use.
If your account has both HTTP and SOCKS5 endpoints for a datacenter IP, the portal shows both. Use the exact endpoint string as displayed.
Find your endpoint
- Open Portal → Proxy IPs.
- Find the Static IPv4 or Static IPv6 section.
- Copy the HTTP or SOCKS5 endpoint shown next to the assigned IP you want to use.
| Mode | Host | Port |
|---|---|---|
| Assigned datacenter HTTP endpoint | <DATACENTER_HTTP_ENDPOINT> | Portal-assigned |
| Assigned datacenter SOCKS5 endpoint | <DATACENTER_SOCKS_ENDPOINT> | Portal-assigned if available |
Authentication
Use your portal username and API key, or IP whitelist auth if your server IP is allowlisted.
HTTP
http://USERNAME:API_KEY@<DATACENTER_HTTP_ENDPOINT>SOCKS5
socks5://USERNAME:API_KEY@<DATACENTER_SOCKS_ENDPOINT>Code examples
curl via HTTP
curl -x "http://<USERNAME>:<API_KEY>@<DATACENTER_HTTP_ENDPOINT>" "https://ip.ninjasproxy.com/"curl via SOCKS5
curl --socks5-hostname "<DATACENTER_SOCKS_ENDPOINT>" --proxy-user "<USERNAME>:<API_KEY>" "https://ip.ninjasproxy.com/"Python requests
import requests
proxies = {
"http": "http://<USERNAME>:<API_KEY>@<DATACENTER_HTTP_ENDPOINT>",
"https": "http://<USERNAME>:<API_KEY>@<DATACENTER_HTTP_ENDPOINT>",
}
response = requests.get("https://ip.ninjasproxy.com/", proxies=proxies, timeout=20)
print(response.text.strip())Next Steps
- Residential proxies — assigned residential endpoints
- Mobile proxies — assigned mobile-network endpoints
- curl integration — quick tests and troubleshooting flags
- Authentication — username + API key and whitelist examples
