موزّع API

اشترِ وجدّد بالجملة برمجيًا، للموزعين والعملاء الكبار.

واجهة API للموزعين

اربط IPHub
بنظامك الخاص

اشترِ وجدّد بالجملة برمجيًا، للموزعين والعملاء الكبار.

  • اطلب برمجيًا دون نقرات يدوية للشراء بالجملة
  • جدّد وأضف حركة بيانات عبر الواجهة
  • الدفع من المحفظة، واطّلع على الرصيد في أي وقت
  • سجّل الدخول لإنشاء مفتاح API أدناه

سجّل الدخول لإنشاء مفتاح API

التسجيل يستغرق ثوانٍ، بالبريد الإلكتروني أو بحساب اجتماعي.

وثائق واجهة API للموزعين

اشترِ وجدّد بالجملة برمجيًا، للموزعين والعملاء الكبار.

عنوان الواجهة:https://ip.naian.edu.kg/convex-site
  • • يجب أن يتضمن كل طلب الترويسة Authorization: Bearer مفتاحك. أنشئ المفاتيح من صفحة «واجهة API للموزعين» في القائمة العلوية.
  • • المبالغ بالسنت الأمريكي، مثل 6900 = $69.00.
  • • قيم months: 1 / 3 / 6 / 12 (الأطول أرخص)؛ قيم gb: 1 / 5 / 10 / 50 / 100.
  • • الرد دائمًا { ok: true, data } أو { ok: false, error }. أخطاء مثل نقص الرصيد أو المخزون تُرجع HTTP 400.
  • • Scraping: the first 20 pages a day per account are free (shared with the Web scraper tool), then 1 cent per successful page, up to 500 a day. Public http / https pages only, up to 3 MB per page, content returned up to 200,000 characters.

GET/api/v1/products· قائمة المنتجات (السعر والمخزون)

[{ "id": "k17...", "name": "طوكيو سكني ثابت", "type": "static_residential", "countryCode": "JP", "priceCents": 6900, "priceUnit": "month", "stock": 12 }]

GET/api/v1/balance· رصيد المحفظة

{ "balanceCents": 120000, "currency": "USD" }

POST/api/v1/orders· إنشاء طلب (يُدفع من الرصيد)

{ "productId": "k17...", "quantity": 2, "months": 3 }
// السكني المتغيّر حسب الاستهلاك: { "productId": "...", "quantity": 1, "gb": 10 }
{ "orderId": "j57...", "status": "completed", "totalCents": 39330 }
// status بقيمة "provisioning" يعني أنه قيد التفعيل لدى المزوّد؛ استعلم عن تفاصيل الطلب دوريًا

GET/api/v1/order?id=رقم_الطلب· تفاصيل الطلب والبروكسيات

{ "id": "j57...", "status": "completed", "nodes": [{ "id": "n12...", "host": "1.2.3.4", "port": 8080, "username": "u", "password": "p", "protocol": "http", "expiresAt": "2026-12-22T..." }] }

POST/api/v1/renew· التجديد / إضافة استهلاك

{ "nodeId": "n12...", "months": 1 }
// السكني المتغيّر: { "nodeId": "...", "gb": 5 }
{ "expiresAt": "2027-01-21T...", "totalCents": 6900 }

GET/api/v1/nodes· كل بروكسياتي

[{ "id": "n12...", "host": "1.2.3.4", "port": 8080, "...": "..." }]

POST/api/v1/scrape· Web scraping (fetch a public page through our proxy IPs)

{ "url": "https://example.com/products", "country": "US", "selector": ".price", "attr": "", "format": "html" }
// 只有 url 必填;selector 为 CSS 选择器,attr 取属性(如 href);format 可选 html / text / none
{ "status": 200, "url": "https://example.com/products", "exitIp": "198.51.100.7", "ms": 840, "bytes": 52311, "title": "Products", "matches": ["$19.99", "$24.50"], "html": "<!doctype html>...", "truncated": false, "chargedCents": 0, "freeLeftToday": 19 }
curl https://ip.naian.edu.kg/convex-site/api/v1/balance \\
  -H "Authorization: Bearer iph_مفتاحك"