📚 API Documentation

Tài liệu API tích hợp mua proxy, hosting, VPS tự động

Base URL: https://netihot.com/api/

🔑 Xác thực

Lấy token tại: https://netihot.com/hoso

Cách 1: Header Authorization

Authorization: Bearer YOUR_API_TOKEN

Cách 2: Query Parameter

?token=YOUR_API_TOKEN

🏠 Proxy Dân Cư Xoay

Endpoint: /apimuaproxyxoay.php - Proxy dân cư xoay IP tự động
📦 Thông tin gói

Mã gói: P0010
Giá: 12,000 VNĐ/proxy
Loại: Residential Rotating Proxy
Vị trí: Việt Nam
Thời gian xoay: 15, 30, 60, 120, 180, 300, 600 giây

📝 Tham số

Tham sốBắt buộcMô tảMặc định
tokenAPI Token-
package_codeMã góiP0010
qtySố lượng (1-100)1
proxy_auth_typeUSER_PASS / IP_ADDRESSUSER_PASS
proxy_auth_user✅*Username-
proxy_auth_password✅*Password-
time_auto_change_ipThời gian xoay IP (giây)60
Username/password chỉ chứa chữ cái và số (a-z, A-Z, 0-9)

📤 Request mẫu

GET https://netihot.com/api/apimuaproxyxoay.php?token=YOUR_TOKEN&proxy_auth_user=myuser&proxy_auth_password=mypass&time_auto_change_ip=60
Hoặc dùng POST:
curl -X POST "https://netihot.com/api/apimuaproxyxoay.php" \
  -d "token=YOUR_TOKEN" \
  -d "proxy_auth_user=myuser" \
  -d "proxy_auth_password=mypass" \
  -d "time_auto_change_ip=60"

✅ Response thành công (Đã test)

{
  "success": true,
  "data": {
    "order_id": "7",
    "message": "Mua proxy dân cư xoay thành công!",
    "quantity": 1,
    "proxy_info": {
      "id": "7",
      "ip": "42.96.10.203",
      "port": 8097,
      "username": "myuser",
      "password": "mypass",
      "type": "VN_ROTATING",
      "format": "42.96.10.203:8097:myuser:mypass",
      "connection_string": {
        "http": "http://myuser:mypass@42.96.10.203:8097",
        "https": "https://myuser:mypass@42.96.10.203:8097",
        "socks5": "socks5://myuser:mypass@42.96.10.203:8097"
      },
      "expired_at": "2026-03-23T08:57:01.5000329"
    },
    "package": {
      "code": "P0010",
      "type": "residential_rotating",
      "change_ip_time": 60,
      "price_per_proxy": 12000,
      "total_cost": 12000
    },
    "amount": 12000,
    "purchased_at": "2026-03-22 01:57:01",
    "remaining_balance": 29226962
  }
}

💡 Ưu điểm

  • IP dân cư thật từ các nhà mạng Việt Nam (Viettel, Vinaphone, Mobifone)
  • IP thay đổi tự động sau mỗi 15-600 giây
  • Tốc độ cao, ổn định cho crawling, automation, SEO
  • Hỗ trợ đa giao thức: HTTP, HTTPS, SOCKS5

🔄 Proxy Xoay 4G Vinaphone

Endpoint: /apimuaproxy4gvinaxoay.php - Proxy 4G xoay IP tự động
📦 Thông tin gói

Mã gói: P0171
Giá: 12,000 VNĐ/proxy
Thời gian xoay: 60, 120, 180, 300, 600 giây

📝 Tham số

Tham sốBắt buộcMô tảMặc định
tokenAPI Token-
package_codeMã góiP0171
qtySố lượng (1-100)1
proxy_auth_typeUSER_PASS / IP_ADDRESSUSER_PASS
proxy_auth_user✅*Username-
proxy_auth_password✅*Password-
time_auto_change_ipThời gian xoay IP (giây)120

📤 Request mẫu

GET https://netihot.com/api/apimuaproxy4gvinaxoay.php?token=YOUR_TOKEN&proxy_auth_user=myuser&proxy_auth_password=mypass&time_auto_change_ip=120

✅ Response thành công

{
  "success": true,
  "data": {
    "order_id": "5",
    "proxy_info": {
      "ip": "51.79.153.185",
      "port": 8317,
      "username": "myuser",
      "password": "mypass",
      "format": "51.79.153.185:8317:myuser:mypass"
    },
    "amount": 12000,
    "remaining_balance": 29226962
  }
}

📶 Proxy 4G Vinaphone

Endpoint: /apimuaproxy4gvinaphone.php - Proxy 4G mobile

📝 Tham số

Tham sốBắt buộcMô tả
tokenAPI Token
ngaySố ngày (1-365)
typeHTTP, HTTPS, SOCKS5
userUsername
passwordPassword
💰 Giá: 2,000 VNĐ/ngày

📤 Request mẫu

GET https://netihot.com/api/apimuaproxy4gvinaphone.php?token=YOUR_TOKEN&ngay=1&type=HTTP&user=myuser&password=mypass

🏢 Proxy Datacenter

Endpoint: /apimuaproxydatacentervn.php
DatacenterC
ID:13 | 800đ/ngày
DatacenterB
ID:22 | 1,000đ/ngày
DatacenterA
ID:23 | 2,900đ/ngày

📤 Request mẫu

GET https://netihot.com/api/apimuaproxydatacentervn.php?token=YOUR_TOKEN&goi_id=22&ngay=1&type=HTTP&user=myuser&password=mypass

🏠 Proxy Dân Cư

Endpoint: /apimuaproxydancu.php - Giá: 1,000 VNĐ/ngày

📝 Tham số

Tham sốBắt buộcMô tả
tokenAPI Token
goi_id14=Viettel, 15=Vinaphone, 16=Mobifone
ngaySố ngày (1-30)
typeHTTP, HTTPS, SOCKS5
userUsername
passwordPassword

🛠️ Quản lý Proxy

Endpoint: /apithaotacproxydancu.php

📋 Lấy danh sách proxy (GET)

GET https://netihot.com/api/apithaotacproxydancu.php?page=1&limit=20

🔄 Gia hạn proxy (POST)

{
  "action": "renew",
  "proxy_id": 7,
  "days": 7
}

🔍 Xem chi tiết

{
  "action": "details",
  "proxy_id": 7
}

🗑️ Xóa proxy (chỉ proxy hết hạn)

{
  "action": "delete",
  "proxy_id": 7
}

🖥️ VPS NAT IP Windows

VPS NAT 1
35,000đ/tháng | 1 core, 2GB RAM
VPS NAT 2
60,000đ/tháng | 2 cores, 4GB RAM
VPS NAT 3
85,000đ/tháng | 3 cores, 6GB RAM

📝 Mua VPS

GET https://netihot.com/api/apimuavpsnatip.php?token=YOUR_TOKEN&package_code=nat1&rental_period=1&os_template=Windows

rental_period: 0.25=7 ngày, 0.5=14 ngày, 1=1 tháng, 3=3 tháng, 6=6 tháng, 12=12 tháng

🔍 Kiểm tra trạng thái VPS

GET https://netihot.com/api/apicheckorderstatus.php?token=YOUR_TOKEN&order_id=70

🔄 Gia hạn VPS

curl -X POST "https://netihot.com/api/apigiahanvpsnatip.php" \
  -H "Content-Type: application/json" \
  -d '{"token":"YOUR_TOKEN","order_id":70,"months":1}'

👑 Reseller cPanel

Reseller VN 1
60,000đ/tháng | 10GB SSD
Reseller VN 2
120,000đ/tháng | 20GB SSD

📝 Mua Reseller

GET https://netihot.com/api/apimuarslcpanel.php?token=YOUR_TOKEN&goi_id=5&domain=myreseller.com&email=admin@myreseller.com

🔄 Gia hạn Reseller

curl -X POST "https://netihot.com/api/apigiahanrslcpanel.php" \
  -H "Content-Type: application/json" \
  -d '{"token":"YOUR_TOKEN","reseller_id":8,"months":1}'

📦 Hosting cPanel

📝 Mua Hosting

GET https://netihot.com/api/apimuahostcpanel.php?token=YOUR_TOKEN&goi_id=4&domain=example.com&email=admin@example.com

📋 Danh sách Hosting

GET https://netihot.com/api/apithaotachostcpanel.php?token=YOUR_TOKEN

🔄 Gia hạn Hosting

{
  "action": "renew",
  "hosting_id": 45,
  "duration": 1
}

⚠️ Mã lỗi

Mã lỗiMô tả
MISSING_TOKENThiếu token
INVALID_TOKENToken không hợp lệ
MISSING_PARAMSThiếu tham số
INSUFFICIENT_BALANCESố dư không đủ
PACKAGE_NOT_FOUNDGói không tồn tại
OUT_OF_STOCKHết hàng
INVALID_AUTH_FORMATUser/pass chỉ chứa chữ và số
INVALID_CHANGE_IP_TIMEThời gian đổi IP không hợp lệ
DATABASE_ERRORLỗi database

💻 Ví dụ code

JavaScript - Mua Proxy Dân Cư Xoay

const buyProxy = async (token, user, pass, changeTime = 60) => {
  const res = await fetch(`https://netihot.com/api/apimuaproxyxoay.php?token=${token}&proxy_auth_user=${user}&proxy_auth_password=${pass}&time_auto_change_ip=${changeTime}`);
  const data = await res.json();
  if (data.success) {
    console.log('Proxy:', data.data.proxy_info.format);
    console.log('Số dư:', data.data.remaining_balance);
  }
  return data;
};

buyProxy('YOUR_TOKEN', 'myuser', 'mypass', 60);

Python - Mua Proxy Dân Cư Xoay

import requests

def buy_proxy(token, username, password, change_time=60):
    url = "https://netihot.com/api/apimuaproxyxoay.php"
    params = {
        'token': token,
        'proxy_auth_user': username,
        'proxy_auth_password': password,
        'time_auto_change_ip': change_time
    }
    resp = requests.get(url, params=params)
    return resp.json()

result = buy_proxy('YOUR_TOKEN', 'myuser', 'mypass', 60)
if result['success']:
    proxy = result['data']['proxy_info']
    print(f"Proxy: {proxy['ip']}:{proxy['port']}")
    print(f"Kết nối: {proxy['connection_string']['http']}")

PHP - Mua Proxy Dân Cư Xoay

function buyProxy($token, $user, $pass, $changeTime = 60) {
    $url = "https://netihot.com/api/apimuaproxyxoay.php?" . http_build_query([
        'token' => $token,
        'proxy_auth_user' => $user,
        'proxy_auth_password' => $pass,
        'time_auto_change_ip' => $changeTime
    ]);
    $ch = curl_init($url);
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
    $response = curl_exec($ch);
    curl_close($ch);
    return json_decode($response, true);
}

$result = buyProxy('YOUR_TOKEN', 'myuser', 'mypass', 60);
if ($result['success']) {
    echo "Proxy: " . $result['data']['proxy_info']['format'];
}

cURL - Test nhanh

# Proxy Dân Cư Xoay
curl -X GET "https://netihot.com/api/apimuaproxyxoay.php?token=YOUR_TOKEN&proxy_auth_user=myuser&proxy_auth_password=mypass&time_auto_change_ip=60"

# Proxy Xoay 4G
curl -X GET "https://netihot.com/api/apimuaproxy4gvinaxoay.php?token=YOUR_TOKEN&proxy_auth_user=myuser&proxy_auth_password=mypass&time_auto_change_ip=120"
API sẵn sàng! Mọi thắc mắc vui lòng liên hệ hỗ trợ.