Fast IP geolocation, ASN lookup, network intelligence, VPN detection,
proxy detection, Tor detection, datacenter detection and risk scoring
for developers..
Use our Public API for basic IP detection or upgrade to the Private API
for advanced IP intelligence, security scoring, and bulk analysis.
Base URL
All API requests must be made over HTTPS using the following base URLs:
π Public API
https://myip.casa/api/
Production
π Private API
https://myip.casa/api/pro/
Requires X-API-Key header
Public API (Free)
No authentication required. Suitable for basic usage and testing.
Access Pro endpoints by sending your API key using the X-API-Key HTTP header.
Authentication
Authentication is performed via a static API key sent in an HTTP header.
No cookies, no sessions, no fingerprinting.
X-API-Key: YOUR_API_KEY
Note: For security reasons, API keys are displayed only once at purchase time.
Available Private Endpoints
All endpoints require a valid X-API-Key header.
Use the Pro API for IP geolocation, ASN lookup, VPN/proxy/Tor detection,
datacenter detection, risk scoring, reputation signals, and bulk IP analysis.
GET/api/pro/ip
Get Public IP
Returns the public IP address of the caller, authenticated via API key.
Real-time detection for VPN, Tor, proxies, datacenter IPs, bots and abusers. The top-level risk_score and risk_level give an instant verdict. The evidence array explains the score in plain language. The reputation block includes blacklist status, local incident count, and last-seen date. Accepts an optional ?ip= query parameter to analyze any IPv4 or IPv6 address.
Complete IP profile: geolocation, network, security signals, and user-agent parsing. Accepts an optional ?ip= query parameter to analyze any IPv4 or IPv6 address; defaults to the caller's IP.
Analyze up to 50 IPv4 or IPv6 addresses in a single request. Each result includes country, ASN org, risk scoring, VPN detection, and a human-readable evidence array. The response also contains a summary object with aggregated statistics. Use the optional ?mode=fast query parameter for reduced latency (same response schema). IPs not found return an error entry.
Same analysis as /api/pro/bulk but returns results as a CSV file attachment instead of JSON. Useful for offline processing or spreadsheet imports. The ?mode=fast query parameter is also supported.
β Returns a text/csv file attachment
ip,country,city,asn_org,risk_score,risk_level,is_vpn,evidence,status,message
198.51.100.10,US,Unknown,Example CDN LLC,80,High,true,"DataCenter/VPN IP address",,
198.51.100.42,Unknown,Unknown,Example Hosting Ltd.,80,High,true,"DataCenter/VPN IP address",,
203.0.113.25,,,,,,,,error,Not found in database
Error Handling
The API uses standard HTTP status codes and returns a structured JSON object for all errors. All responses are returned in application/json over HTTPS.
ERRORStandard Error Format
{"status": "error",
"code": 401,
"message": "Invalid API key"}
Code
Description
400
Bad Request (missing parameters)
401
Unauthorized (missing key)
403
Forbidden (invalid or inactive key)
429
Too Many Requests (quota exceeded)
Rate Limits
Rate limits are enforced to ensure service stability. They depend on your active plan.