












import com.baidubce.http.ApiExplorerClient; import com.baidubce.http.AppSigner; import com.baidubce.http.HttpMethodName; import com.baidubce.model.ApiExplorerRequest; import com.baidubce.model.ApiExplorerResponse; // IP反查域名 Java示例代码 public class RequestDemo { public static void main(String[] args) { String path = "https://jmaqjcipfcym.api.bdymkt.com/ip/domain"; ApiExplorerRequest request = new ApiExplorerRequest(HttpMethodName.POST, path); request.setCredentials("您的 access key", "您的 secret key"); request.addHeaderParameter("Content-Type", "application/x-www-form-urlencoded"); ApiExplorerClient client = new ApiExplorerClient(new AppSigner()); try { ApiExplorerResponse response = client.sendRequest(request); // 返回结果格式为Json字符串 System.out.println(response.getResult()); } catch (Exception e) { e.printStackTrace(); } } }点击复制代码
{
"code": 200,//详见code返回码说明
"msg": "成功",//code对应的描述
"taskNo": "858846922155036462550363",//本次唯一请求号
"data": {
"TotalCount": 1554,//总数量
"PageSize": 10,//当前页数量(最多返回10条)
"TotalPage": 156,//总页数
"Ip": "180.101.50.188",//查询的IP
"Page": 1,//当前页
"List": [ //数据列表
{
"LastDate": "2023-07-15 02:42:00",//最后解析成功时间
"FirstDate": "2023-07-15 02:42:00",//从首次解析成功时间
"Domain": "dev.open.baidu.com" //解析过的域名(同IP网站)
},
{
"LastDate": "2023-09-26 12:27:41",
"FirstDate": "2023-07-15 02:42:00",
"Domain": "pj266.com"
}
]
}
}
{
"msg": "ip不能为空",
"code": 400 // 详见code返回码说明
}
1,官方直连,权威校验;2,全实时优质接口,不参缓存,品质保证;3,多通道冗余切换,稳定可靠。

