Skip to content

Latest commit

 

History

History
58 lines (44 loc) · 1.34 KB

README.md

File metadata and controls

58 lines (44 loc) · 1.34 KB

IP database REST API

Open Source REST API for IP database, includes qqwry, ipipdotnet.

Docker

Run container

docker run -d -p 80:80 ghcr.io/metowolf/ipdb-api/server:1.3.0

Mount Bucket Path

docker run -d -p 80:80 -v /tmp/openipdb:/tmp/openipdb ghcr.io/metowolf/ipdb-api/server:1.3.0

Usage

FOSSA Status

GET http://localhost:3000/v1/qqwry/119.29.29.29
{
  "ip": "119.29.29.29",
  "country_name": "中国",
  "region_name": "广东",
  "city_name": "广州",
  "owner_domain": "cloud.tencent.com",
  "isp_domain": ""
}
GET http://localhost:3000/v1/qqwry/me
{
  "ip": "127.0.0.1",
  "country_name": "本机地址",
  "region_name": "本机地址",
  "city_name": "",
  "owner_domain": "",
  "isp_domain": ""
}

License

FOSSA Status