-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
README.txt
34 lines (28 loc) · 1.04 KB
/
README.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
ip.chuhlomin.com is a service for finding information about IP addresses.
It uses:
* GeoLite2 databases for ASN and GeoIP lookups,
* whois.iana.org for Whois queries.
Available endpoints:
/help - this page
/ - index page, redirects to /{ip}, where {ip} is your IP address
/{ip} - returns information about the IP address: ASN and GeoIP
/whois - redirects to /{ip}/whois if IP is known, otherwise returns 404
/{ip}/whois - returns the Whois information for the IP address
/{ip}/{mask} - displays the IP in binary format, visualizing the mask
Example usage:
curl -L https://ip.chuhlomin.com/
curl https://ip.chuhlomin.com/1.1.1.1
curl https://ip.chuhlomin.com/1.1.1.1/whois
curl https://ip.chuhlomin.com/192.168.0.0/24
curl -s https://ip.chuhlomin.com/1.1.1.1.json | jq -r '.asn.number'
Version: 1.0.0
Source code: https://github.com/chuhlomin/ip
Author: Constantine Chukhlomin
License: MIT
---
Known alternatives:
https://ip.me
https://ifconfig.co
https://httpbin.org/ip
https://ipinfo.io
https://whatismyipaddress.com