The IPGeo repository on GitHub is an pre-coded example of the usage of our IPGeoSearch library based on the IP geolocation API found on Our Webpage.
Feel Free to check out the IPGeoSearch library on GitHub for more information and ways to use our API!
We offer a 5 day free trial for our API on Our Webpage. To get the free trial API Key, contact our Lab and we will send it.
Before running on your local computer, make sure you have python 3.6+ with the latest version of pandas and IPGeoSearch installed, your API Key, and ipList.txt in the same folder as the python file.
To Install Pandas, run
pip install pandasTo Install IPGeoSearch, run
pip install IPGeoSearchRequest.txt should be formatted in one IP address per line like such:
8.8.8.8
8.8.8.8
8.8.8.8
8.8.8.8
8.8.8.8The results folder will have all the .json and .csv files stored in it after running.
To query IP using our sample file, run
python request.pyin your command prompt environment with the pandas installed.
Files named x.x.x.x.csv and x.x.x.x.json are saved which have the relevant information regarding your IP Search. Files are named with the IP in the file Name. An example csv for a search of Google's IP 8.8.8.8 would be named 8.8.8.8.csv.