Dashboard
Products / Residential Proxies

Protocols

One port for everything. Connect to the gateway over HTTP or HTTPS and reach any public site on port 80 or 443.

Gateway

Proxy schemeEndpointLogin in transitUse when
HTTPhttp://proxy.crawlhub.ai:8000UnencryptedDefault. Works in every client, including Firefox manual proxy settings.
HTTPShttps://proxy.crawlhub.ai:8000Encrypted (TLS)Your client supports HTTPS proxies (cURL 7.52+, Chrome)
i

Your traffic to https:// sites is end-to-end encrypted either way. The HTTPS proxy scheme only adds encryption between you and the gateway. Keep certificate validation on.

HTTP proxy example

Works in every client.

curl -x http://proxy.crawlhub.ai:8000 \
  -U "crh_USERNAME:PASSWORD" \
  https://ipinfo.io/json
import requests

username = "crh_USERNAME"
password = "PASSWORD"
proxy = f"http://{username}:{password}@proxy.crawlhub.ai:8000"

response = requests.get(
    "https://ipinfo.io/json",
    proxies={"http": proxy, "https": proxy},
    timeout=30,
)
print(response.json())
// npm install undici
import { fetch, ProxyAgent } from "undici";

const auth = Buffer.from("crh_USERNAME:PASSWORD").toString("base64");
const agent = new ProxyAgent({
  uri: "http://proxy.crawlhub.ai:8000",
  token: `Basic ${auth}`,
});

const res = await fetch("https://ipinfo.io/json", { dispatcher: agent });
console.log(await res.json());
<?php
$ch = curl_init("https://ipinfo.io/json");
curl_setopt($ch, CURLOPT_PROXY, "http://proxy.crawlhub.ai:8000");
curl_setopt($ch, CURLOPT_PROXYUSERPWD, "crh_USERNAME:PASSWORD");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_TIMEOUT, 30);

echo curl_exec($ch);
curl_close($ch);
package main

import (
    "fmt"
    "io"
    "net/http"
    "net/url"
    "time"
)

func main() {
    proxyURL, _ := url.Parse("http://crh_USERNAME:PASSWORD@proxy.crawlhub.ai:8000")
    client := &http.Client{
        Transport: &http.Transport{Proxy: http.ProxyURL(proxyURL)},
        Timeout:   30 * time.Second,
    }
    resp, err := client.Get("https://ipinfo.io/json")
    if err != nil { panic(err) }
    defer resp.Body.Close()
    body, _ := io.ReadAll(resp.Body)
    fmt.Println(string(body))
}
import java.net.*;
import java.net.http.*;

public class Main {
  public static void main(String[] args) throws Exception {
    // Java blocks Basic auth on HTTPS tunnels by default; allow it.
    System.setProperty("jdk.http.auth.tunneling.disabledSchemes", "");

    HttpClient client = HttpClient.newBuilder()
      .proxy(ProxySelector.of(new InetSocketAddress("proxy.crawlhub.ai", 8000)))
      .authenticator(new Authenticator() {
        protected PasswordAuthentication getPasswordAuthentication() {
          return new PasswordAuthentication("crh_USERNAME", "PASSWORD".toCharArray());
        }
      }).build();

    HttpRequest req = HttpRequest.newBuilder(URI.create("https://ipinfo.io/json")).build();
    System.out.println(client.send(req, HttpResponse.BodyHandlers.ofString()).body());
  }
}
using System.Net;

var proxy = new WebProxy("http://proxy.crawlhub.ai:8000")
{
    Credentials = new NetworkCredential("crh_USERNAME", "PASSWORD")
};
using var client = new HttpClient(new HttpClientHandler { Proxy = proxy, UseProxy = true })
{
    Timeout = TimeSpan.FromSeconds(30)
};

Console.WriteLine(await client.GetStringAsync("https://ipinfo.io/json"));
require "net/http"

uri = URI("https://ipinfo.io/json")
proxy = ["proxy.crawlhub.ai", 8000, "crh_USERNAME", "PASSWORD"]

Net::HTTP.start(uri.host, uri.port, *proxy, use_ssl: true, read_timeout: 30) do |http|
  puts http.get(uri.path).body
end

HTTPS proxy example

Change the proxy scheme to https:// to encrypt your login to the gateway. Your client must support HTTPS proxies, for example cURL 7.52+.

cURL
curl -x https://proxy.crawlhub.ai:8000 \
  -U "crh_USERNAME:PASSWORD" \
  https://ipinfo.io/json

Target ports

The gateway connects to public sites on 80 (http://) and 443 (https://). Other ports, and private or reserved addresses, return 403.

SOCKS5

SOCKS5 is not available on the residential gateway yet. Use HTTP or HTTPS.

Need help?Contact supportProxy checkerhello@crawlhub.ai
Copied