Country to city
Country, province, city and timezone are returned together, with ISO-style country and province codes for programmatic use.
Paste an IPv4 or IPv6 address and get its country, province, city, ISP, coordinates and timezone in one response. The same data is available through a small JSON API.
The API returns a stable envelope with code, message and data. The fields are the same ones shown on the query page.
curl -s https://ipregion.litelake.cn/api/ip/lookup \
-H "Content-Type: application/json" \
-d '{"ip":"8.8.8.8"}'