Get IP Address
curl https://trueip.dev
18.117.75.6
Get GeoIP Information
curl https://trueip.dev/api/geoip
{
"geoip": {
"asn": {
"isp": "Unknown",
"name": "GOOGLE",
"number": 15169
},
"continent": {
"code": "NA",
"name_en": "North America"
},
"country": {
"iso_code": "US",
"name_en": "United States"
},
"ip_address": "8.8.8.8",
"locale": {
"city": null,
"postal": null,
"state": null
},
"location": {
"latitude": 37.751,
"longitude": -97.822,
"time_zone": "America/Chicago"
},
"map": {
"url": "map_url"
}
},
"is_private": true
}
Get GeoIP Information with IP Address Param
curl https://trueip.dev/api/geoip?ip=1.1.1.1
{
"geoip": {
"asn": {
"isp": "CloudFlare",
"name": "CLOUDFLARENET",
"number": 13335
},
"continent": {
"code": "OC",
"name_en": "Oceania"
},
"country": {
"iso_code": "AU",
"name_en": "Australia"
},
"ip_address": "1.1.1.1",
"locale": {
"city": null,
"postal": null,
"state": null
},
"location": {
"latitude": -33.494,
"longitude": 143.2104,
"time_zone": "Australia/Sydney"
},
"map": {
"url": "map_url"
}
},
"is_private": false
}
Get Domain WhoIs Data
curl https://trueip.dev/api/whois?domain=google.com
{
"address": null,
"city": null,
"country": "US",
"creation_date": ["Mon, 15 Sep 1997 04:00:00 GMT", "Mon, 15 Sep 1997 07:00:00 GMT"],
"dnssec": "unsigned",
"domain_name": ["GOOGLE.COM", "google.com"],
"emails": ["[email protected]", "[email protected]"],
"expiration_date": ["Thu, 14 Sep 2028 04:00:00 GMT", "Wed, 13 Sep 2028 07:00:00 GMT"],
"name": null,
"name_servers": ["NS1.GOOGLE.COM", "NS2.GOOGLE.COM", "NS3.GOOGLE.COM", "NS4.GOOGLE.COM", "ns1.google.com", "ns4.google.com", "ns2.google.com", "ns3.google.com"],
"org": "Google LLC",
"referral_url": null,
"registrar": "MarkMonitor, Inc.",
"state": "CA",
"status": ["clientDeleteProhibited https://icann.org/epp#clientDeleteProhibited", "clientTransferProhibited https://icann.org/epp#clientTransferProhibited", "clientUpdateProhibited https://icann.org/epp#clientUpdateProhibited", "serverDeleteProhibited https://icann.org/epp#serverDeleteProhibited", "serverTransferProhibited https://icann.org/epp#serverTransferProhibited", "serverUpdateProhibited https://icann.org/epp#serverUpdateProhibited", "clientUpdateProhibited (https://www.icann.org/epp#clientUpdateProhibited)", "clientTransferProhibited (https://www.icann.org/epp#clientTransferProhibited)", "clientDeleteProhibited (https://www.icann.org/epp#clientDeleteProhibited)", "serverUpdateProhibited (https://www.icann.org/epp#serverUpdateProhibited)", "serverTransferProhibited (https://www.icann.org/epp#serverTransferProhibited)", "serverDeleteProhibited (https://www.icann.org/epp#serverDeleteProhibited)"],
"updated_date": ["Mon, 09 Sep 2019 15:39:04 GMT", "Mon, 09 Sep 2019 15:39:04 GMT"],
"whois_server": "whois.markmonitor.com",
"zipcode": null
}