IP Locator API
IP address API. The output content includes: continent, country, city, longitude and latitude, ASN, ASN affiliated organization, enterprise, whether it is an agent, risk level and other data dimensions. 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
Request Method | Output Format | Character Set |
---|
HTTPS GET/POST | Json | UTF-8 |
Request
Name | Type | Required | Field Description | Remark |
---|
ip | String | yes | IP address | Only supports IPV4 query |
Response
Name | Type | Field Description |
---|
ip | String | IP |
continent | String | Continent name of the IP location |
country | String | Country name |
region | String | Region/State of the IP address |
city | String | City of the IP address |
longitude | String | Longitude value of the IP address |
latitude | String | Latitude value of the IP address |
isp | String | Internet operator name |
is_proxy | String | Whether to proxy |
type | String | IP type (native IP/broadcast IP) |
usage_type | String | IP usage scenarios |
risk_score | String | Risk value |
risk_tag | String | Possible risky behaviors |
asn | String | Autonomous System Number |
as_owner | String | Name of the ASN organization |
as_type | String | ASN Type: ISP, IDC, Education, Government or Business |
as_domain | String | Organization domain name of the ASN |
as_country | String | Country of the ASN |
company | String | Name of the company |
company_domain | String | Domain of the company |
company_type | String | Type of business. E.g. Business, ISP, IDC, Government or Education |
company_country | String | Country of the company |
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",
"continent": "Asia",
"country": "China",
"region": "Jiangsu",
"city": "Nanjing",
"longitude": "118.767413",
"latitude": "32.041544",
"isp": "Shenzhen Tencent Computer Systems Company Limited",
"is_proxy": "false",
"type": "native",
"usage_type": "IDC",
"risk_score": "",
"risk_tag": "",
"asn": "AS45090",
"as_owner": "Shenzhen Tencent Computer Systems Company Limited",
"as_type": "COM",
"as_domain": "tencent.com",
"as_country": "CN",
"company": "Tencent cloud computing (Beijing) Co., Ltd.",
"company_domain": "tencent.com",
"company_type": "COM",
"company_country": "CN"
},
"msg": "success"
}