用
ip2location.io 就可以了。
{
"ip": "116.23.174.1",
"country_code": "CN",
"country_name": "China",
"region_name": "Guangdong",
"city_name": "Guangzhou",
"latitude": 23.127361,
"longitude": 113.26457,
"zip_code": "510140",
"time_zone": "+08:00",
"asn": "4134",
"as": "Asia Pacific Network Information Centre",
"isp": "ChinaNet Guangdong Province Network",
"domain": "
chinatelecom.com.cn",
"net_speed": "DSL",
"idd_code": "86",
"area_code": "020",
"weather_station_code": "CHXX0037",
"weather_station_name": "Guangzhou",
"mcc": "460",
"mnc": "03/11",
"mobile_brand": "China Telecom",
"elevation": 11,
"usage_type": "ISP/MOB",
"address_type": "Unicast",
"continent": {
"name": "Asia",
"code": "AS",
"hemisphere": [
"north",
"east"
],
"translation": {
"lang": "en",
"value": "Asia"
}
},
"district": "-",
"country": {
"name": "China",
"alpha3_code": "CHN",
"numeric_code": 156,
"demonym": "Chinese",
"flag": "
https://cdn.ip2location.io/assets/img/flags/cn.png",
"capital": "Beijing",
"total_area": 9596961,
"population": 1439323776,
"currency": {
"code": "CNY",
"name": "Chinese Yuan Renminbi",
"symbol": "\u00a5"
},
"language": {
"code": "ZH",
"name": "Chinese"
},
"tld": "cn",
"translation": {
"lang": "en",
"value": "China"
}
},
"region": {
"name": "Guangdong",
"code": "CN-GD",
"translation": {
"lang": "en",
"value": "Guangdong"
}
},
"city": {
"name": "Guangzhou",
"translation": {
"lang": null,
"value": null
}
},
"time_zone_info": {
"olson": "Asia/Shanghai",
"current_time": "2023-05-26T10:29:54+08:00",
"gmt_offset": 28800,
"is_dst": false,
"sunrise": "05:42",
"sunset": "19:05"
},
"geotargeting": {
"metro": "-"
},
"ads_category": "IAB19-18",
"ads_category_name": "Internet Technology",
"is_proxy": false,
"proxy": {
"last_seen": 0,
"proxy_type": "-",
"threat": "-",
"provider": "-"
}
}