输入网址查看网站信息,包含网站标题、关键词、介绍、ico图片、备案信息。
| 参数名 | 类型 | 必填 | 说明 | 示例 |
|---|---|---|---|---|
| key | string | 是 | 接口调用密钥 | |
| url | string | 是 | 需要检测的域名 | api.317ak.com |
[
{
"name": "key",
"type": "string",
"required": true,
"description": "接口调用密钥",
"example": ""
},
{
"name": "url",
"type": "string",
"required": true,
"description": "需要检测的域名",
"example": "api.317ak.com"
}
]
{
"openapi": "3.1.1",
"info": {
"title": "网站信息",
"description": "输入网址查看网站信息,包含网站标题、关键词、介绍、ico图片、备案信息。",
"version": "1.0.0"
},
"paths": {
"/api/zzgj/wzxx/api.php": {
"get": {
"summary": "网站信息",
"description": "输入网址查看网站信息,包含网站标题、关键词、介绍、ico图片、备案信息。",
"parameters": [
{
"name": "key",
"in": "query",
"required": true,
"schema": {
"type": "string"
},
"description": "接口调用密钥"
},
{
"name": "url",
"in": "query",
"required": true,
"schema": {
"type": "string",
"example": "api.317ak.com"
},
"description": "需要检测的域名"
}
],
"responses": {
"200": {
"description": "成功",
"content": {
"application/json": {
"schema": {
"type": "object"
}
}
}
}
}
},
"post": {
"summary": "网站信息",
"description": "输入网址查看网站信息,包含网站标题、关键词、介绍、ico图片、备案信息。",
"parameters": [
{
"name": "key",
"in": "query",
"required": true,
"schema": {
"type": "string"
},
"description": "接口调用密钥"
},
{
"name": "url",
"in": "query",
"required": true,
"schema": {
"type": "string",
"example": "api.317ak.com"
},
"description": "需要检测的域名"
}
],
"responses": {
"200": {
"description": "成功",
"content": {
"application/json": {
"schema": {
"type": "object"
}
}
}
}
}
}
}
},
"servers": [
{
"url": "https://api.317ak.com",
"description": "当前访问入口(https)"
}
]
}
{
"code": 200,
"title": "倾情奉献:免费调用倾梦API,助力你的开发进程!",
"keyword": "倾梦API",
"description": "倾情奉献:免费调用倾梦API,助力你的开发进程!",
"icon": "https://image.317ak.com/img/qm.png",
"icp": "暂无备案信息",
"tips": "倾梦API:api.317ak.com"
}
网站信息接口用于输入网址查询对应的网站基础信息。
适用于站长工具类场景,帮助开发者快速获取网站相关公开信息。
https://api-v2.317ak.com/api/zzgj/wzxx/api.php
GET、POST
本接口需要使用密钥进行调用。
首选鉴权方式:Query
请求时在参数中添加 key 参数,例如:
key=你的接口调用密钥
| 参数名 | 类型 | 必填 | 说明 |
|---|---|---|---|
| key | string | 是 | 接口调用密钥,通过 Query 参数 key 传递。 |
| url | string | 是 | 需要检测的网站域名,例如:api.317ak.com。 |
{
"code": 200,
"title": "倾情奉献:免费调用倾梦API,助力你的开发进程!",
"keyword": "倾梦API",
"description": "倾情奉献:免费调用倾梦API,助力你的开发进程!",
"icon": "https://image.317ak.com/img/qm.png",
"icp": "暂无备案信息",
"tips": "倾梦API:api.317ak.com"
}
| 字段 | 类型 | 说明 |
|---|---|---|
code |
integer | 响应状态标识,成功时返回 200 |
title |
string | 网站标题信息 |
keyword |
string | 网站关键词信息 |
description |
string | 网站介绍信息 |
icon |
string | 网站 ico 图片地址 |
icp |
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/wzxx/api.php" \
--data-urlencode "key=你的接口密钥" \
--data-urlencode "url=api.317ak.com"
// PHP
$url = "https://api-v2.317ak.com/api/zzgj/wzxx/api.php?key=你的接口密钥&url=api.317ak.com";
$response = file_get_contents($url);
echo $response;
key 参数进行身份验证,请确保参数值有效,否则可能导致请求失败。url 参数需填写需要检测的网站域名,建议传入准确可访问的域名格式,例如 api.317ak.com。curl -G "https://api-v2.317ak.com/api/zzgj/wzxx/api.php" \
--data-urlencode "key=YOUR_API_KEY" \
--data-urlencode "url=api.317ak.com"
# 网站信息查询示例
# GET请求,Query鉴权
# 修改url参数即可检测
# 返回code=200表示成功