# Proxy Checker: IP Type, ASN, Leaks & Block Test (`xavierfok/proxy-quality-checker`) Actor

Check any list of HTTP/SOCKS proxies: alive or dead, latency, exit IP, ASN and carrier, mobile vs datacenter vs ISP, IP rotation, header leaks, IPv6, and whether Google, Amazon and Reddit block it. One row per proxy with a 0-100 score.

- **URL**: https://apify.com/xavierfok/proxy-quality-checker.md
- **Developed by:** [Xavier Fok](https://apify.com/xavierfok) (community)
- **Categories:** Developer tools, Automation
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.00 / 1,000 proxy checkeds

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Proxy Checker: IP Type, ASN, Leaks & Block Test

Paste a list of proxies and get one row per proxy telling you whether it works, how fast it is, what network it really exits from, and whether the sites you care about will block it.

Built for people who buy proxies and want to know what they actually got: is that "residential" pool really residential, is the "mobile" proxy really on a cellular network, does it leak your real IP, and does Google throw a captcha at it?

### What it checks

For every proxy:

| Check | What you get |
|---|---|
| **Alive / dead** | Works or not, and *why* not: `timeout`, `proxy_auth` (bad credentials), `proxy_connect` (refused / unreachable), `dns`, `tls` |
| **Latency** | Median of N requests, plus each sample |
| **Exit IP** | The IP websites see, plus Cloudflare's view of its country |
| **Rotation** | Whether the exit IP changed between requests (useful for rotating / backconnect proxies) |
| **Network** | ASN, network owner, country, reverse DNS |
| **IP type** | `mobile`, `datacenter`, `isp` (residential or business fixed line) or `unknown`, with a confidence level and the reasons behind it |
| **Header leaks** | `elite` (no proxy headers), `anonymous` (adds `Via` / `X-Forwarded-For`), or `transparent` (leaks another IP) |
| **IPv6** | Whether it can reach IPv6-only endpoints, and its IPv6 exit address |
| **Block tests** | Loads Google Search, Amazon search and Reddit (plus up to 5 URLs of your own) and tells a hard block (`denied`) from a JS challenge a real browser could pass (`challenge`). Detects Cloudflare, Akamai, PerimeterX, DataDome, AWS WAF, Imperva, Google's "unusual traffic" page and plain 403/429 refusals |
| **Score** | 0-100, see below |

### Input

```json
{
  "proxies": [
    "http://user:pass@203.0.113.10:8000",
    "socks5h://user:pass@gw.example.com:1080",
    "203.0.113.11:8000:user:pass",
    "203.0.113.12:3128"
  ],
  "customTestUrls": ["https://www.example-shop.com/"]
}
```

Accepted formats: `scheme://user:pass@host:port`, `user:pass@host:port`, `host:port:user:pass`, `host:port`. Schemes: `http`, `https`, `socks4`, `socks5`, `socks5h`. Lines without a scheme use **Default scheme**.

Leave **Proxies** empty to see a free demo row checked against Apify's own datacenter proxy.

### Output

One dataset row per proxy. This is a real row from one of our own Singtel mobile lines (IPs masked). Passwords are never written to the output or the log: proxies are shown as `http://user:***@host:port`.

```json
{
  "proxy": "http://user:***@203.0.113.10:8000",
  "alive": true,
  "score": 92,
  "egress_ip": "111.65.x.x",
  "egress_ips_seen": [
    "111.65.x.x"
  ],
  "rotated_between_requests": false,
  "latency_ms_median": 715,
  "asn": 45143,
  "asn_org": "Singapore Telecom Mobile Pte Ltd",
  "country": "SG",
  "cloudflare_country": "SG",
  "ip_type": "mobile",
  "ip_type_confidence": "high",
  "ip_type_reasons": [
    "AS45143 is a known cellular network (Singtel Mobile (SG))"
  ],
  "headers": {
    "proxy_headers": [],
    "leaked_ips": [],
    "anonymity": "elite"
  },
  "ipv6_supported": false,
  "targets": [
    {
      "name": "google",
      "status": 200,
      "blocked": false,
      "block_vendor": null,
      "block_kind": null,
      "ms": 1892
    },
    {
      "name": "amazon",
      "status": 200,
      "blocked": false,
      "block_vendor": null,
      "block_kind": null,
      "ms": 2067
    },
    {
      "name": "reddit",
      "status": 200,
      "blocked": true,
      "block_vendor": "reddit",
      "block_kind": "challenge",
      "ms": 2233
    }
  ],
  "blocked_on": [
    "reddit"
  ]
}
```

### How the score works

Starts at 100 and drops for things that make a proxy slower or easier to spot:

- median latency over 800 ms: -5, over 1.5 s: -15, over 3 s: -25
- `anonymous` headers: -15, `transparent` (leaks an IP): -40
- each block test that hard-blocks the proxy: -15; that shows a JS challenge: -8 (a network error: -5)
- datacenter IP: -10

A dead proxy scores 0.

### How the IP type is decided (and how sure it is)

- **high confidence**: the ASN is on our curated list of known cellular carriers (Singtel, M1, StarHub, T-Mobile US, Verizon Wireless, AT\&T Mobility, EE, Vodafone UK, O2 UK...) or known hosting / cloud providers (AWS, Google Cloud, Azure, OVH, Hetzner, DigitalOcean...).
- **medium**: the network name or reverse DNS points one way ("Wireless", "Hosting", "dynamic-pool"...).
- **low**: nothing matched; a normal ISP is reported as `isp`.

This is a heuristic from public network data, not a guarantee. Many carriers run fixed and mobile on one ASN, so a `isp` result on a big telco does not prove it isn't mobile. The reasons are always included so you can judge for yourself.

### Tips

- Checking a rotating / backconnect gateway? Raise **Latency samples** to 5-10 and look at `egress_ips_seen`.
- Put the site you actually plan to scrape into **Your own test URLs**. Google and Amazon behave differently from a small Shopify store.
- Slow mobile proxies may need **Request timeout** of 20-30 seconds.

### Need a real mobile IP?

This actor was built by the team behind [Singapore Mobile Proxy](https://singaporemobileproxy.com/?utm_source=apify\&utm_medium=marketplace\&utm_campaign=proxy_checker): dedicated mobile lines on real Singapore SIM cards (Singtel, M1), with IP rotation on demand from a link. Run one of our lines through this checker and you'll see `ip_type: mobile`, `confidence: high`. Code **APIFY15** takes 15% off your first payment.

### Data attribution

IP to ASN and country data: [DB-IP Lite](https://db-ip.com), licensed CC BY 4.0.

# Actor input Schema

## `proxies` (type: `array`):

One proxy per line. Formats: scheme://user:pass@host:port, user:pass@host:port, host:port:user:pass or host:port. Schemes: http, https, socks4, socks5, socks5h. Leave empty to run a demo check against Apify's own datacenter proxy (not charged).

## `defaultScheme` (type: `string`):

Scheme used for lines that don't include one.

## `builtinTargets` (type: `array`):

Popular sites to load through each proxy to see whether they block or challenge it.

## `customTestUrls` (type: `array`):

Up to 5 extra http(s) URLs to test each proxy against, e.g. the site you actually plan to scrape.

## `checkHeaders` (type: `boolean`):

Detect Via / X-Forwarded-For headers and real-IP leaks (transparent vs anonymous vs elite).

## `checkIpv6` (type: `boolean`):

Test whether the proxy can reach IPv6-only endpoints and report its IPv6 exit address.

## `latencySamples` (type: `integer`):

Requests used to measure latency. More than one also reveals whether the exit IP rotates between requests.

## `concurrency` (type: `integer`):

How many proxies to check at the same time (1-20).

## `timeoutSecs` (type: `integer`):

Per-request timeout. Slow mobile proxies may need 20-30.

## Actor input object example

```json
{
  "proxies": [],
  "defaultScheme": "http",
  "builtinTargets": [
    "google",
    "amazon",
    "reddit"
  ],
  "customTestUrls": [],
  "checkHeaders": true,
  "checkIpv6": true,
  "latencySamples": 3,
  "concurrency": 5,
  "timeoutSecs": 15
}
```

# Actor output Schema

## `results` (type: `string`):

Every proxy checked, in the overview table view.

## `allFields` (type: `string`):

Full rows including per-target block details, latency samples and IP-type reasons.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {};

// Run the Actor and wait for it to finish
const run = await client.actor("xavierfok/proxy-quality-checker").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {}

# Run the Actor and wait for it to finish
run = client.actor("xavierfok/proxy-quality-checker").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{}' |
apify call xavierfok/proxy-quality-checker --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,xavierfok/proxy-quality-checker"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/QUAktg1GCZpv7rF7E/builds/98GfPzViKe7fp74VG/openapi.json
