IP2Location C Library

IP2Location C Library#

IP2Location is a C library that enables the user to find the country, region or state, district, city, latitude and longitude, ZIP/Postal 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, IAB category and ASN by IP address or hostname originates from. The library reads the geo location information from IP2Location BIN data file.

In addition to the C Library, the build process will also create an executable called “ip2location” that allows you to directly perform IP geolocation lookups. Please refer to the ip2location CLI documentation for more information. Supported IPv4 and IPv6 address.

For more details, please visit: https://www.ip2location.com/developers/c

Table of contents#