接口状态
开启
接口说明
骚扰电话查询API接口
接口地址
https://api.71xk.com/api/saorao
返回格式
JSON
请求方式
GET
请求示例
https://api.71xk.com/api/saorao?tel=15677246297

参数说明

名称 必填 类型 说明
xkkey false string 如未开启付费,可用于接口访问统计
tel true string 要查询的手机号

返回数据

{"success":true,"tel":"15677246297","info":{"province":"广西","city":"柳州","operator":"中国联通"},"data":[{"name":"360手机卫士","msg":"骚扰电话"},{"name":"搜狗号码通","msg":"正常号码"},{"name":"百度手机卫士","msg":"正常号码"}]}

示例代码

演示页面:https://api.71xk.com/saorao/

<?php
header("Content-Type:text/json;charset=UTF-8");
date_default_timezone_set("PRC");
$tel = $_GET["tel"];
$url = "https://api.71xk.com/api/saorao?tel=" . $tel;
$data = file_get_contents($url);
echo $data;
?>