
What's My IP Address API
Web Development
See your public IP address, whether it is IPv4 or IPv6, its reverse DNS hostname, your browser and operating system, and the request headers your browser sends.
Authentication
All API requests require a valid API key passed in the Authorization header as a Bearer token.
Rate Limit
20 requests per minute
Endpoints
1 endpoint available
Overview
Returns the public IP address your request came from, its family (4 or 6), its reverse DNS name, your parsed User-Agent and the request headers your client sent. Useful for checking a server's outbound IP or whether a proxy or VPN is in use.
Notes
- Takes no input. GET and POST both work.
- The IP is read from the trusted end of the forwarding chain added by our hosting, so a client cannot spoof it with its own X-Forwarded-For header.
- No geolocation is done and nothing is stored. Reverse DNS has a 1.5 second limit and is null when there is no PTR record.
headersleaves out cookies, credentials (Authorization, X-API-Key) and headers added by our infrastructure.- Responses are sent with
Cache-Control: private, no-store.
Endpoints
GET
https://opentools.ca/api/v1/tools/whats-my-ipReturn the caller's public IP, reverse DNS name, parsed user agent and request headers. POST also works.
Response Example
{
"success": true,
"ip": "203.0.113.45",
"family": 4,
"hostname": "host-203-0-113-45.example-isp.net",
"userAgent": "curl/8.10.1",
"parsed": {
"browser": "curl",
"browserVersion": "8.10.1",
"engine": null,
"os": null,
"osVersion": null,
"device": "Bot",
"isBot": true
},
"headers": [
[
"accept",
"*/*"
],
[
"user-agent",
"curl/8.10.1"
]
],
"checkedAt": "2026-11-25T15:04:05.000Z"
}Error Codes
401
Missing or invalid API key403
API key inactive, expired, or not allowed from this IP429
Rate limit exceeded500
Internal server errorCode Examples
curl https://opentools.ca/api/v1/tools/whats-my-ip \
-H "Authorization: Bearer YOUR_API_KEY"Rather use it in your browser? Open the What's My IP Address