n8n HTTP Request proxy setup for rotating proxies
You can configure RotatingProxy in n8n's HTTP Request node by entering the gateway host, port, and proxy credentials in the node's settings. This guide covers the exact fields for HTTP and SOCKS5, how to encode targeting and sessions in the username, and how to verify and troubleshoot your proxy connections.
- Set the proxy host to gw.rotatingproxy.cc and port to 7070 for HTTP/HTTPS.
- Add proxy authentication and targeting options directly in the username field.
- Use SOCKS5 on port 7071 if your workflow requires it.
- Verify the exit IP with an external service to confirm targeting works.
n8n HTTP Request proxy field location
The proxy configuration for an n8n HTTP Request node is found in the node's settings panel under the "Authentication" section. After adding an HTTP Request node to your workflow and opening its configuration, scroll down past the URL, method, and headers fields. You will find a subsection labeled "Proxy" which contains the fields for host, port, username, and password. This is where you enter the RotatingProxy gateway details. The proxy applies to that specific node's outbound requests, allowing you to use different proxy settings in different parts of a single workflow if needed for tasks like price monitoring across regions.
HTTP and HTTPS proxy setup on port 7070
For standard HTTP and HTTPS traffic, use the RotatingProxy gateway on port 7070. In the n8n HTTP Request node's proxy settings, enter gw.rotatingproxy.cc as the host and 7070 as the port. For authentication, the username and password fields must be populated with the credentials of a proxy user you created in your dashboard. The username can be extended with targeting options using underscores, following our specific grammar. For example, to use a residential proxy in the United States, your username might be USERNAME_net.res_cc.us with the proxy user's actual password. This setup allows the node to tunnel HTTPS connections via the HTTP CONNECT method smooth.
SOCKS5 proxy setup on port 7071 in n8n
n8n's HTTP Request node also supports SOCKS5 proxies, which you can use by connecting to port 7071. In the proxy settings, set the host to gw.rotatingproxy.cc and the port to 7071. Fill in the username and password fields with your proxy credentials, formatted the same way as for the HTTP proxy. SOCKS5 can be beneficial in certain network configurations, though for most web scraping and API tasks, the HTTP proxy on port 7070 is sufficient. You can compare the protocols in our guide on HTTP vs SOCKS5 proxies.
Passing country, city, and session options in the username
All targeting and session control is done through the username field using a key.value syntax. To target a country, add cc.xx where "xx" is the lowercase ISO country code (e.g., cc.de for Germany). For US states, use st.ca for California, but only when cc.us is also set. City targeting uses a predefined token like city.berlin or city.new-york (spaces become hyphens). To maintain a sticky session, include a session ID with sid.abc123 and optionally a time-to-live like ttl.30 (minutes). A full example username for a mobile proxy in Berlin with a 20-minute session is USERNAME_net.mob_cc.de_city.berlin_sid.a7k2m9_ttl.20.
Verifying the exit IP and location in n8n
After configuring the proxy, you should verify that requests are exiting from the expected IP and location. Create a simple test workflow with an HTTP Request node set to use your proxy configuration. Set the node's URL to a service that returns your IP, such as https://api.ipify.org?format=json or https://ipinfo.io/json. When you execute the node, the response body will contain the IP address assigned by RotatingProxy. For location verification, ipinfo.io also returns country and city details. This step is crucial when setting up workflows for checking geo-restricted content or rank tracking from specific locations.
Fixing common proxy errors: 407, timeouts, and TLS
A 407 "Proxy Authentication Required" error often means the login information is wrong. Double-check that the proxy user is active and that the password is entered correctly in n8n. Also ensure the username includes the correct network prefix (e.g., net.res) if your proxy user is restricted to certain networks. Timeouts can occur if the target site is slow or if your concurrency is too high. Increase the timeout value in the HTTP Request node's "Options" section. For TLS/SSL issues, confirm you are using port 7070 for HTTPS, which allows CONNECT. If problems persist, test the proxy with a simple tool like curl to isolate the issue.
Tips for running n8n workflows at scale with proxies
When running many concurrent requests, stay within your account limit of 1,000 simultaneous connections. Distribute requests across multiple HTTP Request nodes or workflows to manage load. Use sticky sessions wisely for tasks that require maintaining login state, like social media management, but switch to rotating sessions (omit the sid option) for broad crawling to distribute load. Monitor your balance and usage in the dashboard, as traffic is billed per GB. Implement error handling and retries in your workflows; n8n has built-in retry settings on the HTTP Request node. For large-scale projects like web scraping, consider using our Python requests library directly for more granular control, and use n8n for orchestration.
Building proxy strings with the dashboard tool
Instead of manually constructing the username string, use the proxy string builder in your RotatingProxy dashboard. Under "Proxy Setup," you can select the network, country, state, city, and session settings. The tool generates the full proxy string (including the login) that you can copy and paste into the n8n username field. This avoids syntax errors. You can also generate a list of proxy strings for different locations to use in parallel workflows for market research across regions.
Setting proxy user caps and managing networks
Before using a proxy in n8n, create a dedicated proxy user in your dashboard. You can set a monthly GB cap on that user to control costs for a specific workflow. Assign the user access only to the networks it needs (e.g., only residential and mobile). This practice improves security and cost tracking. If a workflow will be paused, you can also pause the proxy user to prevent any accidental usage. Learn how in our guide on setting a monthly GB cap on a proxy user.
Using the REST API to monitor usage from n8n
You can integrate RotatingProxy's REST API directly into n8n to monitor your balance and usage. Create an API key in the dashboard, then use an HTTP Request node (without a proxy) to call https://rotatingproxy.cc/api/v1/balance with a Bearer token. This allows you to build alerting workflows that notify you when balance is low or usage spikes, helping you manage costs for long-running automations like website uptime and change monitoring. The API documentation is available at /docs/api.
Questions
Can I use different proxy locations in different HTTP Request nodes in the same n8n workflow?
Yes, each HTTP Request node has its own proxy settings. You can configure one node to use a proxy in Germany and another node to use a proxy in Japan, all within the same workflow. This is useful for gathering localized data in parallel.
Why is my n8n workflow getting a 403 error from the target website when using the proxy?
A 403 from the target site often indicates the website has blocked the proxy IP. This can happen with datacenter IPs on some sites. Try switching to a residential or mobile network for better success rates, especially for sites like Google search or Instagram. Also, ensure your request headers (like User-Agent) are realistic.
How do I estimate how much proxy traffic my n8n workflow will use?
Monitor a few test runs in the "Usage" section of your dashboard. Multiply the average data per request by the number of requests you plan to make. Remember that traffic includes both upload and download. Our how to estimate proxy bandwidth guide provides more detail.
Can I use RotatingProxy with n8n's Webhook node to receive calls through the proxy?
No, the proxy settings in n8n are for outbound HTTP requests made by nodes like HTTP Request. Webhook nodes listen for incoming requests and cannot route that incoming traffic through an outbound proxy. Proxies are for the workflows that make external calls.
What happens if my balance runs out while an n8n workflow is executing?
Once your prepaid balance reaches zero, the proxy gateway will stop forwarding traffic. Your n8n HTTP Request nodes will likely timeout or receive connection errors. You need to top up your balance to resume traffic. It's good practice to check your balance via API before running large workflows.
Does n8n's built-in retry logic work well with proxy rotation?
Yes, n8n can retry a failed request. If you are not using a session ID (<code>sid</code>), each retry may get a new IP from the proxy network, which can help overcome temporary IP blocks. Configure retry counts and wait times in the "Options" tab of the HTTP Request node.
Start with one top-up, use any network
Create an account in a minute, add $40 or more, and the same balance pays for residential, mobile, datacenter and ISP traffic.