There are many services on the Internet where we can the external IP address of our machine to find, but these benefits are generally information on ISP or country (or both). So my question is: How can I get this information programmatically for the IP address is there public catalogs or some API to retrieve this information?
Detect ISP (or/and country) by IP Address
There is no catalog or whatsoever to get the IP information of every internet user around the globe. If you have a website and you want to create a list that will contain the IP address and other information of the user visiting the site, you can use TraceMyIP.org. It allows you to add a snippet into your website and that snippet will gather all the information for every visitor that visits the site. See image.
To use this, you need to visit their website, TraceMyIP.org, and then create an account. It’s up to you whether you want a free account or a paid account. A free account lasts for a year and needs to be renewed every year if you still want to use it. You also get to select the design for your tracker which will appear after installing the code into your page. See image.