IP Geolocation & VPN Detection API β Developer Documentation
The myip.casa API provides fast and reliable IP geolocation, ASN lookup,
network intelligence, and real-time VPN, proxy, Tor, and threat detection.
Designed for developers, security teams, SaaS platforms, and fraud prevention systems.
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.
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.