Skip to content
This repository was 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

Folders and files

NameName
Last commit message
Last commit date

Latest commit

209744c · Aug 26, 2019

History

37 Commits
May 20, 2019
May 20, 2019
May 20, 2019
Jul 15, 2019
May 20, 2019
May 20, 2019
May 20, 2019
Mar 31, 2019
Aug 26, 2019
May 20, 2019
May 20, 2019

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
}