Skip to content
Get geoip information with an API call.
Rust
Branch: master
Clone or download
Latest commit 209744c Aug 26, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
GeoLite2-City
src Revert "Emergency rewrite, close #3" May 20, 2019
.gitattributes Revert "Emergency rewrite, close #3" May 20, 2019
.gitignore
.travis.yml
Cargo.lock Revert "Emergency rewrite, close #3" May 20, 2019
Cargo.toml Fix missing deps in Cargo.toml May 20, 2019
LICENSE
README.md
now.json Revert "Emergency rewrite, close #3" May 20, 2019
package.json Revert "Emergency rewrite, close #3" May 20, 2019

README.md

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
}
You can’t perform that action at this time.