Query the attribution of the mobile phone number and the operator interface (verify availability)
Received the demand today, need to inquire the place of belonging according to the mobile phone number, and find several good interfaces on the Internet. To brothers who have the same needs.
The interface parameters can be understood as well as the contents, so I won't repeat them.
Taobao interface
Interface address:
Http://tcc.taobao.com/cc/json/mobile_tel_segment.htm?tel=18519101034
Return content:
_ _ GetZoneResult_ = {mts:'1851910', province:' Beijing', catName:' China Unicom', telString:'18519101034', areaVid:'29400', ispVid:'137815084', carrier:' Beijing Unicom'}
Note: the content returned by the API is not json. You can delete "_ GetZoneResult =" and convert it to json.
360 interface
Interface address:
Https://cx.shouji.360.cn/phonearea.php?number=18519101034
Return content:
{"code": 0, "data": {"province": "Beijing", "city": "", "sp": "Unicom"}} ITEBLOG API
Interface address:
Https://www.iteblog.com/api/mobile.php?mobile=18519101034
Return content:
{"ID": "280889", "prefix": "1851910", "province": "Beijing", "city": "Beijing", "operator": "China Unicom", "areaCode": "100000", "zip": "100000", "ret": 0, "searchStr": "18519101034", "from": "https://www.iteblog.com/api/mobile.php"," "ip": "114.243.220.66", "ua": "Mozilla/5.0 (Macintosh) Intel Mac OS X 10 / 13 / 1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.94 Safari/537.36 "}