Search docs

Search the documentation

Dashboard
For LLMs

Code examples

Connect to FlashProxy from any language or framework. Every product uses the same connection pattern — your username and password with your product's host and port:

USERNAME:PASSWORD@HOST:PORT

The examples below use the Residential gateway (adam.flashproxy.io:8080). Swap in your product's host and port from its page in Products, and replace USERNAME / PASSWORD with your plan's proxy credentials. Each example fetches your exit IP from api.ipify.org — if it prints an IP that isn't yours, you're connected.

Where do USERNAME / PASSWORD come from? They're your plan's proxy_username and proxy_password — generated per plan and shown on that plan's page in the dashboard. They are not your FlashProxy account login. See Authentication for the full details.

For SOCKS5, use socks5:// and the SOCKS port instead (see Proxy formats). For sticky sessions and geo-targeting, build the username in the dashboard generator (see Rotating & sticky and Geo-targeting).

cURL

curl -x "http://USERNAME:[email protected]:8080" https://api.ipify.org

Python — requests

import requests

proxy = "http://USERNAME:[email protected]:8080"
proxies = {"http": proxy, "https": proxy}

resp = requests.get("https://api.ipify.org", proxies=proxies)
print(resp.text)

Install with pip install requests.

Python — httpx (async)

import asyncio
import httpx

proxy = "http://USERNAME:[email protected]:8080"

async def main():
    async with httpx.AsyncClient(proxy=proxy) as client:
        resp = await client.get("https://api.ipify.org")
        print(resp.text)

asyncio.run(main())

Install with pip install httpx. Requires httpx 0.26+ (the proxy= argument); older versions use proxies={"http://": proxy, "https://": proxy} instead.

Node.js — axios

import axios from 'axios';
import { HttpsProxyAgent } from 'https-proxy-agent';

const agent = new HttpsProxyAgent(
  'http://USERNAME:[email protected]:8080'
);

const resp = await axios.get('https://api.ipify.org', {
  httpAgent: agent,
  httpsAgent: agent,
});
console.log(resp.data);

Install with npm install axios https-proxy-agent.

Node.js — fetch (undici)

import { ProxyAgent } from 'undici';

const dispatcher = new ProxyAgent(
  'http://USERNAME:[email protected]:8080'
);

const resp = await fetch('https://api.ipify.org', { dispatcher });
console.log(await resp.text());

Node 18+ ships a global fetch; install the agent with npm install undici.

Scrapy

Set the proxy on every request with a small downloader middleware:

# middlewares.py
class FlashProxyMiddleware:
    PROXY = "http://USERNAME:[email protected]:8080"

    def process_request(self, request, spider):
        request.meta["proxy"] = self.PROXY
# settings.py
DOWNLOADER_MIDDLEWARES = {
    "myproject.middlewares.FlashProxyMiddleware": 610,
}

Playwright (Python)

from playwright.sync_api import sync_playwright

with sync_playwright() as p:
    browser = p.chromium.launch(
        proxy={
            "server": "http://adam.flashproxy.io:8080",
            "username": "USERNAME",
            "password": "PASSWORD",
        }
    )
    page = browser.new_page()
    page.goto("https://api.ipify.org")
    print(page.inner_text("body"))
    browser.close()

Puppeteer (Node.js)

import puppeteer from 'puppeteer';

const browser = await puppeteer.launch({
  args: ['--proxy-server=http://adam.flashproxy.io:8080'],
});
const page = await browser.newPage();
await page.authenticate({ username: 'USERNAME', password: 'PASSWORD' });
await page.goto('https://api.ipify.org');
console.log(await page.evaluate(() => document.body.innerText));
await browser.close();

Selenium (Python)

Selenium can't pass proxy credentials directly — use selenium-wire:

from seleniumwire import webdriver

proxy = "http://USERNAME:[email protected]:8080"
options = {"proxy": {"http": proxy, "https": proxy, "no_proxy": "localhost,127.0.0.1"}}

driver = webdriver.Chrome(seleniumwire_options=options)
driver.get("https://api.ipify.org")
print(driver.find_element("tag name", "body").text)
driver.quit()

Install with pip install selenium-wire.

Browser (manual)

Enter the host and port in your browser's network/proxy settings; it will prompt for the username and password on first connect. For per-profile control, use an extension like FoxyProxy and add adam.flashproxy.io:8080 with your credentials.