Javascript is required

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 MethodOutput FormatCharacter Set
HTTPS GET/POSTJsonUTF-8

Request

NameTypeRequiredField DescriptionRemark
ipStringyesIP addressOnly supports IPV4 query

Response

NameTypeField Description
ipStringIP
continentStringContinent name of the IP location
countryStringCountry name
regionStringRegion/State of the IP address
cityStringCity of the IP address
longitudeStringLongitude value of the IP address
latitudeStringLatitude value of the IP address
ispStringInternet operator name
is_proxyStringWhether to proxy
typeStringIP type (native IP/broadcast IP)
usage_typeStringIP usage scenarios
risk_scoreStringRisk value
risk_tagStringPossible risky behaviors
asnStringAutonomous System Number
as_ownerStringName of the ASN organization
as_typeStringASN Type: ISP, IDC, Education, Government or Business
as_domainStringOrganization domain name of the ASN
as_countryStringCountry of the ASN
companyStringName of the company
company_domainStringDomain of the company
company_typeStringType of business. E.g. Business, ISP, IDC, Government or Education
company_countryStringCountry of the company

Response Codes & Messages

codemessageDescription
200successSuccessfully processed the request.
500Bad RequestFailed 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"
}