Tổng quan
Zeddro’s programmatic interface is the Agent API nội bộ. Zeddro Agent (Windows, macOS, Linux) chạy HTTP server nhẹ trên 127.0.0.1:35000 điều khiển phiên trình duyệt thật trên máy — cùng API vận hành dashboard và Automation Workflows.
Base URL
http://127.0.0.1:35000
Cách hoạt động
- Local & fast — request không rời máy; không độ trễ, không giới hạn.
- JSON vào, JSON ra — gửi POST dưới dạng application/json; mọi response đều là JSON.
- Gọi được từ trình duyệt — CORS mở (Access-Control-Allow-Origin: *) với Private Network Access, nên dashboard web nói chuyện trực tiếp với Agent.
- Điều khiển nhịp người — the /action gõ, click và cuộn theo nhịp thật — đúng thứ Automation Workflows dùng bên dưới.
Profile nằm ở đâu? Profile, fingerprint và proxy được quản trên dashboard đám mây
app.zeddro.com. Agent đồng bộ về máy — API điều khiển
phiên: mở, điều khiển và dừng.
Bắt đầu nhanh
Đảm bảo Agent đã cài và đang chạy, rồi gọi endpoint status:
1 · Kiểm tra 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 · Mở profile đầu tiên
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 trên dashboard.
Responses & Errors
Mọi endpoint trả về envelope nhất quán — kiểm tra success trước:
{ "success": true, }
{ "success": false, "error": "Profile is already running" }
Mã trạng thái
MãÝ nghĩa
200Request thành công
400Lỗi validate hoặc mở profile — trường error giải thích lý do
404Unknown route, or the target profile isn’t running on this device
500Lỗi nội bộ Agent
Trạng thái Agent
GET
/status
Thông tin Agent và mọi profile đang chạy trên máy.
Response
{
"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}
Kiểm tra profile cụ thể có đang chạy không. Trả về 404 when the profile isn’t active.
Mở profile
POST
/launch
Mở profile trong phiên trình duyệt thật với fingerprint, cookies và proxy. Dashboard gửi full payload; với script riêng, profile_id là đủ cho profile Agent đã sync.
Request body
TrườngMô tả
profile_id integer bắt buộcID profile từ dashboard
browser_type stringchrome (CloakBrowser) or firefox (Camoufox) — default chrome
proxy object{type, host, port, username, password} — http, https or socks5
fingerprint objectGhi đè trường fingerprint — timezone, locale, userAgent, WebGL, màn hình…
cookies arrayCookies inject vào phiên trước khi mở
sync_token · sync_url stringCredentials sync phiên — tự đặt khi dashboard mở
Ví dụ
{
"profile_id": 123,
"browser_type": "chrome",
"proxy": {
"type": "http",
"host": "res.proxy.example.com",
"port": 8080,
"username": "user",
"password": "pass"
}
}
Response
{
"success": true,
"pid": 5112,
"profileId": 123,
"name": "FB Ads — US 01"
}
Đã chạy rồi? Launching a profile that’s open returns { "success": false, "error": "Profile is already running" }. Phiên tự khôi phục tab qua session sync.
Dừng profile
POST
/stop/{id}
Dừng profile êm. Dữ liệu phiên (tab, storage, lịch sử) sync về đám mây trước khi đóng.
{ "success": true, "message": "Profile stopped" }
POST
/stop-all
Dừng mọi profile đang chạy trên máy.
{ "success": true, "stopped": 3 }
Điều hướng
POST
/navigate
Điều hướng tab đang mở của profile tới URL.
{ "profile_id": 123, "url": "https://example.com" }
{ "success": true, "url": "https://example.com/", "title": "Ví dụ Domain" }
Chụp màn hình
POST
/screenshot
Chụp tab đang mở thành JPEG base64 — đúng lệnh Automation dùng cho ảnh lịch sử chạy.
{ "profile_id": 123 }
{ "success": true, "data": "/9j/4AAQSkZJRgABAQ…", "mime": "image/jpeg" }
Hành động
Điều khiển trang nhịp người trên profile đang chạy — engine của Automation Workflows. Mọi action trả về { "success": true, "detail": "…" }.
POST
/action
{
"profile_id": 123,
"action": "type",
"params": { "selector": "input[name=q]", "text": "hello", "human": true }
}
Action có sẵn
ActionParams & behaviour
click{selector, index} — click kiểu người có di chuyển
hover{selector, index} — di con trỏ tự nhiên qua phần tử
type{selector, text, clear, human} — gõ từng ký tự có delay
scroll{mode} — cuộn theo pixel hoặc tới phần tử
wait_element{selector, timeout, visible} — chờ selector tối đa 120s
press_key{key} — vd. Enter, Escape
social{platform, count, text, duration} — like feed, comment, lướt feed, tìm (Google), check hộp thư (Gmail)
Test proxy
POST
/proxy/test
Test proxy qua Agent — trả về IP ra, geo và độ trễ. Đây là thứ nút Check trên dashboard gọi.
Request body
{
"host": "res.proxy.example.com",
"port": 8080,
"username": "user",
"password": "pass",
"type": "http",
"checker": "ip-api"
}
Response
{
"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 }
}