返回首页
icp备案查询 GET 正常
06月13日 创建 更新于 07-01 13:28
查询指定域名ICP备案信息。如果查询失败请多试几次。注意,本接口使用的是离线库查询,信息更新不及时,如需要实时查询请使用ICP实时备案查询接口。
总调用次数
61
接口地址
https://gulangsc.cn/API/beian/beian.php
请求示例
https://gulangsc.cn/API/beian/beian.php?domain=bt.cn
参数说明
domain string
代码示例
curl -X GET 'https://gulangsc.cn/API/beian/beian.php?domain=bt.cn'
import requests

url = 'https://gulangsc.cn/API/beian/beian.php?domain=bt.cn'
response = requests.request('GET', url)
print(response.text)
package main

import (
    "fmt"
    "io"
    "net/http"
)

func main() {
    url := "https://gulangsc.cn/API/beian/beian.php?domain=bt.cn"
    req, _ := http.NewRequest("GET", url, nil)
    res, _ := http.DefaultClient.Do(req)
    defer res.Body.Close()
    body, _ := io.ReadAll(res.Body)
    fmt.Println(string(body))
}
fetch('https://gulangsc.cn/API/beian/beian.php?domain=bt.cn', {
  method: 'GET',
})
  .then(res => res.json())
  .then(console.log)
  .catch(console.error);
import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;

public class Main {
    public static void main(String[] args) throws Exception {
        var client = HttpClient.newHttpClient();
        var request = HttpRequest.newBuilder()
            .uri(URI.create("https://gulangsc.cn/API/beian/beian.php?domain=bt.cn"))
            .method("GET", HttpRequest.BodyPublishers.noBody())
            .build();
        var response = client.send(request, HttpResponse.BodyHandlers.ofString());
        System.out.println(response.body());
    }
}
<?php
$url = 'https://gulangsc.cn/API/beian/beian.php?domain=bt.cn';
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'GET');
$response = curl_exec($ch);
curl_close($ch);
echo $response;
?>
#!/bin/bash
# 使用 curl
curl -X GET 'https://gulangsc.cn/API/beian/beian.php?domain=bt.cn'

# 或使用 wget
wget -qO- 'https://gulangsc.cn/API/beian/beian.php?domain=bt.cn'
在线测试
实时响应预览
正在获取实时响应...
元信息
API ID
#2
更新于
07-01 13:28
请求方式
GET
鉴权要求
无需 Key
QPS 状态
10/s
预览状态
已开启