概述
Zeddro’s programmatic interface is the 本地 Agent API。Zeddro Agent(Windows、macOS、Linux)在 127.0.0.1:35000 上运行轻量 HTTP 服务器控制本机的真实浏览器会话 — 与驱动控制台和 Automation Workflows.
基础 URL
http://127.0.0.1:35000
工作原理
- Local & fast — 请求不离开本机;无延迟无速率限制。
- JSON 进 JSON 出 — 以 POST 形式发送 application/json;所有响应均为 JSON。
- 浏览器可调用 — CORS 开放(Access-Control-Allow-Origin: *)并支持 Private Network Access,Web 控制台可直接与 Agent 通信。
- 拟人节奏控制 — the /action 端点以真实节奏输入、点击与滚动 — 正是自动化工作流的底层。
环境存在哪里? 环境、指纹与代理在云端控制台
app.zeddro.com管理。Agent 将其同步到本地 — API 驱动
会话:启动、控制与停止。
快速开始
确保 Agent 已安装并运行,然后调用状态端点:
1 · 检查 Agent
curl http://127.0.0.1:35000/status
{
"success": true,
"agent": "Zeddro Agent",
"version": "3.8.9",
"chrome": true,
"machineId": "a1b2c3d4",
"running": 0,
"profiles": []
}
2 · 启动首个环境
curl -X POST http://127.0.0.1:35000/launch \
-H "Content-Type: application/json" \
-d '{"profile_id": 123}'
A real browser window opens with the profile’s fingerprint, cookies, session and proxy applied — exactly like pressing Launch 。
响应s & Errors
每个端点返回一致封装 — 先检查 success :
{ "success": true, }
{ "success": false, "error": "Profile is already running" }
状态码
代码含义
200请求成功
400校验或启动失败 — error 字段说明原因
404Unknown route, or the target profile isn’t running on this device
500Agent 内部错误
Agent 状态
GET
/status
Agent 信息及本机所有运行中的环境。
响应
{
"success": true,
"agent": "Zeddro Agent",
"version": "3.8.9",
"chrome": true,
"machineId": "a1b2c3d4",
"running": 2,
"profiles": [
{ "id": 123, "name": "FB Ads — US 01", "pid": 5112, "launchedAt": 1733059200123 }
]
}
GET
/status/{id}
检查指定环境是否在本机运行。未激活时返回 404 when the profile isn’t active.
启动环境
POST
/launch
在真实浏览器会话中打开环境,应用其指纹、Cookie 与代理。控制台发送完整载荷;自有脚本中 profile_id 对已同步的环境足够。
请求体
字段说明
profile_id integer 必填来自控制台的环境 ID
browser_type stringchrome (CloakBrowser) or firefox (Camoufox) — default chrome
proxy object{type, host, port, username, password} — http, https or socks5
fingerprint object覆盖指纹字段 — timezone, locale, userAgent、WebGL、屏幕…
cookies array会话开始前注入的 Cookie
sync_token · sync_url string会话同步凭据 — 控制台启动时自动设置
示例
{
"profile_id": 123,
"browser_type": "chrome",
"proxy": {
"type": "http",
"host": "res.proxy.example.com",
"port": 8080,
"username": "user",
"password": "pass"
}
}
响应
{
"success": true,
"pid": 5112,
"profileId": 123,
"name": "FB Ads — US 01"
}
已在运行? Launching a profile that’s open returns { "success": false, "error": "Profile is already running" }。会话通过同步自动恢复标签页。
停止环境
POST
/stop/{id}
优雅停止运行中的环境。会话数据(标签页、存储、历史)在浏览器关闭前同步回云端。
{ "success": true, "message": "Profile stopped" }
POST
/stop-all
停止本机所有运行中的环境。
{ "success": true, "stopped": 3 }
导航
POST
/navigate
将运行中环境的活动标签页导航至 URL。
{ "profile_id": 123, "url": "https://example.com" }
{ "success": true, "url": "https://example.com/", "title": "示例 Domain" }
截图
POST
/screenshot
将活动标签页截为 base64 JPEG — 与自动化运行历史截图使用同一调用。
{ "profile_id": 123 }
{ "success": true, "data": "/9j/4AAQSkZJRgABAQ…", "mime": "image/jpeg" }
动作
对运行中环境的拟人节奏页面控制 — 自动化工作流的引擎。每个动作返回 { "success": true, "detail": "…" }.
POST
/action
{
"profile_id": 123,
"action": "type",
"params": { "selector": "input[name=q]", "text": "hello", "human": true }
}
可用动作
动作Params & behaviour
click{selector, index} — 带移动的拟人点击
hover{selector, index} — 光标自然移动到元素上
type{selector, text, clear, human} — 带延迟的逐字符输入
scroll{mode} — 按像素或滚动到元素
wait_element{selector, timeout, visible} — 最长等待选择器 120 秒
press_key{key} — 如 Enter, Escape
social{platform, count, text, duration} — 点赞信息流、评论、浏览、搜索(Google)、查收件箱(Gmail)
代理测试
POST
/proxy/test
中可视化编排同样的动作,含计划与运行历史。 Check 通过 Agent 测试代理 — 返回出口 IP、地理信息与延迟。即控制台
请求体
{
"host": "res.proxy.example.com",
"port": 8080,
"username": "user",
"password": "pass",
"type": "http",
"checker": "ip-api"
}
响应
{
"success": true,
"message": "Proxy working! IP: 84.17.42.9",
"ip": "84.17.42.9",
"proxy": "res.proxy.example.com:8080",
"info": { "country": "United States", "city": "Chicago", "isp": "…", "latency": 412 }
}