Skip to content
ProxyHub
All guides

Browser automation

Use the proxy with n8n (HTTP Request node)

In n8n the proxy is set directly in the HTTP Request node, credentials included. Only the requests you choose go out with the mobile IP, while the rest of the workflow keeps using the server's connection.

Step by step

  1. 1

    In the client area set the proxy protocol to HTTP: the HTTP Request node's Proxy option accepts HTTP proxies, not SOCKS5.

  2. 2

    In the HTTP Request node open Options › Add option › Proxy and enter the full address as http://USER:PASSWORD@HOST:PORT.

  3. 3

    Test the node with Method GET and URL https://api.ipify.org?format=json: the response must show the proxy's mobile IP, not your n8n server's.

  4. 4

    For a new IP, put an HTTP Request node without a proxy that calls the rotation link before your requests, followed by a Wait node (After Time Interval) of about 20 seconds.

n8n
# HTTP Request node › Options › Add option › Proxy
http://USER:PASSWORD@HOST:PORT

# Test: Method GET, URL
https://api.ipify.org?format=json

# New IP: HTTP Request node without proxy (GET), then a 20-second Wait node
ROTATION_LINK

# Self-hosted n8n, proxy for every node (docker-compose.yml › environment)
HTTP_PROXY=http://USER:PASSWORD@HOST:PORT
HTTPS_PROXY=http://USER:PASSWORD@HOST:PORT
NO_PROXY=localhost,127.0.0.1

Replace USER, PASSWORD, HOST and PORT with your proxy's data (client area › proxy › Connection).

Tips

Don't have a proxy yet?

Choose country, carrier and plan: the proxy activates right away.

See plans

Need a hand?

Dedicated 24/7 support on Telegram helps you set up any tool.

Message us on Telegram

More guides