Show the caller's IP address
curl --request GET \
--url https://my.server.express/api/v1/public/my-ipconst options = {method: 'GET'};
fetch('https://my.server.express/api/v1/public/my-ip', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://my.server.express/api/v1/public/my-ip"
response = requests.get(url)
print(response.text){
"success": true,
"data": {
"ip": "<string>",
"version": 4,
"reverse": "<string>",
"network": {
"asn": "<string>",
"holder": "<string>",
"country": "<string>",
"range": "<string>",
"registry": "<string>"
},
"via": "<string>"
}
}{
"success": false,
"error": "<string>"
}{
"success": false,
"error": "<string>"
}Public Tools
Show the caller's IP address
Your own address as the API sees it, its reverse DNS, and what the regional registry says about the network it sits in. Network details are cached per /24 (or /48 for IPv6), never per address, and nothing is stored. network is null if the registry lookup fails. Limited to 60 requests per minute per IP.
GET
/
v1
/
public
/
my-ip
Show the caller's IP address
curl --request GET \
--url https://my.server.express/api/v1/public/my-ipconst options = {method: 'GET'};
fetch('https://my.server.express/api/v1/public/my-ip', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://my.server.express/api/v1/public/my-ip"
response = requests.get(url)
print(response.text){
"success": true,
"data": {
"ip": "<string>",
"version": 4,
"reverse": "<string>",
"network": {
"asn": "<string>",
"holder": "<string>",
"country": "<string>",
"range": "<string>",
"registry": "<string>"
},
"via": "<string>"
}
}{
"success": false,
"error": "<string>"
}{
"success": false,
"error": "<string>"
}