1. Autentikasi API Key
Buat API Key dari menu API & Integrasi di Dashboard. Kirimkan key (format mci_...) pada setiap request menggunakan salah satu header berikut:
X-API-Key: mci_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx # atau Authorization: Bearer mci_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
read (hanya GET) dan write (POST/DELETE).2. Ambil Daftar Proxy
GET /api/v1/proxiesMengambil daftar proxy aktif beserta status, latency, Exit IP, lokasi, dan URI siap pakai. Diurutkan dari latency tercepat.
| Query Param | Tipe | Keterangan |
|---|---|---|
status | string | Filter: online, slow, offline |
vendor | string | Slug vendor: webshare, iproyal, quanticdata, proxy-seller, proxy-cheap, manual |
country | string | Kode negara 2 huruf, misal SG, US, ID |
type | string | datacenter, residential, isp, mobile |
limit | number | Maksimal hasil (1–1000, default 100) |
format | string | json (default) atau txt (1 baris 1 URI socks5h://...) |
curl -H "X-API-Key: mci_YOUR_KEY" \
"https://mci-proxy.online/api/v1/proxies?status=online&country=SG&limit=10"
3. Ambil 1 Proxy Online Acak (Untuk Bot / Scraper)
GET /api/v1/proxies/randomMengembalikan 1 proxy acak yang berstatus online. Mendukung filter vendor, country, type, dan includeSlow=true.
{
"proxy": {
"id": 12,
"label": "SG-Resi-01",
"vendor": "iproyal",
"uri": "socks5h://user:[email protected]:1080",
"status": "online",
"latency_ms": 48,
"exit_ip": "103.21.44.18",
"country_code": "SG",
"uptime_24h": 99.8
}
}
4. Tambah Proxy Baru
POST /api/v1/proxiesMemerlukan scope write. Bisa mengirim uri langsung atau field terpisah. Set check_now: true untuk langsung menguji koneksi.
curl -X POST -H "X-API-Key: mci_YOUR_KEY" -H "Content-Type: application/json" \
-d '{
"uri": "socks5h://user:[email protected]:1080",
"vendor_slug": "iproyal",
"label": "Bot-Node-01",
"proxy_type": "residential",
"check_now": true
}' \
"https://mci-proxy.online/api/v1/proxies"
5. Trigger Cek Koneksi Proxy
POST /api/v1/proxies/:id/checkMemerlukan scope write. Menjalankan pengujian SOCKS5 secara langsung dan mengembalikan status, latency, serta Exit IP terbaru.
6. Hapus Proxy
DELETE /api/v1/proxies/:idMemerlukan scope write. Menghapus proxy berdasarkan id.
7. Ringkasan Statistik
GET /api/v1/analytics/summaryMengembalikan total proxy, jumlah online/slow/offline, rata-rata latency & uptime 24 jam, serta breakdown per vendor.
8. Contoh Integrasi (Node.js & Python)
import { SocksProxyAgent } from 'socks-proxy-agent';
const res = await fetch('https://mci-proxy.online/api/v1/proxies/random?country=SG', {
headers: { 'X-API-Key': 'mci_YOUR_KEY' }
});
const { proxy } = await res.json();
const agent = new SocksProxyAgent(proxy.uri);
console.log('Using proxy:', proxy.uri, 'Exit IP:', proxy.exit_ip);
import requests
r = requests.get(
"https://mci-proxy.online/api/v1/proxies/random",
headers={"X-API-Key": "mci_YOUR_KEY"},
params={"status": "online"}
)
proxy_uri = r.json()["proxy"]["uri"]
resp = requests.get("https://api.ipify.org?format=json", proxies={
"http": proxy_uri,
"https": proxy_uri
})
print(resp.json())
