Skip to content

API Overview

CloakProbe provides a simple REST API to retrieve IP information in multiple formats.

https://ip.cloakprobe.dev

Or your own deployment URL.

EndpointDescriptionContent-Type
GET /HTML web interfacetext/html
GET /api/v1/infoFull JSON responseapplication/json
GET /api/v1/plainPlain text outputtext/plain
GET /healthzHealth checkapplication/json

No authentication required. CloakProbe is designed to be publicly accessible.

CloakProbe itself has no rate limiting. If you’re running behind Cloudflare, you can configure rate limiting there.

All endpoints include permissive CORS headers, allowing browser-based requests from any origin.

CloakProbe detects your IP address from these headers (in order):

  1. CF-Connecting-IP (Cloudflare)
  2. X-Real-IP
  3. X-Forwarded-For (first IP)
  4. Direct connection IP
Terminal window
curl https://ip.cloakprobe.dev/api/v1/info
Terminal window
curl https://ip.cloakprobe.dev/api/v1/plain
Terminal window
curl https://ip.cloakprobe.dev/healthz
# {"status":"ok"}
Terminal window
# Get just your IP
MY_IP=$(curl -s https://ip.cloakprobe.dev/api/v1/plain | head -1 | cut -d' ' -f2)
echo "My IP: $MY_IP"

CloakProbe returns standard HTTP status codes:

StatusMeaning
200Success
500Internal server error

Errors are returned as JSON:

{
"error": "Description of the error"
}