用于查询网站的备案数据(可以查询个人)
| 参数名 | 类型 | 必填 | 说明 | 示例 |
|---|---|---|---|---|
| key | string | 是 | 接口调用密钥 | |
| url | string | 是 | 查询备案的网站地址 | qq.com |
| type | string | 否 | 默认json可选text、text1、json | json |
[
{
"name": "key",
"type": "string",
"required": true,
"description": "接口调用密钥",
"example": ""
},
{
"name": "url",
"type": "string",
"required": true,
"description": "查询备案的网站地址",
"example": "qq.com"
},
{
"name": "type",
"type": "string",
"required": false,
"description": "默认json可选text、text1、json",
"example": "json"
}
]
{
"openapi": "3.1.1",
"info": {
"title": "网站备案",
"description": "用于查询网站的备案数据(可以查询个人)",
"version": "1.0.0"
},
"paths": {
"/api/zzgj/icp/api.php": {
"get": {
"summary": "网站备案",
"description": "用于查询网站的备案数据(可以查询个人)",
"parameters": [
{
"name": "key",
"in": "query",
"required": true,
"schema": {
"type": "string"
},
"description": "接口调用密钥"
},
{
"name": "url",
"in": "query",
"required": true,
"schema": {
"type": "string",
"example": "qq.com"
},
"description": "查询备案的网站地址"
},
{
"name": "type",
"in": "query",
"required": false,
"schema": {
"type": "string",
"example": "json"
},
"description": "默认json可选text、text1、json"
}
],
"responses": {
"200": {
"description": "成功",
"content": {
"application/json": {
"schema": {
"type": "object"
}
}
}
}
}
},
"post": {
"summary": "网站备案",
"description": "用于查询网站的备案数据(可以查询个人)",
"parameters": [
{
"name": "key",
"in": "query",
"required": true,
"schema": {
"type": "string"
},
"description": "接口调用密钥"
},
{
"name": "url",
"in": "query",
"required": true,
"schema": {
"type": "string",
"example": "qq.com"
},
"description": "查询备案的网站地址"
},
{
"name": "type",
"in": "query",
"required": false,
"schema": {
"type": "string",
"example": "json"
},
"description": "默认json可选text、text1、json"
}
],
"responses": {
"200": {
"description": "成功",
"content": {
"application/json": {
"schema": {
"type": "object"
}
}
}
}
}
}
}
},
"servers": [
{
"url": "https://api-v2.317ak.com",
"description": "当前访问入口(https)"
}
]
}
{
"code": 200,
"msg": "查询成功",
"主办单位": "深圳市腾讯计算机系统有限公司",
"单位性质": "企业",
"备案号": "粤B2-20090059-5",
"网站名称": "NULL",
"网站首页": "qq.com",
"审核时间": "2026-07-16 00:00:00",
"最近检测": "2026-09-30 05:57:11",
"tips": "倾梦API:https://api.317ak.com"
}
用于查询网站的备案数据,支持个人网站备案信息查询。
适用于站长工具场景,可通过接口获取网站备案相关信息。
https://api-v2.317ak.com/api/zzgj/icp/api.php
GET、POST
接口调用需要提供密钥。
首选鉴权方式:Query
通过请求参数传递密钥:
key=接口调用密钥
| 参数名 | 类型 | 必填 | 说明 |
|---|---|---|---|
| key | string | 是 | 接口调用密钥,需通过 Query 参数传递(key=…) |
| url | string | 是 | 查询备案的网站地址,例如:qq.com |
| type | string | 否 | 返回格式,默认 json,可选 text、text1、json,例如:json |
{
"code": 200,
"msg": "查询成功",
"主办单位": "深圳市腾讯计算机系统有限公司",
"单位性质": "企业",
"备案号": "粤B2-20090059-5",
"网站名称": "NULL",
"网站首页": "qq.com",
"审核时间": "2026-07-16 00:00:00",
"最近检测": "2026-09-30 05:57:11",
"tips": "倾梦API:https://api-v2.317ak.com"
}
| 字段 | 类型 | 说明 |
|---|---|---|
| code | int | 请求状态标识,成功时返回 200 |
| msg | string | 请求处理结果说明 |
| 主办单位 | string | 网站备案主体名称 |
| 单位性质 | string | 备案主体性质 |
| 备案号 | string | 网站备案编号 |
| 网站名称 | string | 已备案网站名称 |
| 网站首页 | string | 查询的网站地址 |
| 审核时间 | string | 备案审核时间 |
| 最近检测 | string | 最近一次数据检测时间 |
| tips | string | 接口提示信息 |
当接口请求失败时,将返回 JSON 格式错误信息:
{
"code":0,
"msg":"未提供调用密钥",
"errcode":11001
}
| errcode | 含义 |
|---|---|
| 11001 | 未提供调用密钥 |
| 11002 | 密钥错误 |
| 11003 | 密钥已禁用 |
| 11004 | 积分余额不足 |
| 11005 | 请求过于频繁(QPM 限制) |
| 11006 | 接口维护中 |
| 11007 | 接口已禁用 |
| 11008 | 接口不可用 |
| 11009 | 密钥校验暂不可用 |
| 11010 | 积分系统暂不可用 |
| 11011 | 收费接口须提供有效密钥 |
| 11012 | 鉴权方式错误 |
| 11013 | 接口不存在 |
| 11014 | ***地址无效 |
| 11015 | ***地址不允许 |
| 11016 | ***请求失败 |
| 11017 | 服务暂不可用 |
| 11018 | 请求方式不允许 |
| 11019 | 当前IP不在白名单内 |
| 11020 | 启用出口代理须提供有效密钥 |
| 11021 | 未配置可用出口代理 |
| 11022 | 出口代理不可用 |
| 11023 | 密钥已过期 |
| 11024 | 令牌分配积分不足 |
curl -G "https://api-v2.317ak.com/api/zzgj/icp/api.php" \
--data-urlencode "key=你的接口调用密钥" \
--data-urlencode "url=qq.com" \
--data-urlencode "type=json"
// PHP
$url = "https://api-v2.317ak.com/api/zzgj/icp/api.php?key=你的接口调用密钥&url=qq.com&type=json";
$response = file_get_contents($url);
echo $response;
key 进行鉴权,例如 key=你的接口密钥。url 参数需填写需要查询备案的网站地址,例如 qq.com,建议不要携带多余路径或无关字符,以免影响查询结果。type 参数为可选项,默认返回 JSON 格式;如需其他返回格式,请根据接口支持范围填写对应值。# 查询网站备案
curl -G "https://api-v2.317ak.com/api/zzgj/icp/api.php" \
--data-urlencode "key=YOUR_API_KEY" \
--data-urlencode "url=qq.com" \
--data-urlencode "type=json"
# 检查返回状态
# code非成功时输出error
data=$(curl -s -G "https://api-v2.317ak.com/api/zzgj/icp/api.php?key=YOUR_API_KEY&url=qq.com&type=json")
echo "$data"