Base URL
All API requests must be made over HTTPS using the following base URLs:
Public API (Free)
No authentication required. Suitable for basic usage and testing.
curl https://myip.casa/api/ip
Private API (API Key required)
Access private 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.
curl -H "X-API-Key: YOUR_KEY" https://myip.casa/api/pro/ip
curl -H "X-API-Key: YOUR_KEY" https://myip.casa/api/pro/security
curl -H "X-API-Key: YOUR_KEY" https://myip.casa/api/pro/vpn
curl -H "X-API-Key: YOUR_KEY" https://myip.casa/api/pro/details
curl -H "X-API-Key: YOUR_KEY" https://myip.casa/api/pro/health
curl -X POST https://myip.casa/api/pro/bulk -H "Content-Type: application/json" -H "X-API-Key: YOUR_KEY" -d "{\"ips\":[\"8.8.8.8\",\"1.1.1.1\",\"203.0.113.25\"]}"
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.
| 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.
π Public API
- β’ No authentication required
- β’ Returns HTTP 429 when rate limit is exceeded.
- β’ Basic IP detection only
π Private API
- β’ Daily quota based on subscription
- β’ Real-time tracking via
quota_remaining - β’ Quota resets at 00:00 UTC daily