Skip to content
This repository has been archived by the owner on Jan 10, 2020. It is now read-only.
/ ipapi Public archive

Get geoip information with an API call.

License

Notifications You must be signed in to change notification settings

GitSquared/ipapi

Repository files navigation

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
}