IP Lookup Bookmarklet that calls a REST API to fetch geolocation details for a given IP address

I found a neat bookmarklet that calls a REST API to fetch geolocation details for a given IP address. The original source used an external service that serves JSON output over HTTP only. 

As Chrome is more stringent about mixed content, the HTTP call was blocked and the desired output wasn't achieved.

I changed just one line of the bookmarklet code to use the IPAPI lookup service to get it working again.

Drag this link to the Bookmarks bar or Favorites bar in Chrome or Edge - IP Lookup

To view geolocation details, selecting an IP address on any web page & then click on the bookmarklet or provide the IP address through prompt box that shows up.

0 Comments