IP address location API interface
Locating query based on IP address.
1. Product function
- Provide accurate and efficient IP address location query;
- The returned IP location address contains detailed location information;
- Full interface supports HTTPS (TLS v1.0 / v1.1 / v1.2 / v1.3);
- Fully compatible with Apple ATS;
- National multi-node CDN deployment;
- The interface responds quickly, and multiple servers build API interface load balancing.
2. API documentation
API details address: https://www.gugudata.com/api/details/iplocation
Interface request address: https://api.gugudata.com/websitetools/iplocation
Return format: application/json; charset=utf-8
Request method: GET
Request protocol: HTTPS
Request example: https://api.gugudata.com/websitetools/iplocation?appkey=YOUR_APPKEY&ip=YOUR_VALUE
Interface test: https://api.gugudata.com/websitetools/iplocation/demo
3. Request parameters (if it is a POST request, the parameters are passed in JSON format)
parameter name | Parameter Type | Do you have to | Defaults | Remarks |
---|---|---|---|---|
appkey | string | Yes | YOUR_APPKEY | APPKEY obtained after payment |
ip | string | Yes | YOUR_VALUE | IP address |
4. Return parameters
parameter name | Parameter Type | Remarks |
---|---|---|
DataStatus.StatusCode | int | Interface return status code |
DataStatus.StatusDescription | string | Interface return status description |
DataStatus.ResponseDateTime | string | Interface data return time |
DataStatus.DataTotalCount | int | The total amount of data under this condition, generally used for paging calculations |
Data.Country | string | Location by IP address |
Data.Address | string | IP address specific location address |
5. Interface response status code
error code | Error content | Remarks |
---|---|---|
100 | Normal return | |
101 | Parameter error | |
102 | Limited request frequency | No more than 100 requests per second |
103 | Account arrears | |
104 | APPKEY error | Please check whether the passed APPKEY is the value obtained by the developer center |
110 | Interface response error |
6. Develop sample code for language request
Development languages included in the sample code: C#, Go, Java, jQuery, Node.js, Objective-C, PHP, Python, Ruby, Swift, etc. Other languages can be implemented by corresponding RESTful API requests.
Cuckoo Data, a professional data provider, provides professional and comprehensive data interfaces and business data analysis, making data your raw materials for production.
Cuckoo Data is based on the massive data support we have provided for corporate customers over the past five years. It abstracts some general data and general functions into product-level APIs, which greatly meets the user’s needs for basic data in the product development process and reduces the cost of complex functions. Realize the threshold and labor cost.
In addition to the classified data and interfaces that we have opened, there is also a huge amount of data that is being sorted, cleaned, integrated, and constructed. Later, more data and cloud functional interfaces will be opened for users to use.
Currently open data interface API
-
[Area/Coordinates] Basic information of universities and colleges across the country
-
[Area/Coordinates] Geographical coordinate system conversion
-
[Metadata/Dictionary] Provincial admission scores for college entrance examinations over the years
-
[Metadata/Dictionary] Admission scores for college entrance examinations over the years
-
[News/Information] Software development technology blog post headlines
-
[News/Information] Get the cover of the official account article
-
[Text/Text] Standardization of Chinese and English typesetting