Skip to main content

Privacy Detection API

developer
GET/v1/ip/privacy

Identifies whether an IP address is associated with a VPN provider, open proxy, Tor exit node, or datacenter/hosting provider. Uses multi-layered detection combining pre-indexed threat feeds (Tor Project, X4BNet, FireHOL) with ASN-based heuristics for 50+ known hosting and VPN autonomous systems. Returns detection flags, provider identification, and confidence scores.

What It Does

Executes a multi-layered detection pipeline: (1) KV-based lookups against pre-indexed lists of Tor exit nodes (official Tor Project bulk exit list), VPN provider IPs (X4BNet community-maintained lists), open proxies (FireHOL aggregated proxy feeds), and datacenter CIDR ranges (X4BNet datacenter lists). (2) ASN-based heuristic detection against 50+ known hosting ASNs (AWS, GCP, Azure, DigitalOcean, Hetzner, OVH, Vultr, Linode, Cloudflare) and VPN provider ASNs (NordVPN, M247). Returns boolean flags for VPN, proxy, Tor, datacenter, and residential classification with confidence scoring (50-99%) and identified provider names. Results cached for 6 hours.

Why It's Useful

Privacy detection is essential for fraud prevention (VPN/Tor IPs correlate with higher fraud rates), ad verification (datacenter IPs indicate bot traffic), and risk-based authentication (step-up verification for anonymized connections). Unlike single-source detection, the multi-layered approach reduces false negatives by combining IP-level lists with network-level ASN heuristics.

Use Cases

Fraud Analyst

Payment Fraud Prevention

Flag transactions from VPN or Tor exit nodes for additional verification (3DS, manual review) before processing payments, with confidence-based thresholds to minimize friction for legitimate users.

Use anonymization signals alongside other risk checks when deciding whether a transaction needs additional review.

Ad Operations Manager

Ad Fraud & Invalid Traffic Detection

Identify non-human traffic originating from datacenter IPs, proxy networks, and VPN providers to exclude invalid clicks and impressions from advertising campaigns.

Protect ad spend by filtering datacenter and proxy traffic flagged as General Invalid Traffic (GIVT) per MRC guidelines.

Security Engineer

Risk-Based Authentication

Implement adaptive authentication that requires MFA for logins from VPN, Tor, or datacenter IPs while allowing passwordless flows for trusted residential connections.

Balance security and usability by calibrating authentication strength to the connection anonymity level.

Parameters

NameLocationTypeRequiredDescription
ipquerystringRequiredThe IPv4 or IPv6 address to check for VPN, proxy, Tor, or datacenter associationExample: 1.2.3.4

Response Fields

Result fields below are inside the JSON data object. Any row named meta describes the sibling response metadata object. See response and error handling for status codes and error responses. Optional observations may be absent or null; inspect warnings and partial-failure fields before treating a missing result as a negative finding.

FieldTypeDescription
ipstringThe queried IP address
is_vpnbooleanWhether the IP is a known VPN endpoint (source: X4BNet, ASN heuristics)
is_proxybooleanWhether the IP is a known open proxy (source: FireHOL proxy feeds)
is_torbooleanWhether the IP is a Tor relay or exit node (source: Tor Project)
is_datacenterbooleanWhether the IP belongs to a datacenter/hosting provider (source: X4BNet, ASN heuristics)
is_residentialbooleanWhether the IP appears to be a residential/ISP connection (no detections)
tor_exit_nodebooleanSpecifically whether this is a Tor exit node (vs relay)
tor_rolestringTor node role: "exit" (actively serves traffic), "relay" (middle/guard), or null when not Tor
is_residential_proxybooleanWhether the IP belongs to a resold residential-proxy network (Bright Data, Oxylabs, etc.) — distinct from open proxy and commercial VPN
vpn_providerstringIdentified VPN provider name if detected (e.g., NordVPN, M247)
hosting_providerstringIdentified hosting/cloud provider if detected (e.g., Amazon AWS, Google Cloud)
confidencenumberDetection confidence score (0-100). Higher = more certain. IP list match: 85-99, ASN heuristic: 70-75, no detection: 50
detection_methodstringMethod used: tor_exit_list, vpn_ip_list, proxy_list, datacenter_cidr, cidr_range_match, rdns_pattern, asn_hosting, asn_vpn, or no_signals
last_updatedstringISO 8601 timestamp of the detection check

Code Examples

Replace YOUR_API_KEY with your API key. This endpoint requires the developer plan or higher; see plans and usage limits.

cURL
curl --request GET 'https://api.edgedns.dev/v1/ip/privacy?ip=1.2.3.4' \
  --header "Authorization: Bearer YOUR_API_KEY"
JavaScript
const response = await fetch(
  "https://api.edgedns.dev/v1/ip/privacy?ip=1.2.3.4",
  {
    "method": "GET",
    "headers": {
      "Authorization": "Bearer YOUR_API_KEY"
    }
  }
);

if (!response.ok) {
  throw new Error(`EdgeDNS returned HTTP ${response.status}`);
}
const data = await response.json();
console.log(data);
Python
import requests

response = requests.request(
    'GET',
    "https://api.edgedns.dev/v1/ip/privacy?ip=1.2.3.4",
    headers={'Authorization': 'Bearer YOUR_API_KEY'},
    timeout=60,
)
response.raise_for_status()
data = response.json()
print(data)

Read the full Privacy Detection guide

Learn the concepts, choose a practical workflow, and interpret the observations from Privacy Detection before acting on them. Run supported checks via MCP or through REST.

Read the guide →

    Related Endpoints

    External References

    Learn more about the standards and protocols behind this endpoint.

    Try This Endpoint

    Test the Privacy Detection endpoint live in the playground.

    Privacy Detection API Reference | EdgeDNS