/ipapi

Get geoip information with an API call.

Primary LanguageRustDo What The F*ck You Want To Public LicenseWTFPL

IPapi

Note: This API is no longer publicly hosted. You're welcome to run it yourself.


Latest version License

A simple API to get an IP address approximative lat/lon geographic coordinates programmatically. Written in Rust.

warning: this repository makes use of Git LFS to keep track of the geoip database file.

Example:

Request: curl http://<endpoint>/125.45.67.18

Response:

{
  "api_version": "3.0.0",
  "geo": {
    "latitude": 34.6836,
    "longitude": 113.5325,
    "time_zone": "Asia/Shanghai"
  },
  "ip": "125.45.67.18",
  "time": 1544969827
}