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; // 最新注销备案域名 Java示例代码 public class RequestDemo { public static void main(String[] args) { String path = "https://bdapi.chinaz.net/beian_del"; ApiExplorerRequest request = new ApiExplorerRequest(HttpMethodName.GET, path); request.setCredentials("您的 access key", "您的 secret key"); request.addHeaderParameter("Content-Type", "application/json;charset=UTF-8"); request.addQueryParameter("startDate", ""); request.addQueryParameter("endDate", ""); request.addQueryParameter("page", ""); ApiExplorerClient client = new ApiExplorerClient(new AppSigner()); try { ApiExplorerResponse response = client.sendRequest(request); // 返回结果格式为Json字符串 System.out.println(response.getResult()); } catch (Exception e) { e.printStackTrace(); } } }
点击复制代码
根据时间段参数返回该时间段所有域名的备案信息,按请求的次数计费,每次一页(最多100条数据),如某次请求返回条数为空则扣一次计费(避免大量无效时间段请求)。
域名投资者使用这个接口来寻找近期注销备案的域名,以及市场研究人员和企业使用该接口来追踪竞争对手或者行业参与者的域名注销备案活动。