Runnable, credential-safe examples for connecting Proxidize Mobile and Residential Proxies to popular HTTP clients, browser automation tools, and crawling frameworks.
Browse all Proxidize integrations · Use the official Proxidize MCP server · Review the sanitized live-test record
These examples use standard HTTP, HTTPS, and SOCKS5 proxy protocols. You do not need a Proxidize SDK, and no real credentials, complete exit IPs, cookies, browser state, or traces are stored in this repository.
Choose a runnable example below, then open its Proxidize guide for setup details, rotation guidance, and troubleshooting.
| Integration | Runtime | Recommended access point | Code | Proxidize guide |
|---|---|---|---|---|
| cURL | Shell | Mobile or residential HTTPS | check.sh |
cURL integration |
| Undici | Node.js 24+ | Mobile or residential HTTPS | undici.mjs |
Node.js and Undici integration |
| Axios | Node.js 24+ | Mobile or residential HTTPS | check_proxy.mjs |
Axios integration |
| Requests | Python 3.11.5+ | Mobile or residential HTTPS | requests_example.py |
Requests and HTTPX integration |
| HTTPX | Python 3.11.5+ | Mobile or residential HTTPS | httpx_example.py |
Requests and HTTPX integration |
| AgentMail price monitor | Python 3.11.5+ | Residential HTTPS | monitor.py |
AgentMail integration |
| Browser Use price monitor | Python 3.11.5+ | Residential HTTP(S) | price_monitor.py |
Browser Use integration |
| Higgsfield localized social ads | Python 3.11.5+ | Residential preflight + mobile verification | campaign.py |
Higgsfield integration |
| aiohttp | Python 3.11.5+ | Mobile or residential HTTP(S) | check_proxy.py |
aiohttp integration |
| PycURL | Python 3.11.5+ | Mobile or residential HTTPS | check_proxy.py |
PycURL integration |
| Playwright | Node.js 24+ | Mobile or residential HTTPS | node.mjs |
Playwright integration |
| Playwright | Python 3.11.5+ | Mobile or residential HTTPS | python_example.py |
Playwright integration |
| Puppeteer | Node.js 24+ | Mobile or residential HTTPS | check_proxy.mjs |
Puppeteer integration |
| Scrapy | Python 3.11.5+ | Mobile or residential HTTPS | check_proxy.py |
Scrapy integration |
| Scrapy Playwright | Python 3.11.5+ | Mobile or residential HTTPS | check_proxy.py |
Scrapy Playwright integration |
| Crawl4AI | Python 3.11.5+ | Mobile or residential HTTPS | check_proxy.py |
Crawl4AI integration |
| Selenium | Python 3.11.5+ | IP-allowlisted HTTP(S) | python_ip_allowlist.py |
Selenium integration |
| Mobile UDP over SOCKS5 | Python 3.11.5+ | Mobile SOCKS5 with UDP enabled | quic_check.py |
Mobile UDP over SOCKS5 |
| PHP cURL | PHP 8+ | Mobile or residential HTTPS | check_proxy.php |
PHP cURL integration |
Go net/http |
Go 1.19+ | Mobile or residential HTTP(S) | check_proxy.go |
Go net/http integration |
Java HttpClient |
Java 17+ | HTTP proxy with HTTPS CONNECT | ProxyCheck.java |
Java HttpClient integration |
C# HttpClient |
.NET 8+ | HTTP proxy with HTTPS CONNECT | ProxyCheck.cs |
C# HttpClient integration |
Ruby Net::HTTP |
Ruby 3.1+ | HTTP proxy with HTTPS CONNECT | check_proxy.rb |
Ruby Net::HTTP integration |
The official Proxidize MCP server lets MCP-compatible clients manage supported Proxidize account and proxy operations, including IP rotation, locations, access points, usage, and analytics. It is the management layer; requests to target websites still travel through the HTTP, HTTPS, or SOCKS5 integrations above.
It requires Node.js 18 or later, an active Proxidize subscription, and a Proxidize API token. For Claude Code, add it as a local MCP server:
claude mcp add proxidize \
-e PROXIDIZE_API_TOKEN=YOUR_API_TOKEN \
-- npx -y @proxidize/mcpRun that command locally and replace YOUR_API_TOKEN there. Never put the real token in this README, source code, .env.example, a committed .mcp.json, screenshots, or logs. For a project configuration that supports environment-variable expansion, keep only the reference in version control:
{
"mcpServers": {
"proxidize": {
"command": "npx",
"args": ["-y", "@proxidize/mcp"],
"env": {
"PROXIDIZE_API_TOKEN": "${PROXIDIZE_API_TOKEN}"
}
}
}
}Set PROXIDIZE_API_TOKEN in your local environment or MCP client's private secret store before starting the client. Review state-changing tool calls before approving them. See the official MCP repository for supported clients, tools, and configuration options.
git clone https://github.com/proxidize/proxidize-integration-examples.git
cd proxidize-integration-examplesCopy the safe template into a local file that Git ignores:
cp .env.example .env.localFill in the host, port, username, and password shown in the Proxidize dashboard. Keep the endpoint and credentials in separate variables; do not embed credentials in PROXY_SERVER values.
Select the profile used by the HTTP(S) examples:
PROXY_PROFILE=mobileSupported values are mobile and residential. The UDP checker always uses the dedicated MOBILE_SOCKS5_PROXY_* variables.
Never commit .env.local. The repository ignores common secret, trace, browser-state, and result files.
Install uv, then create the project environment and install the locked dependencies:
uv venv --python 3.11.5
uv sync --locked --all-extras
uv run playwright install chromiumuv stores the environment in .venv and uses uv.lock for reproducible installs. Activating the environment is optional because uv run automatically uses it. If you prefer an activated shell:
source .venv/bin/activateRun this once before using Crawl4AI:
uv run crawl4ai-setupThere are no requirements.txt files. Add or update Python packages through pyproject.toml and refresh the lockfile with uv lock.
Only Node.js, Playwright, Axios, Undici, or Puppeteer examples need this step:
npm ci
npx playwright install chromiumPuppeteer installs its compatible browser during npm ci unless browser downloads are disabled. Selenium requires a compatible Chrome or Chromium installation.
The npm scripts load .env.local without printing it:
npm run live:node
npm run live:axios
npm run live:playwright
npm run live:puppeteeruv run --env-file loads the same local credentials into one command:
uv run --env-file .env.local python examples/python/requests_example.py
uv run --env-file .env.local python examples/python/httpx_example.py
uv run --env-file .env.local python examples/aiohttp/check_proxy.py
uv run --env-file .env.local python examples/pycurl/check_proxy.py
uv run --env-file .env.local python examples/playwright/python_example.py
uv run --env-file .env.local python examples/scrapy/check_proxy.py
uv run --env-file .env.local python examples/scrapy-playwright/check_proxy.py
uv run --env-file .env.local python examples/crawl4ai/check_proxy.py
uv run --env-file .env.local python examples/selenium/python_ip_allowlist.pyThe AgentMail example has its own safe template and setup guide:
cp examples/agentmail-price-monitor/.env.example .env.agentmail.local
uv run --env-file .env.agentmail.local \
python examples/agentmail-price-monitor/monitor.py checkSee examples/agentmail-price-monitor/README.md for the deterministic fixture, reply commands, and security boundaries.
The Browser Use Cloud V4 price monitor has its own route file and deterministic output fixture:
cp examples/browser-use-price-monitor/.env.example .env.browser-use.local
mkdir -p .local
cp examples/browser-use-price-monitor/routes.example.json \
.local/browser-use-price-monitor-routes.json
uv run python examples/browser-use-price-monitor/price_monitor.py fixture \
examples/browser-use-price-monitor/fixtures/us-observation.jsonSee examples/browser-use-price-monitor/README.md for Browser Use custom-proxy eligibility, geographic routes, sticky sessions, and rotation boundaries.
The same example also includes a credential-free mobile-vs-residential benchmark plan, a synthetic summary fixture, and a live runner with explicit target-authorization and total-cost gates. The repository does not present the fixture as measured performance data.
The Higgsfield workflow has a separate secret-safe template and deterministic fixture:
cp examples/higgsfield-localized-social-ads/.env.example \
.env.higgsfield.local
uv run python examples/higgsfield-localized-social-ads/campaign.py fixtureSee examples/higgsfield-localized-social-ads/README.md for evidence-gated creative generation, cost caps, localized preflight checks, and official-channel promotion guidance.
Load .env.local into the current shell, then run the client you need:
set -a
. ./.env.local
set +a
bash examples/curl/check.sh
php examples/php-curl/check_proxy.php
go run examples/go-net-http/check_proxy.go
java -Djdk.http.auth.tunneling.disabledSchemes= examples/java-httpclient/ProxyCheck.java
dotnet run --project examples/csharp-httpclient
ruby examples/ruby-net-http/check_proxy.rbThe Java flag permits Basic proxy authentication for HTTPS CONNECT in that Java process. Keep the change scoped to the command rather than setting it globally.
Each example requests only the configured IP-check URL, validates the response, and prints the selected profile, a redacted endpoint, and the visible exit IP. Set IP_CHECK_URL to an approved endpoint if your organization does not use the default.
In the Proxidize Mobile Proxy dashboard:
- Enable UDP.
- Select
SOCKS5 Proxy. - Generate a United States access point.
- Put its host, port, username, and password in the
MOBILE_SOCKS5_PROXY_*variables.
Run the QUIC checker through the same uv environment:
uv run --env-file .env.local python examples/mobile-udp/quic_check.pyThe checker performs username/password authentication, requests SOCKS5 UDP ASSOCIATE, and completes a QUIC handshake through the negotiated relay. It defaults to cloudflare.com:443; set UDP_TARGET_HOST to a permitted endpoint you control when required. The checker accepts only ports 80 and 443 to match the tested mobile UDP path.
An HTTPS request through a SOCKS5 endpoint validates only the TCP path. A successful QUIC handshake confirms that response datagrams traveled through the UDP relay.
| Client type | Endpoint guidance |
|---|---|
| Axios, aiohttp, cURL, Go, HTTPX, PycURL, Requests, and Scrapy | Use the HTTP or HTTPS access point supported by the client. Keep TLS verification enabled for the destination. |
| Playwright and Puppeteer | Use an authenticated HTTP(S) access point. Keep one sticky session aligned with one browser context or worker. |
| Selenium | Use an IP-allowlisted endpoint. The standard browser proxy capability does not provide portable username/password proxy authentication. |
Java HttpClient, C# HttpClient, and Ruby Net::HTTP |
Use an http:// proxy endpoint. HTTPS destinations remain encrypted through a CONNECT tunnel. |
| Mobile UDP checker | Use a mobile SOCKS5 endpoint with UDP enabled. Do not use the residential HTTPS profile for this test. |
Do not put credentials inside browser profiles, source files, proxy URLs committed to Git, screenshots, or logs.
The default test suite does not require live proxy credentials:
npm test
npm run check
uv run python -m unittest discover -s tests -p 'test_*.py'
uv run python -m compileall -q examples tests
uv lock --checkSee docs/LIVE_TESTS.md for the sanitized mobile, residential, browser, crawler, UDP, and second-batch validation matrix. A successful IP-check request validates routing and authentication; it does not promise access to every destination or measure proxy-network quality.
.
├── examples/ Runnable examples grouped by integration
├── tests/ Credential-free configuration and protocol tests
├── docs/ Sanitized validation notes
├── .env.example Safe credential-variable template
├── pyproject.toml Python dependencies managed by uv
├── uv.lock Reproducible Python dependency lockfile
├── package.json Node.js scripts and dependencies
├── LICENSE MIT license
└── README.md Setup, integration links, and run commands
Use these examples only for lawful, authorized web access, testing, monitoring, automation, and public-data collection. Respect applicable laws, third-party terms, destination-aware rate limits, and the Proxidize Acceptable Use Policy. A working proxy connection does not authorize access to a target.
Released under the MIT License. Copyright (c) 2026 Proxidize.