نظرة عامة
Zeddro’s programmatic interface is the واجهة Agent المحلية. يشغّل Zeddro Agent (ويندوز، ماك، لينكس) خادم HTTP خفيفاً على 127.0.0.1:35000 يتحكم بجلسات متصفح حقيقية على جهازك — نفس الواجهة التي تشغّل اللوحة و Automation Workflows.
الرابط الأساسي
http://127.0.0.1:35000
كيف تعمل
- Local & fast — تبقى الطلبات على جهازك؛ بلا تأخير ولا حدود معدل.
- JSON دخولاً وخروجاً — أرسل POST كـ application/json؛ وكل رد هو JSON.
- قابلة للاستدعاء من المتصفح — CORS مفتوح (Access-Control-Allow-Origin: *) مع Private Network Access، فتتصل لوحة الويب بالوكيل مباشرة.
- تحكم بإيقاع بشري — the /action تكتب وتنقر وتمرر بإيقاع واقعي — وهو ما تستخدمه سير العمل الآلية داخلياً.
أين تعيش البروفايلات؟ تُدار البروفايلات والبصمات والبروكسيات في لوحة السحابة على
app.zeddro.com. يزامنها الوكيل محلياً — وتقود الواجهة
الجلسات: التشغيل والتحكم والإيقاف.
البدء السريع
تأكد أن الوكيل مثبت ويعمل، ثم استدعِ نقطة الحالة:
1 · تحقق من الوكيل
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
500خطأ داخلي في الوكيل
حالة الوكيل
GET
/status
معلومات الوكيل وكل بروفايل يعمل حالياً على هذا الجهاز.
الرد
{
"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
افتح بروفايلاً في جلسة متصفح حقيقية ببصمته وكوكيزه وبروكسيه. ترسل اللوحة حمولة البروفايل كاملة؛ لسكربتاتك، profile_id يكفي للبروفايلات التي زامنها الوكيل.
جسم الطلب
الحقلالوصف
profile_id integer مطلوبمعرف البروفايل من اللوحة
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كوكيز تُحقن في الجلسة قبل بدئها
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
وجّه التبويب النشط لبروفايل يعمل إلى رابط.
{ "profile_id": 123, "url": "https://example.com" }
{ "success": true, "url": "https://example.com/", "title": "مثال Domain" }
لقطة شاشة
POST
/screenshot
التقط التبويب النشط كـJPEG بترميز base64 — نفس النداء الذي تستخدمه الأتمتة للقطات سجل التشغيل.
{ "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} — إعجاب بالخلاصة، تعليق، تصفح، بحث (جوجل)، فحص البريد (جيميل)
اختبار البروكسي
POST
/proxy/test
اختبر بروكسي عبر الوكيل — يُرجع IP الخروج ومعلومات الموقع والتأخير. هذا ما يناديه زر Check في اللوحة.
جسم الطلب
{
"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 }
}