What is my IP address?
Retrieve IP address information programmatically
$ curl ipconfig.io
$ wget -qO- ipconfig.io
$ Invoke-RestMethod -uri https://ipconfig.io/ip
IPv4 or IPv6 can be forced by passing the appropiate flag to your client, e.g curl -4 or curl -6.
Setting the Accept: application/json header works as expected.
Yes. While we've increased server capacity and implemented load balancing, there is rate limiting is in place to ensure a fair service for all.
Please limit automated requests to 1 request per second. No guarantee is made for requests that exceed this limit.
They may be rate-limited, with a 429 status code, or dropped entirely.
$ curl ipconfig.io/country
United States$ curl https://ipconfig.io/city
Columbus$ curl https://ipconfig.io/asn
AS16509$ curl https://ipconfig.io/port/80
$ curl https://ipconfig.io/json
IP address | 3.138.170.67 |
---|---|
IP address (decimal) | 59419203 |
Country | United States |
Country (ISO code) | US |
In EU? | false |
Region | Ohio |
Region code | OH |
Metro code | 535 |
Postal code | 43215 |
City | Columbus |
Latitude | 39.9625 |
Longitude | -83.0061 |
Timezone | America/New_York |
ASN | AS16509 |
ASN (organization) | AMAZON-02 |
Hostname | ec2-3-138-170-67.us-east-2.compute.amazonaws.com |
User agent | Mozilla/5.0 |
User agent: Comment | AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +[email protected]) |
User agent: Raw | Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +[email protected]) |
This information is provided from the GeoLite2 database created by MaxMind, available from www.maxmind.com