internal/APIs.md
... ...
@@ -2,29 +2,28 @@
2 2
This page can be useful if you are trying to automate something or if you are trying to retrieve data programmatically.
3 3
4 4
## What is my IP
5
-- whatsmyip:
5
+- myip.dn42:
6 6
- ipv4+ipv6: [myip.dn42](http://myip.dn42/)
7 7
- ipv4 only: [v4.myip.dn42](http://v4.myip.dn42/) or [172.20.0.81](http://172.20.0.81)
8 8
- ipv6 only: [v6.myip.dn42](http://v6.myip.dn42/) or [fd42:d42:d42:81::1](http://[fd42:d42:d42:81::1]/)
9
- - Api endpoints:
9
+ - API endpoints:
10 10
- /raw: return your IP address as plain text
11 11
- /api: JSON with your IP plus the details of the server you reached (location, ASN, etc.)
12
- - with geolocation provided by [DN42-Geoip](https://github.com/Xe-iu/dn42-geoip) and autonomous system info provided by [DN42-GeoASN](https://github.com/rdp-studio/dn42-geoasn): [myip.launchpadx.dn42](https://myip.launchpadx.dn42)
12
+- [myip.launchpadx.dn42](https://myip.launchpadx.dn42) with geolocation provided by [DN42-Geoip](https://github.com/Xe-iu/dn42-geoip) and autonomous system info provided by [DN42-GeoASN](https://github.com/rdp-studio/dn42-geoasn)
13
+ - API endpoints:
13 14
- Geolocation API
14
- - API endpoints:
15
- - IPv4: v4.myip.launchpadx.dn42
16
- - IPv6: v6.myip.launchpadx.dn42
17
- - Dual-stack: api.myip.launchpadx.dn42
15
+ - IPv4: v4.myip.launchpadx.dn42
16
+ - IPv6: v6.myip.launchpadx.dn42
17
+ - Dual-stack: api.myip.launchpadx.dn42
18 18
- [API documentation](https://github.com/Xe-iu/dn42-geoip/blob/main/api/README.md)
19 19
- ASN API
20
- - API endpoints:
21
- - IPv4: asn4.myip.launchpadx.dn42
22
- - IPv6: asn6.myip.launchpadx.dn42
23
- - Dual-stack: asn.myip.launchpadx.dn42
24
- - [whatismyip.dn42](http://whatismyip.dn42)
25
- - API endpoint:
26
- - IPv4: [http://ipv4.whatismyip.dn42:8080/ipinfo](http://ipv4.whatismyip.dn42:8080/ipinfo)
27
- - IPv6: [http://ipv6.whatismyip.dn42:8080/ipinfo](http://ipv6.whatismyip.dn42:8080/ipinfo)
20
+ - IPv4: asn4.myip.launchpadx.dn42
21
+ - IPv6: asn6.myip.launchpadx.dn42
22
+ - Dual-stack: asn.myip.launchpadx.dn42
23
+- [whatismyip.dn42](http://whatismyip.dn42)
24
+ - API endpoints:
25
+ - IPv4: [http://ipv4.whatismyip.dn42:8080/ipinfo](http://ipv4.whatismyip.dn42:8080/ipinfo)
26
+ - IPv6: [http://ipv6.whatismyip.dn42:8080/ipinfo](http://ipv6.whatismyip.dn42:8080/ipinfo)
28 27
29 28
30 29
## Other network-related