IP Locator API
IP Locator API helps websites analyze access sources, monitor network security, recommend personalized content, etc. by returning data such as the geographic location, operator, and organization of the IP address, assisting developers in implementing related functions.
Interface description
IP address call interface. Output content is: continent, country, city, city code, ISP, longitude and latitude, whether it is a proxy, risk level, application scenario, ASN, IP type, ASN owner, affiliated organization, second dial probability, risk type. If you need other data services, please contact us.
API address
API address: https://api.iping.cc/v1/query?ip=XX.XX.XX.XX&language=en
Request method | Output Format | Character Set |
---|
HTTPS GET/POST | Json | UTF-8 |
Request
Name | Type | Required |
---|
ip | String | yes |
Response
Name | Type |
---|
version | String |
continent | String |
country | String |
province | String |
city | String |
longitude | String |
latitude | String |
isp | String |
proxy | String |
mb_rate | String |
state | String |
asn | String |
asn_owner | String |
usage_type | String |
risk_score | String |
risk_level | String |
Response Codes & Messages
code | message | Description |
---|
200 | success | Successfully processed the request. |
500 | Bad Request | Failed to complete the request. |
API example
{
"code": 200,
"data": {
"ip": "1.13.14.76",
"version": "V4",
"continent": "Asia",
"country": "China",
"province": "Jiangsu",
"city": "Nanjing",
"isp": "Shenzhen Tencent Computer Systems Company Limited",
"longitude": "118.767413",
"latitude": "32.041544",
"asn": "AS45090",
"asn_owner": "TENCENT-NET-AP",
"risk_score": "0",
"tags_str": "",
"usage_type": "Data Center/Web Hosting/Transit",
"is_proxy": "false",
"second_dial": "0.00%",
"organize": "Shenzhen Tencent Computer Systems Company Limited",
"state": "native"
},
"msg": "success"
}