PiratProxies

Automation and testing

Sending n8n traffic through a proxy

n8n is a workflow automation tool you can host yourself. Its HTTP Request node has a proxy option, so a single step of a workflow can leave from a chosen country.

The right proxy type for n8n

Residential proxies suit automation that acts like a visitor, with a sticky session for anything that logs in. For testing your own site from other countries, any plan with the right country works; Residential Lite is the cheapest.

The values to enter in n8n

Every PiratProxies plan comes down to four values: host, port, username and password. Here they are for Residential; your own username and password are on your plan page.

Hostresi.piratproxies.com
HTTP port8080
SOCKS5 port1080
UsernameUSERNAME
Passwordshown on your plan page

Written as a single address:

http://USERNAME:PASSWORD@resi.piratproxies.com:8080

There is no separate country or session field: both are part of the username. Your plan page has a generator that writes it, and Targeting and sessions describes each piece.

Setting it up in n8n

  1. Open the HTTP Request node.
  2. Under the node's options, add Proxy.
  3. Enter the full proxy address: http://USERNAME:PASSWORD@resi.piratproxies.com:8080.
  4. Test the node against https://api.ipify.org to see the address it used.

Menus move around between n8n versions, but the four values you enter never change.

Should n8n rotate IPs or keep one?

When n8n plays one visitor across several steps, a sticky session keeps the IP address unchanged from start to finish. When every run stands alone, drop the session and each run begins from a new address.

Here is what a sticky username looks like:

USERNAME-country-us-time-600-session-a1b2c3d4

When n8n will not connect

  • The option belongs to that one node. Other nodes, and n8n's own traffic, keep using the server's connection.
  • To send everything from a self-hosted n8n through the proxy, set the HTTP_PROXY and HTTPS_PROXY environment variables instead.
  • Error 407 means the login was refused. Copy the username and password from your plan page once more, and make sure no space crept in and the username was not cut short.
  • An IP in the wrong country nearly always comes from the username, since the country code lives there. Other fixes.

n8n and proxies: questions

Which PiratProxies plan suits n8n best?

Residential proxies suit automation that acts like a visitor, with a sticky session for anything that logs in. For testing your own site from other countries, any plan with the right country works; Residential Lite is the cheapest.

Words used in this guide: headless browser, rotating proxy, sticky session, proxy authentication.

n8n belongs to its own developers, and PiratProxies has no connection with them; we name it only to say what this guide covers. Follow the rules of the sites you visit and our acceptable use policy.