目前已知是百度开放出来的号码归属地查询服务。
还不知道有没有调用次数限制
API:http://mobsec-dianhua.baidu.com/dianhua_api/open/location?tel=
参数:tel 字符串,支持多个号码,中间用半角逗号隔开
目前已知支持的号码参数类型
手机号,例如 15911112222
0086+手机号,例如:008615911112222
0086 + "-" + 手机号,例如 0086-15911112222
区号+固话,例如:01022334455
区号 + "-" + 固话,例如 010-12345678
返回的结果:response 和 responseHeader
response是一个Map类型,key为格式化后的号码,val为对应的数据
例如:tel=0086-15910675022
{
"response": {
"15910675022": {
"detail": {
"area": [
{
"city": "北京"
}
],
"province": "北京",
"type": "domestic",
"operator": "移动"
},
"location": "北京北京移动"
}
},
"responseHeader": {
"status": 200,
"time": 1543388584762,
"version": "1.1.0"
}
}
tel=01012345678
{
"response": {
"01012345678": {
"detail": {
"area": [
{
"city": "北京",
"district": [
"朝阳",
"海淀"
]
}
],
"province": "北京",
"type": "domestic"
},
"location": "北京北京"
}
},
"responseHeader": {
"status": 200,
"time": 1543388753694,
"version": "1.1.0"
}
}
tel=01012345678,15910572233
{
"response": {
"15910572233": {
"detail": {
"area": [
{
"city": "北京"
}
],
"province": "北京",
"type": "domestic",
"operator": "移动"
},
"location": "北京北京移动"
},
"01012345678": {
"detail": {
"area": [
{
"city": "北京",
"district": [
"朝阳",
"海淀"
]
}
],
"province": "北京",
"type": "domestic"
},
"location": "北京北京"
}
},
"responseHeader": {
"status": 200,
"time": 1543388826589,
"version": "1.1.0"
}
}