Skip to main content
These examples use axios with https-proxy-agent for HTTP proxies and socks-proxy-agent for SOCKS5. Replace USERNAME and PASSWORD with your package credentials from the dashboard. Install the packages:
The examples use ES modules and top-level await. Save them as .mjs files, or set "type": "module" in your package.json.

Residential proxies

Rotating (new IP every request)

Each time you run this, you’ll get a different IP. Setting proxy: false stops axios from applying its own proxy settings on top of the agent.

Sticky session (same IP across requests)

All three requests return the same IP. The session holds it for up to 30 minutes.

Target a specific city

Fast mode and sub-pools

Premium residential proxies

Use package-premium instead of package-standard. Everything else works the same way.

SOCKS5

Connect on port 1080 with socks-proxy-agent. The socks5h scheme resolves hostnames through the proxy:

Static residential (ISP) proxies

Replace 203.0.113.10 with your static IP. The dashboard shows the exact line for each IP you own. ISP Monthly IPs (United States) connect straight to the IP instead, with no .static.flameproxies.com hostname:

Multiple concurrent sessions

There are no limits on concurrent connections. Give each parallel session its own session ID:

Expected response

All examples return a JSON response from ipinfo.io:

Next steps

Python examples

Working Python code for FlameProxies.

Go examples

Working Go code for FlameProxies.

Residential proxies

Full parameter reference.

Connection debugging

What to do when something goes wrong.