VPNDetectionVPNDetection

Lookup

GET
/{ip}

Answers what is known about a single IPv4 or IPv6 address. Which fields come back is decided by the plan behind the presented key; with no key the answer is ip and is_vpn.

Authorization

apikey<token>

?apikey=<key>. Convenient in a browser; prefer a header elsewhere.

In: query

Path Parameters

ip*string

The IPv4 or IPv6 address to classify.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://api.vpndetection.io/1.1.1.1"

{
  "ip": "1.1.1.1",
  "is_vpn": false
}

{
  "error": "not a valid IP address"
}

{
  "error": "invalid API key"
}

{
  "error": "source address not allowed for this API key"
}

{
  "error": "rate limit exceeded"
}

{
  "error": "lookup failed"
}