Danh sách API

Get Proxy List

get

Lấy danh sách Proxy

Authorizations
Path parameters
deviceIdstringRequired

ID của thiết bị

Responses
200Success
application/json
get
/v1/public/proxy-list/{deviceId}
GET /v1/public/proxy-list/{deviceId} HTTP/1.1
Host: api.tsproxy.com
x-api-key: YOUR_API_KEY
Accept: */*
{
  "statusCode": 200,
  "message": "Get proxy list successfully",
  "data": [
    {
      "id": "1",
      "httpLocal": "10.0.0.1:8080",
      "sockLocal": "10.0.0.1:8081",
      "httpRemote": "demo.tsproxy.xyz:10001",
      "sockRemote": "demo.tsproxy.xyz:20001",
      "auth": "tsproxy:tsproxy",
      "ipPublic": "171.250.130.118",
      "status": "running",
      "ethPort": "ether1",
      "mtu": "1492",
      "lastLinkUpTime": "2025-08-28 23:46:57",
      "totalRx": "2641.69",
      "totalTx": "279.07",
      "note": ""
    },
    {
      "id": "4",
      "httpLocal": "10.0.0.4:8080",
      "sockLocal": "10.0.0.4:8081",
      "httpRemote": "demo.tsproxy.xyz:10004",
      "sockRemote": "demo.tsproxy.xyz:20004",
      "auth": "tsproxy:tsproxy",
      "ipPublic": "",
      "status": "connecting",
      "ethPort": "ether1",
      "lastLinkUpTime": "2025-08-28 23:48:49",
      "totalRx": "2327.77",
      "totalTx": "345.85",
      "note": ""
    },
    {
      "id": "34",
      "httpLocal": "10.0.0.34:8080",
      "sockLocal": "10.0.0.34:8081",
      "httpRemote": "demo.tsproxy.xyz:10034",
      "sockRemote": "demo.tsproxy.xyz:20034",
      "auth": ":",
      "ipPublic": "",
      "status": "stopped",
      "ethPort": "ether2",
      "totalRx": "0.00",
      "totalTx": "0.00",
      "note": ""
    }
  ]
}

Update Proxy Auth

post

Cập nhật thông tin xác thực của Proxy, có thể sử dụng "random" để ngẫu nhiên username hoặc password

Authorizations
Body
usernamestringRequired

Tối thiểu 6, tối đa 100 ký tự, chỉ chấp nhận chữ và số

passwordstringRequired

Tối thiểu 6, tối đa 100 ký tự, chỉ chấp nhận chữ và số

deviceIdstringRequired

ID của thiết bị

proxyIdstringRequired

ID của Proxy

Responses
200Success
application/json
post
/v1/public/proxy-auth
POST /v1/public/proxy-auth HTTP/1.1
Host: api.tsproxy.com
x-api-key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 94

{
  "username": "tsproxy",
  "password": "random",
  "deviceId": "669f740ef5c30960f5afffff",
  "proxyId": "1"
}
{
  "statusCode": 200,
  "message": "Update proxy auth successfully",
  "data": "[demo.tsproxy.xyz] - Update proxy auth for 1 successfully"
}

Rotate Proxy

get

Xoay IP Proxy

Authorizations
Path parameters
deviceIdstringRequired

ID của thiết bị

proxyIdstringRequired

ID của Proxy

Responses
200Success
application/json
get
/v1/public/rotate-proxy/{deviceId}/{proxyId}
GET /v1/public/rotate-proxy/{deviceId}/{proxyId} HTTP/1.1
Host: api.tsproxy.com
x-api-key: YOUR_API_KEY
Accept: */*
{
  "statusCode": 200,
  "message": "Rotate proxy successfully",
  "data": "[demo.tsproxy.xyz] - rotate proxy 1 successfully"
}

Stop Proxy

get

Tạm dừng IP Proxy

Authorizations
Path parameters
deviceIdstringRequired

ID của thiết bị

proxyIdstringRequired

ID của Proxy

Responses
200Success
application/json
get
/v1/public/stop-proxy/{deviceId}/{proxyId}
GET /v1/public/stop-proxy/{deviceId}/{proxyId} HTTP/1.1
Host: api.tsproxy.com
x-api-key: YOUR_API_KEY
Accept: */*
{
  "statusCode": 200,
  "message": "Stop proxy successfully",
  "data": "[demo.tsproxy.xyz] - stop proxy 1 successfully"
}

Last updated