curl "https://www.ip.cn/api/index?ip=&type=0"
或者用下面的接口
curl "https://qifu-api.baidubce.com/ip/local/geo/v1/district"
或者用我自建的接口
curl "https://chenlungang.com/ip"
你当前的IP地址为:
若要查询指定的IP, 可用下面的接口
curl https://qifu-api.baidubce.com/ip/geo/v1/district?ip=要查询的IP