电话号码抽取
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
请求参数
名称 | 类型 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|
Action | String | 是 | ExtractPhone |
系统规定参数。取值:ExtractPhone。 |
AppKey | String | 是 | Axqwerasdf1a |
项目AppKey |
ServiceCode | String | 是 | addrp |
固定值:addrp |
Text | String | 是 | 文一西路969号13333333333 |
文本内容 |
DefaultProvince | String | 否 | 浙江省 |
默认省份 |
DefaultCity | String | 否 | 杭州市 |
默认城市 |
DefaultDistrict | String | 否 | 余杭区 |
默认行政区 |
返回数据
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
Data | String | {"phone_extract":[{"start":8,"end":19,"type":"TEL","word":"13333333333"}],"time_used":{"rt":{"phone_extract":"0.014524221420288086"},"start":"1589800189.9369104"},"status":"OK"} | |
RequestId | String | A602539D-A298-4643-A268-94F0B893C12F |
示例
请求示例
http(s)://[Endpoint]/?Action=ExtractPhone
&AppKey=Axqwerasdf1a
&ServiceCode=addrp
&Text=文一西路969号13333333333
&<公共请求参数>
正常返回示例
XML
格式
<RequestId>A602539D-A298-4643-A268-94F0B893C12F</RequestId>
<Data>
<phone_extract>
<start>8</start>
<end>19</end>
<type>TEL</type>
<word>13333333333</word>
</phone_extract>
<time_used>
<rt>
<phone_extract>0.014524221420288086</phone_extract>
</rt>
<start>1589800189.9369104</start>
</time_used>
<status>OK</status>
</Data>
JSON
格式
{
"RequestId": "A602539D-A298-4643-A268-94F0B893C12F",
"Data": {
"phone_extract": [
{
"start": 8,
"end": 19,
"type": "TEL",
"word": "13333333333"
}
],
"time_used": {
"rt": {
"phone_extract": "0.014524221420288086"
},
"start": "1589800189.9369104"
},
"status": "OK"
}
}
错误码
HttpCode | 错误码 | 错误信息 | 描述 |
---|---|---|---|
403 | Forbidden.NoAuth | Failed to perform user authentication. | 用户鉴权失败 |
500 | InternalError | A service error occurred. | 服务内部异常 |
400 | InvalidParameter | The parameter is invalid. | 参数无效 |
404 | ResourceDoesNotExist | The resource does not exist. | 资源不存在 |
429 | Throttling.User | Flow control has been triggered. | 触发流控 |
400 | UserStatusInvalid | The user status is invalid. | 用户状态无效 |
访问错误中心查看更多错误码。
在文档使用中是否遇到以下问题
更多建议
匿名提交