VPNDetectionVPNDetection

Lookup your own address

GET
/myip

Answers what is known about the address this request came from, which is the same answer GET /{ip} gives for that address: the plan behind the presented key decides which fields come back, and the request counts against the same allowance.

The address is the one our edge observed, so a request through a proxy or a VPN reports the exit it left through rather than the machine that made it. That is usually the point of asking.

Authorization

apikey<token>

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

In: query

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://api.vpndetection.io/myip"
{
  "ip": "45.83.91.1",
  "is_vpn": true
}

{
  "error": "invalid API key"
}

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

{
  "error": "rate limit exceeded"
}

{
  "error": "lookup failed"
}