×

ipv4 v6 api接口

Legend Legend 发表于2022-11-27 10:58:58 浏览448 评论0

抢沙发发表评论

方法

IPV4:

curl 'https://api4.ipify.org?format=json'

返回值:

{"ip":"123.172.54.45"}

IPV6:

curl 'https://api6.ipify.org?format=json'

返回值:

{"ip":"2001:bc8:1200:411:2328:a2ff:fefc:65a6"}

 

ipv4:

http://ip.42.pl/raw