Invoke the GetNumberLocation API to obtain number location information.
Try it now
Test
RAM authorization
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
Instance ID. |
ccc-test |
| Number |
string |
Yes |
The number to query. |
1312121**** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| Code |
string |
Response code. |
OK |
| HttpStatusCode |
integer |
HTTP status code. |
200 |
| Message |
string |
Response message. |
无 |
| RequestId |
string |
Request ID. |
584AA2E3-9AC4-561B-BC8D-C74BA11B1387 |
| Data |
object |
Data. |
|
| Number |
string |
Number. |
1312121**** |
| City |
string |
City of the number's registration location. |
北京 |
| Province |
string |
Province of the number's registration location. |
北京 |
Examples
Success response
JSON format
{
"Code": "OK",
"HttpStatusCode": 200,
"Message": "无",
"RequestId": "584AA2E3-9AC4-561B-BC8D-C74BA11B1387",
"Data": {
"Number": "1312121****",
"City": "北京",
"Province": "北京"
}
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | Parameter.Blank | The parameter %s may not be null or blank. | |
| 400 | Parameter.Null | The parameter %s may not be null. | |
| 404 | NotExists.InstanceId | The specified instance %s does not exist. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.