Socket
Socket
Sign inDemoInstall

IP2Location

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

IP2Location

This is an IP geolocation library that enables the user to find the country, region, city, latitude and longitude, ZIP code, time zone, ISP, domain name, area code, weather info, mobile info, elevation, usage type, address type and IAB category from an IP address. It supports both IPv4 and IPv6 lookup.


Maintainers
1

IP2Location 8.10.3

PyPI PyPI - Downloads PyPI - Python Version

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.

IP2Location BIN Databases

To use this library, you must download the IP2Location BIN database.

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.

Support

Email: support@ip2location.com

URL: https://www.ip2location.com

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc