https://github.com/chrislim2888/ip2location-python
This module is a Python Library that enables the user to find the country, region, city, coordinates, zip code, ISP, domain name, timezone, connection speed, IDD code, area code, weather station code, weather station name, mobile, usage types, address type and IAB category that any IP address or host name originates from.
https://github.com/chrislim2888/ip2location-python
city country geolocation ip-address ip-location ip2location ip2location-python iplocation ipv4 ipv6 isp python python-library region
Last synced: 5 months ago
JSON representation
This module is a Python Library that enables the user to find the country, region, city, coordinates, zip code, ISP, domain name, timezone, connection speed, IDD code, area code, weather station code, weather station name, mobile, usage types, address type and IAB category that any IP address or host name originates from.
- Host: GitHub
- URL: https://github.com/chrislim2888/ip2location-python
- Owner: chrislim2888
- License: mit
- Created: 2013-04-29T06:56:58.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2025-02-21T06:11:25.000Z (8 months ago)
- Last Synced: 2025-05-15T13:08:53.118Z (5 months ago)
- Topics: city, country, geolocation, ip-address, ip-location, ip2location, ip2location-python, iplocation, ipv4, ipv6, isp, python, python-library, region
- Language: Python
- Homepage: https://www.ip2location.com
- Size: 6.56 MB
- Stars: 149
- Watchers: 11
- Forks: 45
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: ChangeLog
- License: LICENSE.TXT
- Authors: AUTHORS
Awesome Lists containing this project
README
# IP2Location Python Library


This is a IP2Location Python library that enables the user to find the country, region or state, city, latitude and longitude, ZIP code, time zone, Internet Service Provider (ISP) or company name, domain name, net speed, area code, weather station code, weather station name, mobile country code (MCC), mobile network code (MNC) and carrier brand, elevation, usage type, address type and IAB category by IP address or hostname originates from.
This library reads geo-location information from the **IP2Location BIN database** file and supports lookup for both IPv4 and IPv6 addresses.
# Developer Documentation
To learn more about installation, usage, and code examples, please visit the developer documentation at [https://ip2location-python.readthedocs.io/en/latest/index.html](https://ip2location-python.readthedocs.io/en/latest/index.html).
# IP2Location BIN Databases
To use this library, you must download the IP2Location BIN database.
- Download Free IP2Location LITE databases at [https://lite.ip2location.com](https://lite.ip2location.com/)
- Download IP2Location commercial databases at [https://www.ip2location.com](https://www.ip2location.com/developers)# IPv4 versus IPv6 BIN Database
Below are general guidelines for determining whether to use the IPv4 BIN database or the IPv6 BIN database.
- Use the IPv4 BIN database if you just need to query for IPv4 addresses.
- Use the IPv6 BIN database if you need to query for both IPv4 and IPv6 addresses.# SDK or Library for Other Programming Languages
To learn about other readily available SDKs or libraries for different programming languages, please visit [https://www.ip2location.com/development-libraries](https://www.ip2location.com/development-libraries).
# Support
Email: [support@ip2location.com](mailto:support@ip2location.com)
URL: [https://www.ip2location.com](https://www.ip2location.com/)