JSON IP
Example (JSON) : https://myipip.net/ (IPv4 & IPv6) or curl myipip.net
Example (JSON) : https://myipip.cn/ (IPv4 & IPv6) or curl myipip.cn
Example (JSON) : https://myipv4.cn/ (Only IPv4) or curl myipv4.cn
Example (JSON) : https://myipv6.cn/ (Only IPv6) or curl myipv6.cn
JSON Output Schema
- ip (Visitor IP address)
- country (Two-letter ISO 3166-1 alpha-2 country code)
Output example
The following example use LSHIY server
{"ip":"2404:f4c0:300::1","country":"US"}
Curl example
The following example use LSHIY server
[[email protected] ~]# curl myipv4.cn
{"ip":"103.149.144.1","country":"US"}
[[email protected] ~]# curl myipv6.cn
{"ip":"2404:f4c0::1","country":"US"}
Acknowledgment
Hosted on Cloudflare.
© 著作权归作者所有
文章评论(0)