Free IP lookup service
A simple and free service for resolving user IP address without the need for your own backend server.
The endpoint:
https://iplookup.openjavascript.info
Response:
{
"ip": "192.158.1.38",
"about": {
"appType": "Node.js v18.9.1",
"hostedBy_HostWithLove": "https://bit.ly/3V2RM9Q"
},
"support": "https://www.buymeacoffee.com/openjavascript"
}
Example request with fetch:
fetch('https://iplookup.openjavascript.info')
.then(res => res.json())
.then(data => {
console.log(data.ip); // 192.158.1.38
})
No user data is saved on our server.