名称 | 必填 | 类型 | 说明 |
---|---|---|---|
tel | 是 | string | 要查询的手机号 |
{"success":true,"tel":"15677246297","info":{"province":"广西","city":"柳州","operator":"中国联通"},"data":[{"name":"百度手机卫士","msg":"骚扰电话"},{"name":"搜狗号码通","msg":"疑似诈骗"}]}
自行调用
<?php
header("Content-Type:text/json;charset=UTF-8"); date_default_timezone_set("PRC"); $tel = $_GET["tel"]; $url = "https://api.vvhan.com/api/saorao?tel=" . $tel; $data = file_get_contents($url); echo $data;
?>