IP interface query Http://api.apidatas.com/ip/doc
Interface Description
The IP address location is called. this interface is not pure data and is not comparable to any other data on the market, but... it cannot be completely 100% accurate !!! Unlimited calls are available !!!
Interface address Http://api.apidatas.com/ip/ Interface parameters Http://api.apidatas.com/ip/127.0.0.1 Http://api.apidatas.com/ip? Ip = 127.0.0.1 Interface Type Http://api.apidatas.com/ip/127.0.0.1/json Http://api.apidatas.com/ip/127.0.0.1/js The interface is in JSON format by default (XML format not provided currently) If you want to use JS calls to display IP addresses, we suggest:
Returned data If the name return type is null, 0 is returned. Country string country or IANA (computer reserved address) is null, 0 is returned Area string region: East China, Central China, east China... if it is null, 0 is returned. Region string province: Beijing, Shanghai, Shandong... if it is null, 0 is returned. City string city: Hangzhou, Wuxi, Laiwu... if it is null, 0 is returned. County string if the county magistrate is null, 0 is returned. Isp string operator: if China Telecom or China Unicom is empty, 0 is returned. Error code Name error code description State 10000 IP input error
- // Return JSON data
- {"Country": "IANA", "area": "0", "region": "0", "city": "0", "county ": "0", "isp": "0 "}
- // Return JS code
- Var API_IP = ["country": "\ u4fc4 \ u7f57 \ u65af", "area": "0", "region": "0", "city ": "0", "county": "0", "isp": "0"];
|