Products / Datacenter Proxies
Authentication
Datacenter proxies use username and password authentication. Get them once from the dashboard and use them on every port.
Get your credentials
- Open the dashboard and go to Datacenter.
- Copy your username (starts with
crh_) and proxy password. - Store them in environment variables or a secrets manager.
cURL
export CRAWLHUB_PROXY_USER="crh_USERNAME"
export CRAWLHUB_PROXY_PASS="PASSWORD"
curl -x http://dc.crawlhub.ai:8000 \
-U "${CRAWLHUB_PROXY_USER}:${CRAWLHUB_PROXY_PASS}" \
https://ipinfo.io/json!
Proxy credentials are not your dashboard login and not your Web Scraping API credentials. Using the wrong pair returns 407.
Tips
- Keep username and password in separate fields in your client.
- URL-encode them only when you build a proxy URL.
- Add
__cc_to the username for a country. The password stays the same.