# ClearProxy CLI
Source: https://docs.clearproxy.io/cli
## Installation
```bash theme={null}
npm i clearproxy -g
```
```bash theme={null}
clearproxy set-key
```
```bash theme={null}
clearproxy me
```
## Quick Start
```bash Basic Usage theme={null}
# Set API key
clearproxy set-key clearpx_blablabla6767
# Check account info
clearproxy me
# Check proxies from file
clearproxy check proxies.txt
```
```bash Advanced Usage theme={null}
# Check with specific region and timeout
clearproxy check proxies.txt --region us1 --timeout 5000
# Check SOCKS5 proxies
clearproxy check proxies.txt --type socks5
# Output as plain text
clearproxy check proxies.txt --format txt --out working.txt
```
```bash Custom URL Validation theme={null}
# Windows: Create custom.json file
# [{"url":"https://discord.com","requiredStatusCodes":[200,301,302]}]
clearproxy check proxies.txt --custom custom.json
# Linux/Mac: Direct JSON string
clearproxy check proxies.txt --custom '[{"url":"https://discord.com","requiredStatusCodes":[200,301,302]}]'
```
***
## Commands
### set-key
Save your ClearProxy.io API key locally for use in all subsequent requests.
```bash theme={null}
clearproxy set-key
```
Your ClearProxy.io API key from the dashboard
***
### check
Main command for checking proxy lists. Supports input from file, stdin, or inline arguments.
```bash theme={null}
clearproxy check [input] [options]
```
#### Parameters
Path to proxy file or inline proxies (optional)
Region to use for checking (us1, us2, sg1, jp1, etc.)
Request timeout per proxy in milliseconds (1000-30000)
Proxy type: `http`, `socks4`, or `socks5`
Output file path
Output format: `json`, `txt`, or `yaml`
Simplified output (only ip:port or user:pass\@ip:port)
Custom URL validation as JSON array or file path (.json)
#### Custom URL Validation
Test working proxies against specific URLs with custom validation rules.
**JSON Format:**
```json theme={null}
[
{
"url": "https://example.com",
"requiredStatusCodes": [200, 301, 302],
"requiredText": "Welcome",
"caseSensitive": false
}
]
```
**Fields:**
* `url` (string, **required**) - Target URL to test
* `requiredStatusCodes` (array, optional) - Valid HTTP status codes (default: \[200])
* `requiredText` (string, optional) - Text that must appear in response body
* `caseSensitive` (boolean, optional) - Case-sensitive text matching (default: false)
**Platform-Specific Usage:**
* **Windows**: Use file method (recommended) - `--custom custom.json`
* **Linux/Mac**: Can use direct JSON string or file
#### Supported Proxy Formats
| Format | Example |
| ------------ | ------------------------ |
| Standard | `1.1.1.1:8080` |
| With Auth | `user:pass@1.1.1.1:8080` |
| Colon Format | `1.1.1.1:8080:user:pass` |
#### Examples
```bash Basic Check theme={null}
# Check from file
clearproxy check proxies.txt
```
```bash With Region theme={null}
# Check with specific region
clearproxy check proxies.txt --region us1
```
```bash SOCKS5 with Timeout theme={null}
# Check SOCKS5 proxies with custom timeout
clearproxy check proxies.txt --type socks5 --timeout 8000
```
```bash Plain Text Output theme={null}
# Output as plain text
clearproxy check proxies.txt --format txt --out working.txt
```
```bash Inline Proxies theme={null}
# Check inline proxies (no file needed)
clearproxy check 1.1.1.1:8080 8.8.8.8:3128 9.9.9.9:1080
```
```bash Simple Output theme={null}
# Simplified output (only ip:port)
clearproxy check proxies.txt --simple --format txt
```
```bash Custom URL - Windows theme={null}
# 1. Create custom.json file:
# [{"url":"https://discord.com","requiredStatusCodes":[200,301,302]}]
# 2. Run command:
clearproxy check proxies.txt --custom custom.json
```
```bash Custom URL - Linux/Mac theme={null}
# Direct JSON string
clearproxy check proxies.txt \
--custom '[{"url":"https://discord.com","requiredStatusCodes":[200,301,302]}]'
```
```bash Multiple Custom URLs theme={null}
# Create custom.json:
# [
# {"url":"https://discord.com","requiredStatusCodes":[200,301,302]},
# {"url":"https://www.google.com","requiredStatusCodes":[200],"requiredText":"Search"}
# ]
clearproxy check proxies.txt --custom custom.json
```
```bash E-commerce Validation theme={null}
# Create ecommerce.json:
# [
# {"url":"https://shop.com/products","requiredStatusCodes":[200],"requiredText":"Add to Cart"},
# {"url":"https://shop.com/cart","requiredStatusCodes":[200,302]}
# ]
clearproxy check proxies.txt \
--region us1 \
--custom ecommerce.json \
--out shop-proxies.json
```
```bash Case-Sensitive Text Match theme={null}
# Create validation.json:
# [{"url":"https://api.example.com","requiredText":"SUCCESS","caseSensitive":true}]
clearproxy check proxies.txt --custom validation.json
```
```bash Full Example theme={null}
# Full example with all options
clearproxy check proxies.txt \
--region us1 \
--timeout 5000 \
--type http \
--custom custom.json \
--format json \
--out validated.json
```
#### Output Details
**Console Output (Standard):**
```
──── SUMMARY ────
[+] Working : 85
[-] Failed : 15
[*] Total Check : 100
[>] Region Used : us1
[>] Took : 2.5s
```
**Console Output (UnlimitedPro):**
```
──── SUMMARY ────
[+] Working : 85
[-] Failed : 15
[*] Total Check : 100
[>] Plan : Unlimited Pro
[>] Region Used : us1
[>] Took : 2.5s
```
**Additional Information:**
* Overall validation summary
* Per-URL success/failure rates
* Success percentage for each URL
* Total proxies tested per URL
* List of successful/failed proxies per URL
**Console Output:**
```
──── CUSTOM URL VALIDATION ────
Overall Summary:
[*] URLs Tested : 2
[*] Proxies Tested: 150
[>] Processing : 8.45s
Per-URL Results:
[1] https://discord.com
[*] Tested : 150
[+] Success : 120 (80.00%)
[-] Failed : 30 (20.00%)
[>] Status Codes : 200, 301, 302
[2] https://www.google.com
[*] Tested : 150
[+] Success : 90 (60.00%)
[-] Failed : 60 (40.00%)
[>] Status Codes : 200
[>] Required Text : Search
```
**File Output (JSON):**
```json theme={null}
{
"summary": { ... },
"metadata": { ... },
"proxies": [ ... ],
"custom_url_validation": {
"summary": {
"total_urls_tested": 2,
"total_proxies_tested": 150,
"processing_time": "8.45s"
},
"per_url_summary": [
{
"url": "https://discord.com",
"success_count": 120,
"failed_count": 30,
"success_rate": "80.00%",
"successful_proxies": [...],
"failed_proxies": [...]
}
]
}
}
```
When using custom URL validation, the output file will contain the complete response including custom validation results, regardless of `--format` and `--simple` flags.
\--
### me
Display account information and remaining quota.
```bash theme={null}
clearproxy me [options]
```
Show raw JSON response from API
Display last 10 proxy checks
Show usage chart for last 30 days
**Output includes:**
* User ID and email
* Remaining checks quota
* Recent check history (with --history)
* Usage statistics for last 30 days (with --usage)
#### Examples
```bash Basic Info theme={null}
clearproxy me
# Output:
# ──── ACCOUNT INFO ────
# [*] User ID : usr_abc123
# [*] Email : hello@clearproxy.io
# [+] Subscription : None
# [+] Checks Left : 50,000
```
```bash Subscription Info theme={null}
clearproxy me
# Output:
# ──── ACCOUNT INFO ────
# [*] User ID : usr_abc123
# [*] Email : hello@clearproxy.io
# [+] Subscription : Unlimited Pro
# [*] Plan Expires : Jan 22, 2026, 07:28 PM
```
```bash With History theme={null}
clearproxy me --history
```
```bash With Usage Chart theme={null}
clearproxy me --usage
```
```bash Raw Response theme={null}
clearproxy me --debug
```
***
### regions
List all available regions for proxy checking.
```bash theme={null}
clearproxy regions [options]
```
Output in JSON format
Each region represents a different geographical location where your proxies will be tested from.
#### Examples
```bash List Regions theme={null}
clearproxy regions
```
```bash JSON Output theme={null}
clearproxy regions --json
```
***
### health
Check the health and availability of ClearProxy API.
```bash theme={null}
clearproxy health
```
Returns status, version, uptime and active regions information.
***
## Troubleshooting
**Problem**: Windows CMD/PowerShell cannot parse JSON strings correctly
**Solution**: Use file method instead
```bash theme={null}
# Create custom.json file with your validation rules
clearproxy check proxies.txt --custom custom.json
```
**Problem**: CLI cannot find saved API key
**Solution**: Set your API key again
```bash theme={null}
clearproxy set-key your_api_key_here
```
**Problem**: CLI cannot parse proxy file
**Solution**: Ensure your proxy file uses supported formats:
* `ip:port`
* `user:pass@ip:port`
* `ip:port:user:pass`
**Problem**: Custom validation results not in output
**Solution**:
* Verify JSON format is correct
* Check API response includes `custom_url_validation` field
* Ensure you're using the latest CLI version
***
## Version
Current version: **1.5.0**
Use `clearproxy --version` or `clearproxy -v` to check your installed version.
# Introduction
Source: https://docs.clearproxy.io/index
Professional proxy validation service for developers and businesses
## Welcome to ClearProxy
**ClearProxy** is a professional proxy validation service designed for developers and businesses who need reliable, fast, and accurate proxy checking at scale.
ClearProxy offers global infrastructure spanning **19 regions across 5 continents**, ensuring your proxy validation latency is accurate based on location.
Whether you're managing proxy pools, building scraping infrastructure, or ensuring connection quality, ClearProxy provides detailed validation results including geolocation data, anonymity levels, and performance metrics.
## Getting Started
Go to [https://dash.clearproxy.io/](https://dash.clearproxy.io/) and sign up for a free account
Navigate to **Settings** in your dashboard and copy your API key
Use your API key to start checking proxies through our API
## What You Can Do
* **Validate Proxies at Scale** - Check millions of proxies and result comes in seconds
* **Accurate Latency** - Choose from 19 regions worldwide for Accurate Laency result
* **Detailed Analytics** - Get comprehensive data on each proxy including location, ISP, and anonymity level
* **Multiple Proxy Types** - Support for HTTP, SOCKS4, and SOCKS5 proxies
* **Flexible Formats** - Works with authenticated and non-authenticated proxies
## How It Works
1. Send your proxy list to ClearProxy
2. We test each proxy from your chosen region
3. Get instant results with detailed information
4. Download comprehensive reports for further analysis
## Ready to Start?
Choose your preferred way to integrate ClearProxy:
# Node.js SDK
Source: https://docs.clearproxy.io/node
Official Node.js SDK for ClearProxy API
## Installation & Setup
Get started with ClearProxy in your Node.js project.
Install the package via npm:
```bash theme={null}
npm i clearproxy
```
Initialize the client using your API key.
```javascript theme={null}
import { ClearProxy } from "clearproxy";
const client = new ClearProxy("clearpx_yourkey");
```
***
## Validating Proxies
The `check()` method is the core of the SDK, allowing you to validate proxy lists with various configurations.
### `client.check(file, options)`
**Parameters:**
* `file` (string) - Path to your proxy list file.
* `options` (object) - Configuration for the checking job.
#### Configuration Options
| Option | Type | Description | Default |
| :----------- | :----- | :------------------------------------------- | :------ |
| `region` | string | Testing region (e.g., `us1`, `eu1`, `asia1`) | `us1` |
| `timeout` | number | Request timeout in milliseconds (1000-20000) | `5000` |
| `type` | string | Proxy protocol (`http`, `socks4`, `socks5`) | `http` |
| `customUrls` | array | Custom URL validation rules | `[]` |
#### Basic Example
```javascript theme={null}
const result = await client.check("proxies.txt", {
region: "us1",
timeout: 5000,
type: "http"
});
console.log(`Working: ${result.working.length}`);
console.log(`Failed: ${result.failed.length}`);
```
***
## Real-Time Progress Tracking
Real-time feedback via WebSockets, allowing you to track progress as it happens instead of waiting for the entire job to finish.
### Implementation
To enable real-time tracking, provide an `onProgress` callback in the `check()` options.
```javascript theme={null}
const result = await client.check("proxies.txt", {
onProgress: (event) => {
console.log(`Progress: ${event.progress}%`);
console.log(`Status: ${event.details.message}`);
console.log(`Working found: ${event.details.working_so_far}`);
}
});
```
### Job ID Management
You can optionally provide a `jobId` to identify the socket connection. If omitted while using `onProgress`, the SDK automatically generates one.
| Option | Type | Description |
| :----------- | :------- | :------------------------------------------------------------ |
| `onProgress` | function | Callback triggered for every progress update. |
| `jobId` | string | Custom ID for tracking. (Default: `sdk_[random]_[timestamp]`) |
**WebSocket Logic:** The SDK manages the WebSocket lifecycle automatically—opening it when the check starts and closing it upon completion or failure.
***
## Advanced Validation (Custom URLs)
Verify if your proxies can access specific websites with custom status code and content requirements.
### Usage
```javascript theme={null}
const result = await client.check("proxies.txt", {
customUrls: [
{
url: "https://discord.com",
requiredStatusCodes: [200, 301, 302]
},
{
url: "https://www.google.com",
requiredText: "Search",
caseSensitive: false
}
]
});
```
### Helper Methods
The SDK provides utilities to process custom validation results easily.
#### `client.getCustomUrlSummary(result)`
Get an aggregated summary of all tested URLs.
#### `client.filterByCustomUrl(result, url)`
Extract a list of proxies that specifically passed for a given URL.
```javascript theme={null}
const discordProxies = client.filterByCustomUrl(result, "https://discord.com");
console.log(`Found ${discordProxies.length} proxies valid for Discord`);
```
***
## Utility Methods
### Exporting Results
Convert your validated proxy lists into different formats.
#### `client.export(proxies, format, auth)`
* `format`: `txt`, `json`, or `csv`
* `auth`: boolean (include user:pass if available)
```javascript theme={null}
const textOutput = client.export(result.working, "txt", true);
fs.writeFileSync("working.txt", textOutput);
```
### Account & API Info
```javascript Account Info theme={null}
const info = await client.me();
console.log(`Checks Left: ${info.user.checks}`);
```
```javascript List Regions theme={null}
const regions = await client.regions();
console.log("Available Regions:", regions);
```
```javascript Health Check theme={null}
const status = await client.health();
console.log("API Status:", status.status);
```
***
## Response Structure
### Standard Response
```javascript theme={null}
{
summary: {
total_working: 150,
countries: { "United States": 100, "Germany": 50 },
anonymity_levels: { elite: 120, anonymous: 30 }
},
metadata: {
user: {
email: "user@example.com",
remaining_checks: 4500,
subscription_detail: { UnlimitedPro: false }
},
region_used: "us1",
total_checked: 500
},
proxies: [...], // Array of all tested proxies
working: [...], // Array of working proxies only
failed: [...] // Array of failed proxies only
}
```
### Custom URL Response
When `customUrls` are provided, the `custom_url_validation` field is populated.
```javascript theme={null}
{
custom_url_validation: {
summary: { total_urls_tested: 2, processing_time: "8.45s" },
per_url_summary: [
{
url: "https://discord.com",
success_count: 120,
failed_count: 30,
successful_proxies: [...]
}
]
}
}
```
***
## Error Handling
```javascript theme={null}
try {
const result = await client.check("proxies.txt");
} catch (error) {
console.error("ClearProxy Error:", error.message);
}
```
***
## Complete Example
This example demonstrates a full workflow: initialization, checking with real-time progress, using custom validation, and saving results.
```javascript theme={null}
import { ClearProxy } from "clearproxy";
import fs from "fs";
async function main() {
// 1. Initialize the client
const client = new ClearProxy("clearpx_yourkey");
try {
console.log("Starting proxy check...");
// 2. Perform the check with all features enabled
const result = await client.check("proxies.txt", {
region: "us1",
timeout: 5000,
onProgress: (event) => {
console.log(`[${event.progress}%] ${event.details.message}...`);
},
customUrls: [
{
url: "https://discord.com",
requiredStatusCodes: [200, 301, 302]
}
]
});
// 3. Process the results
console.log(`\nCheck Complete!`);
console.log(`Total Working: ${result.working.length}`);
// 4. Filter and export specific results
const discordProxies = client.filterByCustomUrl(result, "https://discord.com");
console.log(`Discord Valid: ${discordProxies.length}`);
if (discordProxies.length > 0) {
const output = client.export(discordProxies, "txt", true);
fs.writeFileSync("discord_working.txt", output);
console.log("Saved discord_working.txt");
}
// 5. Check remaining balance
const info = await client.me();
console.log(`Remaining Checks: ${info.user.checks}`);
} catch (error) {
console.error("Workflow Failed:", error.message);
}
}
main();
```
# Pricing
Source: https://docs.clearproxy.io/pricing
Simple credit-based pricing. Recharge credits anytime you need them.
## Unlimited Plans
Experience the best of ClearProxy with our unlimited checking plan.
### UnlimitedPro
* **\$4.99**/mo
* Unlimited fair use proxy checks
* Perfect for pesonal usage & personal projects
* [Subscribe Now](https://dash.clearproxy.io/balance#unlimited)
***
## Pay As You Go
### 40K Checks — Free
* **\$0.00**
* Includes 40,000 free checks
* [Start Free](https://dash.clearproxy.io/)
### 10M Checks
* **\$5.50** (0.55 per 1M checks)
* [Recharge Now](https://dash.clearproxy.io/balance#recharge)
### 30M Checks
* **\$14.00** (0.47 per 1M checks)
* [Recharge Now](https://dash.clearproxy.io/balance#recharge)
### 60M Checks
* **\$25.00** (0.42 per 1M checks)
* [Recharge Now](https://dash.clearproxy.io/balance#recharge)
### 100M Checks
* **\$40.00** (0.40 per 1M checks)
* [Recharge Now](https://dash.clearproxy.io/balance#recharge)
### 250M Checks
* **\$85.00** (0.34 per 1M checks)
* [Recharge Now](https://dash.clearproxy.io/balance#recharge)
### 500M Checks
* **\$160.00** (0.32 per 1M checks)
* [Recharge Now](https://dash.clearproxy.io/balance#recharge)
### 1B Checks
* **\$300.00** (0.30 per 1M checks)
* [Recharge Now](https://dash.clearproxy.io/balance#recharge)
### Custom Volume
* Contact us for enterprise or high-volume pricing
* [support@clearproxy.io](mailto:support@clearproxy.io)
***
## Features
All users get full access to every feature:
* API Access
* All Region Node Access
* Proxy Anonymity Level Detection
* IP Geolocation Info
* ASN & ISP Info
* Unlimited Concurrent API Requests
* HTTP/S, SOCKS4, SOCKS5 Proxy Support
* Custom site checks
* Up to 15 custom sites per request
***
## How It Works
### **Purchase credits**
Recharge check credits anytime. Credits never expire.
### **Need more?**
For >1B checks or enterprise usage, contact our team:
**[support@clearproxy.io](mailto:support@clearproxy.io)**
# Regions
Source: https://docs.clearproxy.io/region
Available checking regions fora curate latency result
## Available Regions
| Code | Location | |
| ---- | ----------------------- | - |
| us1 | Washington DC, USA | |
| us2 | San Francisco, USA | |
| us3 | Cleveland, USA | |
| us4 | Portland, USA | |
| uk1 | London, UK | |
| sg1 | Singapore | |
| au1 | Sydney, Australia | |
| jp1 | Tokyo, Japan | |
| jp2 | Osaka, Japan | |
| kr1 | Seoul, South Korea | |
| hk1 | Hong Kong | |
| in1 | Mumbai, India | |
| br1 | Sao Paulo, Brazil | |
| de1 | Frankfurt, Germany | |
| ae1 | Dubai, UAE | |
| ie1 | Dublin, Ireland | |
| za1 | Cape Town, South Africa | |
| fr1 | Paris, France | |
| se1 | Stockholm, Sweden | |
**Default Region:** us1
# Authentication
Source: https://docs.clearproxy.io/rest/authentication
How to authenticate with the ClearProxy API
ClearProxy supports two authentication methods:
## API Key Header
```bash theme={null}
X-API-Key: clearpx_yourkey
```
## Bearer Token
```bash theme={null}
Authorization: Bearer clearpx_yourkey
```
Use either method in your HTTP requests to authenticate.
# Check Proxies
Source: https://docs.clearproxy.io/rest/check
POST https://api.clearproxy.io/check
Check proxies using JSON format with optional custom URL validation
## Authentication
Your ClearProxy API key (format: clearpx\_yourkey)
Alternatively, you can use Bearer token authentication:
Bearer token (format: Bearer clearpx\_yourkey)
## Request Body
Array of proxy addresses
Optional client-side generated job ID for real-time progress tracking via WebSockets
Region code (default: us1)
Proxy type: http, socks4, socks5 (default: http)
Timeout in ms (1000-20000)
Array of custom URLs to validate working proxies against
### Custom URL Parameters
Target URL to test proxies against
HTTP status codes to accept (default: \[200])
Text that must appear in response body
Case-sensitive text matching (default: false)
## Example Request
```bash theme={null}
curl -X POST https://api.clearproxy.io/check \
-H "X-API-Key: clearpx_yourkey" \
-H "Content-Type: application/json" \
-d '{
"proxies": ["1.2.3.4:8080", "user:pass@5.6.7.8:3128"],
"region": "sg1",
"type": "http",
"timeout": 2000,
"jobId": "my_unique_job_id_123"
}'
```
## Example with Custom URL Validation
```bash theme={null}
curl -X POST https://api.clearproxy.io/check \
-H "X-API-Key: clearpx_yourkey" \
-H "Content-Type: application/json" \
-d '{
"proxies": ["1.2.3.4:8080"],
"customUrls": [
{
"url": "https://discord.com",
"requiredStatusCodes": [200, 301, 302]
}
]
}'
```
## Response
Summary of check results
Number of working proxies found
Breakdown by country
Detailed metadata about the request
If the UnlimitedPro plan is active
Expiration date of the unlimited plan
URL to download full results
# Get User Info
Source: https://docs.clearproxy.io/rest/get-user-info
GET https://api.clearproxy.io/me
Get account information, quota, and usage history
## Authentication
Your ClearProxy API key (format: clearpx\_yourkey)
Alternatively, you can use Bearer token authentication:
Bearer token (format: Bearer clearpx\_yourkey)
## Example Request
```bash theme={null}
curl https://api.clearproxy.io/me \
-H "X-API-Key: clearpx_yourkey"
```
## Response
User account information
User ID
Email address
Total number of checks used
Total remaining checks
Breakdown of available checks
Base account balance
Temporary promotional balance
Information about the user's active subscription
Whether the UnlimitedPro plan is active
Expiration date of the unlimited plan (ISO format)
Array of recent check operations
Usage statistics for the last 30 days
```json theme={null}
{
"user": {
"email": "hello@clearproxy.io",
"checks_used": 1,
"remaining_checks": 10938392,
"subscription_detail": {
"UnlimitedPro": false
},
"breakdown": {
"root_balance": 10938392,
"temp_balance": 0
}
},
"history": [],
"usage_last_30_days": []
}
```
# Introduction
Source: https://docs.clearproxy.io/rest/introduction
Welcome to ClearProxy Rest API Documentation
ClearProxy provides a powerful REST API for checking and validating proxy servers at scale.
## Base URL
```
https://api.clearproxy.io
```
## Quick Start
1. Get your API key from the dashboard
2. Choose your authentication method
3. Start checking proxies!
# List Regions
Source: https://docs.clearproxy.io/rest/list-regions
GET https://api.clearproxy.io/regions
Get all available checking regions
## Example Request
```bash theme={null}
curl https://api.clearproxy.io/regions
```
```json theme={null}
{
"regions": [
{
"code": "sg1",
"name": "Singapore",
"endpoints": 16
},
{
"code": "au1",
"name": "Sydney, Australia",
"endpoints": 16
},
{
"code": "us1",
"name": "Washington DC, USA",
"endpoints": 16
},
{
"code": "us2",
"name": "San Francisco, USA",
"endpoints": 16
},
{
"code": "us3",
"name": "Cleveland, USA",
"endpoints": 16
},
{
"code": "us4",
"name": "Portland, USA",
"endpoints": 16
},
{
"code": "uk1",
"name": "London, UK",
"endpoints": 16
},
{
"code": "jp1",
"name": "Tokyo, Japan",
"endpoints": 16
},
{
"code": "jp2",
"name": "Osaka, Japan",
"endpoints": 16
},
{
"code": "kr1",
"name": "Seoul, South Korea",
"endpoints": 16
},
{
"code": "hk1",
"name": "Hong Kong",
"endpoints": 16
},
{
"code": "in1",
"name": "Mumbai, India",
"endpoints": 16
},
{
"code": "br1",
"name": "Sao Paulo, Brazil",
"endpoints": 16
},
{
"code": "de1",
"name": "Frankfurt, Germany",
"endpoints": 16
},
{
"code": "ae1",
"name": "Dubai, UAE",
"endpoints": 16
},
{
"code": "ie1",
"name": "Dublin, Ireland",
"endpoints": 16
},
{
"code": "za1",
"name": "Cape Town, South Africa",
"endpoints": 16
},
{
"code": "fr1",
"name": "Paris, France",
"endpoints": 16
},
{
"code": "se1",
"name": "Stockholm, Sweden",
"endpoints": 16
},
{
"code": "test1",
"name": "TEST - DO NOT USE",
"endpoints": 6
}
],
"default": "us1"
}
```
# Response Format
Source: https://docs.clearproxy.io/rest/response-format
Understanding API response structures
## Standard Check Response
```json theme={null}
{
"summary": {
"total_working": 2331,
"countries": {
"United States": 150,
"Germany": 100
},
"anonymity_levels": {
"elite": 200,
"anonymous": 150,
"transparent": 100
},
"top_isps": {
"Digital Ocean": 50,
"Amazon AWS": 45
}
},
"metadata": {
"job_id": "job_1769051242762_fmom13op5",
"user": {
"email": "hello@clearproxy.io",
"checks_used": 1,
"remaining_checks": 10938392,
"subscription_detail": {
"UnlimitedPro": false
},
"breakdown": {
"root_balance": 10938392,
"temp_balance": 0
}
},
"region_used": "sg1",
"region_name": "Singapore",
"proxy_type": "http",
"timeout_used": "5000ms",
"total_checked": 1,
"processing_time": "1.13s",
"custom_validation_enabled": false
},
"result_url": "https://content.clearproxy.io/result/abc123.json?token=xyz"
}
```
## Accessing Full Results
The `result_url` field contains a link to download the complete proxy check results. Access this URL to get detailed information about each proxy.
### Standard Result Format
```json theme={null}
{
"summary": {
"total_working": 150,
"countries": {
"United States": 100,
"Germany": 30,
"United Kingdom": 20
},
"anonymity_levels": {
"elite": 120,
"anonymous": 20,
"transparent": 10
},
"top_isps": {
"Digital Ocean": 40,
"Amazon AWS": 35,
"Hetzner": 25
}
},
"metadata": {
"job_id": "job_1769051242762_fmom13op5",
"user": {
"email": "hello@clearproxy.io",
"checks_used": 1,
"remaining_checks": 10938392,
"subscription_detail": {
"UnlimitedPro": false
},
"breakdown": {
"root_balance": 10938392,
"temp_balance": 0
}
},
"region_used": "sg1",
"region_name": "Singapore",
"proxy_type": "http",
"timeout_used": "5000ms",
"total_checked": 1,
"processing_time": "1.13s",
"custom_validation_enabled": false
},
"proxies": [
{
"proxy": {
"host": "192.0.2.100",
"port": 8080,
"hasAuth": true,
"username": "myuser",
"password": "mypassword"
},
"status": "working",
"statusCode": 200,
"responseTime": "150 ms",
"anonymity": "elite",
"origin": "203.0.113.1",
"country": "United States",
"location": "New York",
"isp": "Example ISP Inc.",
"asn": 64512,
"coordinates": {
"lat": 40.7128,
"lon": -74.006
}
},
{
"proxy": {
"host": "198.51.100.50",
"port": 3128,
"hasAuth": false
},
"status": "working",
"statusCode": 200,
"responseTime": "220 ms",
"anonymity": "elite",
"origin": "198.51.100.50",
"country": "Germany",
"location": "Frankfurt",
"isp": "Hetzner Online GmbH",
"asn": 24940
}
]
}
```
## Custom URL Validation Response
When `customUrls` parameter is provided, the response includes additional validation results:
```json theme={null}
{
"summary": {
"total_working": 150,
"countries": {...},
"anonymity_levels": {...}
},
"metadata": {
"job_id": "job_1769051242762_fmom13op5",
"user": {
"email": "hello@clearproxy.io",
"checks_used": 1,
"remaining_checks": 10938392,
"subscription_detail": {
"UnlimitedPro": false
},
"breakdown": {
"root_balance": 10938392,
"temp_balance": 0
}
},
"region_used": "sg1",
"region_name": "Singapore",
"proxy_type": "http",
"timeout_used": "5000ms",
"total_checked": 1,
"processing_time": "1.13s",
"custom_validation_enabled": true,
"custom_urls_tested": 2
},
"result_url": "https://content.clearproxy.io/result/custom_abc123.json?token=xyz",
"custom_url_validation": {
"summary": {
"total_urls_tested": 2,
"total_proxies_tested": 150,
"processing_time": "8.45s"
},
"per_url_summary": [
{
"url": "https://discord.com",
"success_count": 120,
"failed_count": 30,
"success_rate": "80.00%"
},
{
"url": "https://example.com/api",
"success_count": 90,
"failed_count": 60,
"success_rate": "60.00%"
}
]
}
}
```
### Custom URL Result File
When custom URL validation is used, the file is saved with `custom_` prefix:
```json theme={null}
{
"summary": {...},
"metadata": {
"job_id": "job_1769051242762_fmom13op5",
"user": {
"email": "hello@clearproxy.io",
"checks_used": 1,
"remaining_checks": 10938392,
"subscription_detail": {
"UnlimitedPro": false
},
"breakdown": {
"root_balance": 10938392,
"temp_balance": 0
}
},
"region_used": "sg1",
"region_name": "Singapore",
"proxy_type": "http",
"timeout_used": "5000ms",
"total_checked": 1,
"processing_time": "1.13s",
"custom_validation_enabled": true,
"custom_urls_tested": 2
},
"proxies": [...],
"custom_url_validation": {
"total_urls_tested": 2,
"total_proxies_tested": 150,
"processing_time": "8.45s",
"results": [
{
"url": "https://discord.com",
"requiredStatusCodes": [200, 301],
"requiredText": null,
"caseSensitive": false,
"total_tested": 150,
"success_count": 120,
"failed_count": 30,
"success_rate": "80.00%",
"successful_proxies": [
{
"proxy": {
"host": "192.0.2.100",
"port": 8080,
"hasAuth": true,
"username": "user",
"password": "pass"
},
"status": "working",
"statusCode": 200,
"responseTime": "250 ms",
"url": "https://discord.com"
}
],
"failed_proxies": [
{
"proxy": {
"host": "203.0.113.1",
"port": 8080
},
"status": "failed",
"error": "timeout",
"url": "https://discord.com"
}
]
}
]
}
}
```
# Tracking Progress
Source: https://docs.clearproxy.io/rest/websockets
Real-time progress tracking for proxy checking jobs
This API supports real-time progress tracking for proxy checking jobs using **client-generated Job IDs**.
## 1. Initiating a Check Job
To use real-time tracking, you must generate a unique `jobId` on the client side and provide it to the API.
### Job ID Requirements
* **Format:** 3-64 characters, alphanumeric, underscores (`_`), or hyphens (`-`).
* **Uniqueness:** A `jobId` can only be used by **one active request at a time**. If you use an ID that is already in progress, the API will return a `409 Conflict` error.
* **Reuse:** You can reuse the same ID once the previous job associated with it has completed or failed.
### For /check (JSON)
Include the `jobId` in the JSON request body.
```json theme={null}
{
"proxies": ["1.2.3.4:8080", ...],
"jobId": "my_unique_job_id_123"
}
```
***
## 2. Connecting to WebSocket
Connect to the WebSocket endpoint **before or during** the HTTP request to start receiving updates.
**Endpoint:**
```
ws://api.clearproxy.io/ws?jobId=
```
**Example:**
`ws://api.clearproxy.io/ws?jobId=my_unique_job_id_123`
***
## 3. Progress Message Format
The WebSocket server sends JSON messages for every major step.
### Message Structure
```json theme={null}
{
"jobId": "my_unique_job_id_123",
"status": "in_progress", // "in_progress", "completed", "failed"
"currentStep": "proxy_check_batch_5_of_10",
"stepsCompleted": ["validating", "checking_balance"],
"progress": 35, // Percentage (0-100)
"eta": "~1s", // Estimated Time Remaining
"details": { // Step-specific details
"message": "Finished Verifying Batch 61 (Working: 100, Failed: 900)",
"batches_done": 43,
"working_so_far": 1234
},
"timestamp": "2026-01-20T12:00:00.000Z"
}
```
***
## 4. Client Implementation Example (Node.js)
```javascript theme={null}
import WebSocket from 'ws';
import axios from 'axios';
const myJobId = 'client_job_' + Date.now();
// 1. Connect to WebSocket
const ws = new WebSocket(`ws://api.clearproxy.io/ws?jobId=${myJobId}`);
ws.on('message', (data) => {
const event = JSON.parse(data);
console.log(`[${event.progress}%] ${event.details.message}`);
});
// 2. Start Request
axios.post('https://api.clearproxy.io/check', {
proxies: ['...'],
jobId: myJobId
});
```