Queries information about geographic locations.
Try it now
Test
RAM authorization
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| SourceIp |
string |
No |
The source IP address of the visitor. |
180.169.141.XXX |
| Lang |
string |
No |
The language of the response. Valid values:
|
zh |
| Lang |
string |
No |
The language of the response. Valid values:
|
zh |
| SourceCode |
string |
Yes |
The source tracking code. |
yundun |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The ID of the request. |
CD3BE433-FAB0-55D8-918A-69B306**** |
| CnCount |
integer |
The number of regions in China. |
340 |
| OverseasCount |
integer |
The number of regions outside China. |
238 |
| OverseasList |
array<object> |
The list of regions outside China. |
|
|
object |
The list of regions outside China. |
||
| LocId |
string |
The ID of the region. |
US |
| LocName |
string |
The name of the region. |
美国 |
| CnList |
array<object> |
The list of regions in China. |
|
|
object |
The list of regions in China. |
||
| LocId |
string |
The ID of the region. |
3301 |
| LocName |
string |
The name of the region. |
杭州市 |
| CnProvinceList |
array<object> |
The information about provinces and cities in China. |
|
|
array<object> |
The information about provinces and cities in China. |
||
| ProvinceName |
string |
The name of the province. |
浙江 |
| Cities |
array<object> |
The list of city codes. |
|
|
object |
The list of city codes. |
||
| LocId |
string |
The ID of the region. |
123 |
| LocName |
string |
The name of the region. |
杭州。 |
Examples
Success response
JSON format
{
"RequestId": "CD3BE433-FAB0-55D8-918A-69B306****",
"CnCount": 340,
"OverseasCount": 238,
"OverseasList": [
{
"LocId": "US",
"LocName": "美国"
}
],
"CnList": [
{
"LocId": "3301",
"LocName": "杭州市"
}
],
"CnProvinceList": [
{
"ProvinceName": "浙江",
"Cities": [
{
"LocId": "123",
"LocName": "杭州。"
}
]
}
]
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | ErrorMarshalJSON | internal error. | Internal error. |
| 400 | ErrorSourceCodeError | The source code is invalid. | The source code is invalid. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.