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

  1. Open Portal → Proxy IPs.
  2. Find the Static IPv4 or Static IPv6 section.
  3. Copy the HTTP or SOCKS5 endpoint shown next to the assigned IP you want to use.
ModeHostPort
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

Use these docs with AI

Start with the AI guide or hand llms.txt to your assistant.
Use with AI
llms.txt