品牌官网GEO 提供 RESTful API,支持将 GEO 能力集成到您自己的系统中。
所有 API 请求需在 Header 中携带 JWT Token:
Authorization: Bearer <your_token>
Token 通过登录接口获取,有效期 30 天。
https://web.zhdao.cn/api/v1application/json(登录接口除外,使用 OAuth2 表单格式)POST /auth/register
请求体:
{
"email": "user@example.com",
"password": "your_password",
"name": "用户名"
}
返回:Token + 角色
POST /auth/login
请求体(OAuth2 表单格式):
username=user@example.com&password=your_password
返回:Token + 角色
GET /auth/me
返回:用户信息(邮箱、角色、租户 ID)
GET /brands - 获取品牌列表
POST /brands - 接入新品牌
PUT /brands/{id} - 更新品牌信息
DELETE /brands/{id} - 删除品牌
POST /brands/{id}/audit - 触发六维体检
GET /brands/{id}/metrics - 获取体检指标
POST /brands/{id}/sample - 触发多引擎采样
GET /brands/{id}/samples - 获取采样结果
GET /brands/{id}/facts - 获取事实列表
POST /brands/{id}/facts - 新增事实
PUT /facts/{id} - 更新事实
DELETE /facts/{id} - 删除事实
GET /content - 获取所有站点内容
GET /content/{key} - 获取指定内容(如 about、contact)
200 - 成功201 - 创建成功400 - 请求参数错误401 - 未认证或 Token 过期403 - 无权限404 - 资源不存在422 - 请求体验证失败500 - 服务器内部错误体验版:60 次/小时 | 成长版:600 次/小时 | 旗舰版:无限制
Python SDK 和 JavaScript SDK 正在开发中,届时可通过包管理器直接安装。
最后更新:2026 年 8 月 | API 版本:v1