Last Updated on : 2023-06-20 12:39:05download
Get the geo-location by IP address.
GET: /v1.0/iot-03/locations/ip
Parameter name | Type | IN | Required | Description |
---|---|---|---|---|
ip | String | query | true | The IP address. |
Parameter name | Type | Description |
---|---|---|
result | LocationResultDTO | The returned result. |
Description of result
Parameter name | Type | Description |
---|---|---|
country_code | String | The country code. |
national_number | String | The country number. |
longitude | String | The longitude. Valid values: -180 to 180. |
latitude | String | The latitude. Valid values: -90 to 90. |
continent_code | String | The continent code. |
GET: /v1.0/iot-03/locations/ip?ip=1.1.1.1
{}
{
"latitude": "39.90469",
"nationalNumber": "86",
"countryCode": "CN",
"continentCode": "AS",
"longitude": "116.40717"
}
For more information, see error code.
Is this page helpful?
YesFeedbackIs this page helpful?
YesFeedback