🍺 BREW Explorer

← all formulae

ip2location

brew install ip2location v8.7.0 MIT

C library and CLI to geolocate IP addresses

45
30-day installs · #4905
45
90-day · #7623
45
365-day · #11355
85
★ GitHub stars · updated 2mo ago

Build dependencies

GitHub topics

c geolocation ip-address ip-database ip-geolocation ip-lookup ip2location

Links

Raw metadata
{
  "aliases": [],
  "alternatives": [],
  "build_dependencies": [
    "autoconf",
    "automake",
    "libtool"
  ],
  "categories": [],
  "caveats": null,
  "conflicts_with": [],
  "dependencies": [],
  "deprecated": 0,
  "deprecation_reason": null,
  "desc": "C library and CLI to geolocate IP addresses",
  "disable_reason": null,
  "disabled": 0,
  "enrichment_fetched_at": "2026-06-20T23:38:53+00:00",
  "first_seen": "2026-06-20T23:34:18+00:00",
  "full_name": "ip2location",
  "github_default_branch": "master",
  "github_last_commit_at": "2026-06-18T01:49:44Z",
  "github_readme_excerpt": "# IP2Location C Library\n\nIP2Location 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\nfrom **IP2Location BIN data** file.\n\nIn 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.\nSupported IPv4 and IPv6 address.\n\nFor more details, please visit:\n[https://www.ip2location.com/developers/c](https://www.ip2location.com/developers/c)\n\n# Developer Documentation\nTo learn more about installation, usage, and code examples, please visit the developer documentation at [https://ip2location-c-library.readthedocs.io/en/latest/index.html.](https://ip2location-c-library.readthedocs.io/en/latest/index.html)\n# Installation\n\nPlease refer to the [installation section](https://ip2location-c-library.readthedocs.io/en/latest/quickstart.html#installation) in our documentation for instruction on how to install in various platform.\n\n# Sample BIN Databases\n* Download free IP2Location LITE databases at [https://lite.ip2location.com](https://lite.ip2location.com)  \n* Download IP2Location sample databases at [https://www.ip2location.com/developers](https://www.ip2location.com/developers)\n\n# IPv4 BIN vs IPv6 BIN\n* Use the IPv4 BIN file if you just need to query IPv4 addresses.\n* Use the IPv6 BIN file if you need to query BOTH IPv4 and IPv6 addresses.\n\n# NOTES\nIf you encountered **error while loading shared libraries** in linux platform, that could be due to the shared library was sav",
  "github_repo": "ip2location/IP2Location-C-Library",
  "github_stars": 85,
  "github_topics": [
    "c",
    "geolocation",
    "ip-address",
    "ip-database",
    "ip-geolocation",
    "ip-lookup",
    "ip2location"
  ],
  "homepage": "https://github.com/ip2location/IP2Location-C-Library",
  "homepage_og_description": null,
  "homepage_og_image": null,
  "homepage_title": null,
  "installs_30d": 45,
  "installs_365d": 45,
  "installs_90d": 45,
  "keg_only": 0,
  "keg_only_reason": null,
  "last_seen": "2026-06-20T23:34:18+00:00",
  "license": "MIT",
  "llm_generated_at": null,
  "llm_model": null,
  "name": "ip2location",
  "oldnames": [],
  "one_liner": null,
  "optional_dependencies": [],
  "rank_30d": 4905,
  "rank_365d": 11355,
  "rank_90d": 7623,
  "raw_hash": "e77963c79f879677",
  "recommended_dependencies": [],
  "revision": 0,
  "ruby_source_path": "Formula/i/ip2location.rb",
  "tap": "homebrew/core",
  "test_dependencies": [],
  "uses_from_macos": [
    {
      "perl": "build"
    }
  ],
  "version_head": "HEAD",
  "version_stable": "8.7.0",
  "versioned_formulae": [],
  "why_use_this": null
}