获取号码分析返回结果。
接口说明
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
授权信息
当前API暂无授权信息透出。
请求参数
名称 | 类型 | 必填 | 描述 | 示例值 |
---|---|---|---|---|
AuthCode | string | 是 | 授权码。 说明在号码百科控制台我的申请页面,获取授权ID即授权码。 | QASDW@#** |
InputNumber | string | 是 | 待查询的号码。 | 1310000**** |
NumberType | integer | 否 | 号码类型。取值:
| 0 |
Mask | string | 否 | 号码的加密方式。取值:
| MD5 |
Rate | long | 否 | 号码分数阈值。取值范围:0~100。
注意是否接受指定的分数阈值由服务端决定。当不接受指定分数阈值时,此字段输入的数据无效。
| 10 |
返回参数
状态码原因及解决方案
HttpCode | 返回码 | 描述 | 解决方案 |
---|---|---|---|
200 | OK | 成功。 | 表示接口调用成功。 |
异常原因及解决方案
HttpCode | 错误码 | 描述 | 解决方案 |
---|---|---|---|
400 | MobileNumberIllegal | 手机号非法。 | 若手机号未加密,填入11位正确的数字号码即可;若手机号经MD5加密处理,该字段为32位加密字符串;若手机号经SHA256加密处理,该字段为64位加密字符串。 |
400 | EncyrptTypeIllegal | 加密类型非法。 | 加密方式仅支持NORMAL、MD5、SHA256三种,且必须为大写字符。 |
400 | MobileNumberTypeNotMatch | 手机号码与加密类型不匹配。 | 请您填入正确手机号格式和号码加密类型。 |
400 | AuthCodeNotExist | 授权码不存在或不可用。 | 授权码不存在或授权码未通过审核,请您核实授权码的正确性。 |
400 | TagNotExist | 标签或业务资源不存在。 | 标签不存在或业务资源不存在,请核实标签的可用性。 |
400 | RateIllegal | 阈值参数非法。 | 阈值参数非法,请检查阈值参数是否合规。 |
400 | InvalidParameter | 非法参数。 | 请求参数错误,请检查参数是否正确。 |
400 | System.LimitControl | 流控错误。 | 请将查询频率限制在正常范围内,对于出现该错误码的号码适当进行重查,建议重复查询的次数不要超过3次。 |
500 | SystemError | 系统异常。 | 系统错误,请稍后重试。 |
示例
正常返回示例
JSON
格式
{
"RequestId": "CC3BB6D2-2FDF-4321-9DCE-B38165CE4C47",
"Code": "OK",
"Message": "OK",
"Data": [
{
"Code": "YES",
"Number": "1310000****"
}
]
}
错误码
HTTP status code | 错误码 | 错误信息 | 描述 |
---|---|---|---|
400 | Product.Unsubscript | You have not subscribed to the specified product. | 未订阅该功能 |
400 | Ram.PermissionDeny | You are not authorized to perform the operation. | 权限不足 |
400 | System.LimitControl | The system is under flow control. | 系统限流控制 |
400 | Unknown.ResourceOwnerId | The resource does not belong to the current user. | 资源不属于当前用户 |
400 | MobileNumberIllegal | Wrong format of phone number | 手机号码格式错误 |
400 | EncyrptTypeIllegal | The encryption type of the mobile phone number is illegal | 手机号加密类型非法 |
400 | MobileNumberTypeNotMatch | Phone number and encryption type do not match | - |
400 | CarrierIllegal | Illegal carrier type | 运营商类型非法 |
400 | TagNotExist | Tag or business resource does not exist | - |
400 | TagNotExist | Tag or business resource does not exist. | - |
400 | RateIllegal | Illegal threshold parameter | 阈值参数非法 |
400 | InvalidParameter | invalid parameter | - |
400 | AuthCodeNotExist | The authorization code application failed and cannot be used. | 授权码申请失败,不可使用 |
400 | AuthCodeNotExist | The authorization code does not exist. | 授权码不存在 |
400 | AuthCodeNotExist | The authorization code is being applied and cannot be used. | 授权码申请中,暂不可使用 |
400 | AuthCodeNotExist | The label application form does not exist, please replace the authorization code. | 该标签申请单不存在,请重新更换授权码 |
403 | Permission.NotAuthorized | You are not authorized to perform the operation. | 您没有权限执行此操作 |
500 | InternalError | A system error occurred. | 系统异常 |
500 | SystemError | A system error occurred. | - |
500 | SystemError | An error occurred while processing your request. | 请求过程中出现报错 |
访问错误中心查看更多错误码。