Tài liệu API tích hợp mua proxy, hosting, VPS tự động
https://netihot.com/api/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
/apimuaproxyxoay.php - Proxy dân cư xoay IP tự động
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ố | Bắt buộc | Mô tả | Mặc định |
|---|---|---|---|
token | ✅ | API Token | - |
package_code | ❌ | Mã gói | P0010 |
qty | ❌ | Số lượng (1-100) | 1 |
proxy_auth_type | ❌ | USER_PASS / IP_ADDRESS | USER_PASS |
proxy_auth_user | ✅* | Username | - |
proxy_auth_password | ✅* | Password | - |
time_auto_change_ip | ❌ | Thời gian xoay IP (giây) | 60 |
GET https://netihot.com/api/apimuaproxyxoay.php?token=YOUR_TOKEN&proxy_auth_user=myuser&proxy_auth_password=mypass&time_auto_change_ip=60
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"
{
"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
}
}
/apimuaproxy4gvinaxoay.php - Proxy 4G xoay IP tự động
Mã gói: P0171
Giá: 12,000 VNĐ/proxy
Thời gian xoay: 60, 120, 180, 300, 600 giây
| Tham số | Bắt buộc | Mô tả | Mặc định |
|---|---|---|---|
token | ✅ | API Token | - |
package_code | ❌ | Mã gói | P0171 |
qty | ❌ | Số lượng (1-100) | 1 |
proxy_auth_type | ❌ | USER_PASS / IP_ADDRESS | USER_PASS |
proxy_auth_user | ✅* | Username | - |
proxy_auth_password | ✅* | Password | - |
time_auto_change_ip | ❌ | Thời gian xoay IP (giây) | 120 |
GET https://netihot.com/api/apimuaproxy4gvinaxoay.php?token=YOUR_TOKEN&proxy_auth_user=myuser&proxy_auth_password=mypass&time_auto_change_ip=120
{
"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
}
}
/apimuaproxy4gvinaphone.php - Proxy 4G mobile
| Tham số | Bắt buộc | Mô tả |
|---|---|---|
token | ✅ | API Token |
ngay | ✅ | Số ngày (1-365) |
type | ✅ | HTTP, HTTPS, SOCKS5 |
user | ✅ | Username |
password | ✅ | Password |
GET https://netihot.com/api/apimuaproxy4gvinaphone.php?token=YOUR_TOKEN&ngay=1&type=HTTP&user=myuser&password=mypass
/apimuaproxydatacentervn.phpGET https://netihot.com/api/apimuaproxydatacentervn.php?token=YOUR_TOKEN&goi_id=22&ngay=1&type=HTTP&user=myuser&password=mypass
/apimuaproxydancu.php - Giá: 1,000 VNĐ/ngày| Tham số | Bắt buộc | Mô tả |
|---|---|---|
token | ✅ | API Token |
goi_id | ✅ | 14=Viettel, 15=Vinaphone, 16=Mobifone |
ngay | ✅ | Số ngày (1-30) |
type | ✅ | HTTP, HTTPS, SOCKS5 |
user | ✅ | Username |
password | ✅ | Password |
/apithaotacproxydancu.phpGET https://netihot.com/api/apithaotacproxydancu.php?page=1&limit=20
{
"action": "renew",
"proxy_id": 7,
"days": 7
}
{
"action": "details",
"proxy_id": 7
}
{
"action": "delete",
"proxy_id": 7
}
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
GET https://netihot.com/api/apicheckorderstatus.php?token=YOUR_TOKEN&order_id=70
curl -X POST "https://netihot.com/api/apigiahanvpsnatip.php" \
-H "Content-Type: application/json" \
-d '{"token":"YOUR_TOKEN","order_id":70,"months":1}'
GET https://netihot.com/api/apimuarslcpanel.php?token=YOUR_TOKEN&goi_id=5&domain=myreseller.com&email=admin@myreseller.com
curl -X POST "https://netihot.com/api/apigiahanrslcpanel.php" \
-H "Content-Type: application/json" \
-d '{"token":"YOUR_TOKEN","reseller_id":8,"months":1}'
GET https://netihot.com/api/apimuahostcpanel.php?token=YOUR_TOKEN&goi_id=4&domain=example.com&email=admin@example.com
GET https://netihot.com/api/apithaotachostcpanel.php?token=YOUR_TOKEN
{
"action": "renew",
"hosting_id": 45,
"duration": 1
}
| Mã lỗi | Mô tả |
|---|---|
MISSING_TOKEN | Thiếu token |
INVALID_TOKEN | Token không hợp lệ |
MISSING_PARAMS | Thiếu tham số |
INSUFFICIENT_BALANCE | Số dư không đủ |
PACKAGE_NOT_FOUND | Gói không tồn tại |
OUT_OF_STOCK | Hết hàng |
INVALID_AUTH_FORMAT | User/pass chỉ chứa chữ và số |
INVALID_CHANGE_IP_TIME | Thời gian đổi IP không hợp lệ |
DATABASE_ERROR | Lỗi database |
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);
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']}")
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'];
}
# 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"