
Grok 2 和 Grok 3 使用教程:教你如何获得Grok3的访问权限
import requests
response = requests.get("https://www.ip.cn/api/index?ip=121.8.215.106&type=1")
print(response.json())
{
"rs": 1,
"code": 0,
"address": "中国 广东省 广州市 电信",
"ip": "121.8.215.106",
"isDomain": 0
}
import requests
response = requests.get("https://whois.pconline.com.cn/ipJson.jsp?ip=121.8.215.106&json=true")
print(response.json())
{
"ip": "121.8.215.106",
"pro": "广东省",
"proCode": "440000",
"city": "广州市",
"cityCode": "440100",
"region": "",
"regionCode": "0",
"addr": "广东省广州市 电信",
"regionNames": "",
"err": ""
}
import requests
response = requests.get("https://api.vore.top/api/IPdata?ip=121.8.215.106")
print(response.json())
{
"code": 200,
"msg": "SUCCESS",
"ipinfo": {
"type": "ipv4",
"text": "121.8.215.106",
"cnip": true
},
"ipdata": {
"info1": "广东省",
"info2": "广州市",
"info3": "增城",
"isp": "电信"
},
"adcode": {
"o": "广东省广州市增城 - 电信",
"p": "广东",
"c": "广州",
"n": "广东-广州",
"r": "广东-广州",
"a": "440100",
"i": true
},
"tips": "接口由VORE-API(https:\/\/api.vore.top\/)免费提供",
"time": 1708576755
}
import requests
response = requests.get("https://api.ip.sb/geoip/121.8.215.106")
print(response.json())
{
"organization": "China Telecom",
"longitude": 113.2539,
"city": "Guangzhou",
"timezone": "Asia/Shanghai",
"isp": "China Telecom",
"offset": 28800,
"region": "Guangdong",
"asn": 4134,
"asn_organization": "Chinanet",
"country": "China",
"ip": "121.8.215.106",
"latitude": 23.1181,
"continent_code": "AS",
"country_code": "CN",
"region_code": "GD"
}
import requests
response = requests.get("https://api.ip2location.io/?ip=121.8.215.106")
print(response.json())
{
"ip": "121.8.215.106",
"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",
"is_proxy": true,
"message": "Limit to 500 queries per day. Sign up for a Free plan at https://www.ip2location.io to get 30K queries per month."
}
import requests
response = requests.get("http://httpbin.org/ip")
print(response.json())
{
"origin": "20.249.16.173"
}
import requests
response = requests.get("http://opendata.baidu.com/api.php?co=&resource_id=6006&oe=utf8&query=121.8.215.106")
print(response.json())
{
"status": "0",
"t": "",
"set_cache_time": "",
"data": [
{
"ExtendedLocation": "",
"OriginQuery": "121.8.215.106",
"appinfo": "",
"disp_type": 0,
"fetchkey": "121.8.215.106",
"location": "广东省广州市 电信",
"origip": "121.8.215.106",
"origipquery": "121.8.215.106",
"resourceid": "6006",
"role_id": 0,
"shareImage": 1,
"showLikeShare": 1,
"showlamp": "1",
"titlecont": "IP地址查询",
"tplt": "ip"
}
]
}
import requests
response = requests.get("https://get.geojs.io/v1/ip/geo/121.8.215.106.json")
print(response.json())
{
"country": "China",
"timezone": "Asia/Shanghai",
"ip": "121.8.215.106",
"organization": "AS4134 Chinanet",
"asn": 4134,
"area_code": "0",
"organization_name": "Chinanet",
"country_code": "CN",
"country_code3": "CHN",
"continent_code": "AS",
"latitude": "23.1181",
"region": "Guangdong",
"city": "Guangzhou",
"longitude": "113.2539",
"accuracy": 1000
}
import requests
response = requests.get("https://ipinfo.io/widget/demo/121.8.215.106")
print(response.json())
{
"input": "121.8.215.106",
"data": {
"ip": "121.8.215.106",
"city": "Shenzhen",
"region": "Guangdong",
"country": "CN",
"loc": "22.5455,114.0683",
"org": "AS4134 CHINANET-BACKBONE",
"timezone": "Asia/Shanghai",
"asn": {
"asn": "AS4134",
"name": "CHINANET-BACKBONE",
"domain": "chinatelecom.com.cn",
"route": "121.8.0.0/13",
"type": "isp"
},
"company": {
"name": "CHINANET Guangdong province network",
"domain": "chinatelecom.cn",
"type": "isp"
},
"privacy": {
"vpn": false,
"proxy": false,
"tor": false,
"relay": false,
"hosting": false,
"service": ""
},
"abuse": {
"address": "No.31 ,jingrong street,beijing, 100032",
"country": "CN",
"email": "anti-spam@chinatelecom.cn",
"name": "ABUSE CHINANETCN",
"network": "121.8.0.0/13",
"phone": "+000000000"
}
}
}
import requests
response = requests.get("https://ipapi.com/ip_api.php?ip=121.8.215.106")
print(response.json())
{
"ip": "121.8.215.106",
"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",
"is_proxy": true,
"message": "Limit to 500 queries per day. Sign up for a Free plan at https://www.ip2location.io to get 30K queries per month."
}