Skip to content
Nefo

Integrations

Proxy Integrations and Code Examples

Pick your language or tool and copy a working proxy setup for Nefo residential proxies, with rotating and sticky sessions, country targeting and authentication.

cURL

How to Use a Residential Proxy with cURL

cURL proxy setup: the -x flag, username and password, rotating and sticky ports, HTTP or SOCKS5, and country targeting in the username.

Read more

Go

How to Use Residential Proxies in Go

Golang proxy setup: parse the gateway URL, set it on http.Transport, use proxy.SOCKS5 for SOCKS5, and target countries in the username.

Read more

Java

How to Use Residential Proxies with Java HttpClient

Java proxy setup: HttpClient with ProxySelector and Authenticator, the jdk.http.auth.tunneling.disabledSchemes fix, sticky sessions and geo tokens.

Read more

Node.js Axios

How to Use Residential Proxies with Node.js and Axios

Axios proxy setup: https-proxy-agent as httpAgent and httpsAgent, socks-proxy-agent for SOCKS5, sticky sessions and country targeting.

Read more

PHP

How to Use Residential Proxies with PHP cURL

PHP proxy setup with cURL: CURLOPT_PROXY, CURLOPT_PROXYUSERPWD, SOCKS5 via CURLPROXY_SOCKS5_HOSTNAME, sticky sessions and country targeting.

Read more

Playwright

How to Use Residential Proxies with Playwright

Playwright proxy setup: proxy object in launch() or newContext(), username and password, sticky sessions on port 10000, and country tokens.

Read more

Puppeteer

How to Use Residential Proxies with Puppeteer

Puppeteer proxy setup: --proxy-server flag, page.authenticate(), fixing 407 errors, sticky sessions on port 10000 and country tokens.

Read more

Requests

How to Use Residential Proxies with Python Requests

Python requests proxy setup: the proxies dict, socks5h with requests[socks], sticky sessions with requests.Session() and country targeting.

Read more

Scrapy

How to Use Residential Proxies with Scrapy

Scrapy proxy setup: meta['proxy'] with HttpProxyMiddleware, rotating port 9000, sticky sessions per crawl block and country targeting.

Read more

Selenium

How to Use Residential Proxies with Selenium

Selenium proxy setup with selenium-wire: authenticated proxy URL, rotating port 9000, sticky port 10000 and country tokens.

Read more

A quick check with cURL confirms your credentials and country before you add the proxy to a scraper or test suite:

bash
curl -x gw.nefo.net:9000 \
  -U "USERNAME-country-us-city-losangeles:PASSWORD" \
  https://api.ipify.org?format=json

Gateway, ports and username tokens

All guides connect to gw.nefo.net. The port decides the protocol and whether the exit IP rotates or stays put:

PortProtocolIP behavior
9000HTTPNew IP on every request
10000HTTPSticky session, one IP from 1 minute up to 24 hours
11000SOCKS5New IP on every request
12000SOCKS5Sticky session, one IP from 1 minute up to 24 hours

Targeting lives in the username. Add -country-us for a country, further tokens for US state and city or an ASN, and -session-<id> with a lifetime such as -lifetime-30 to hold a sticky IP. Generate credentials for free in the proxy generator in your dashboard; only routed traffic uses your prepaid bandwidth.

Which integration guide should I use?

Rotating or sticky sessions

Use a rotating port when each request can come from a different IP, such as wide crawls. Use a sticky port with a session token when a login, cart or multi-step flow must stay on one IP. The rotating proxies and sticky session proxies pages explain both, and the docs list the full connection reference.

Antidetect browsers and other tools

Using a profile-based browser or a tool that is not a code library? The partners page has setup steps for antidetect browsers, cloud phones, captcha solvers and data tools.

Frequently asked questions

Point your HTTP client or browser at gw.nefo.net on port 9000 (rotating) or 10000 (sticky), and send your proxy username and password. Pick your language from the guides above for a working example.

Start with 5 GB. Keep what you don't use.

Residential bandwidth from $0.53/GB that never expires. Card, PayPal, Apple Pay, Google Pay, Alipay and crypto.