WhatIsMyIP
IP: 2600:1f28:365:80b0:f40a:370e:a9ce:8973 Location: Ashburn, Virginia US ISP: Amazon.com, Inc.

Free IP, GeoIP & Whois API

Lightweight, real-time access to IP address and domain data — built for developers, network administrators, cybersecurity platforms and any app that needs accurate information about visitors or assets on the internet.

No API key required CORS enabled 50 requests / minute JSON responses

API Usage Stats

Since 07/2025
/ip 2,166,182 calls
/geoip 907,859 calls
/whois 115,748 calls
Total Calls Served 3,189,789
⚠️
Action Required — Update Your API Endpoint URLs

Support for www.whatismyip.net API endpoints is being removed in 60 days. Please update all requests to use the non-www base URL:

https://www.whatismyip.net/ip/ → https://whatismyip.net/ip/

The same applies to /geoip/ and /whois/ — drop the www. prefix from all your API calls now to avoid disruption.

Available Endpoints

Three endpoints: /ip/ for your public IP, /geoip/ for location and ISP data, and /whois/ for domain registration data via RDAP.

GET /ip/ text/plain

Returns the visitor's current IP address in plain text.

GET https://whatismyip.net/ip/
GET /geoip/ JSON

Returns geolocation details for your current IP address in JSON format.

GET https://whatismyip.net/geoip/
GET /geoip/?ip=IP_ADDRESS JSON

Returns geolocation details for a provided IPv4 or IPv6 address in JSON format.

GET https://whatismyip.net/geoip/?ip=2600:1f28:365:80b0:f40a:370e:a9ce:8973
GET /whois/?domain=DOMAIN_NAME JSON

Returns domain registration details via RDAP (with WHOIS fallback) in normalized JSON format.

GET https://whatismyip.net/whois/?domain=whatismyip.net

Code Samples

Pick an endpoint and language.

#!/bin/bash

ip=$(curl -s https://whatismyip.net/ip/)
echo "My public IP address is: $ip"
GET /ip/

Rate Limiting

50 API requests per minute, per IP address
This is enforced at the server level to ensure fair usage and performance. Abuse may result in temporary or permanent blocks.
If your IP address has been blocked from using our API endpoints because of abuse and you would like the restriction lifted, please contact us and explain why you think the ban should be removed.
Need higher limits?
We offer a paid version depending on your needs. Send us a message and we’ll get back to you as soon as we can.
Contact Us

Use Cases

  • IP logging and audit trails
  • Visitor geolocation for custom experiences
  • Network diagnostics or monitoring dashboards
  • Domain tools, RDAP client integrations, security scanners

Integration Tips

  • No API key is required. All endpoints are open and ready to use.
  • All endpoints support cross-origin requests (CORS enabled), making them suitable for frontend JavaScript applications or AJAX calls.
  • Throttle client-side calls appropriately to stay under the 50 req/min limit.
Questions / Comments
Shoot us a message on the contact page.
Contact Us