Don’t be confused anymore! Free API location tool reveals the true identity of IP addresses

In the Internet, IP addresses are like the "house numbers" of every device, hiding many secrets. But many people are confused by it. Today, I will tell you about the free API positioning tool to help you uncover the mystery of IP addresses.


In the past, there were many ways to find the location of users through IP addresses. For example, companies such as Sohu, Taobao and Hacker Alliance all provide IP query services. The advantage of Sohu is that the front end can be used directly without the help of the back end, but the problem is that the data update is too slow and the information is incomplete. Although Taobao also has this service, due to the limit on the number of visits, it is sometimes very unstable and it is like riding a roller coaster to use. As for the query interface of the Hacker Alliance, although the information can be found, the information about the place of origin is confusing.

Here comes the point, there is a good free tool called IP Geolocation API. It can be used to check IP addresses for free, and the information provided is very detailed, including countries, provinces, cities, districts and counties, and even streets. As shown in the figure below:
This tool can also be called through the API, as shown below:

In order to facilitate future calls, you can use Python to write a script to query the location of the IP address. The output is as follows:

This script is very simple to use. You can specify an IP address to query, or directly query the IP address of the current computer.