Skip to content
Home » HTTP-API Proxy Interface

HTTP-API Proxy Interface

Overview of Interface Usage

  • When the interface request method is post, the parameter passing method is always body parameter passing, passing data in json format, not form-data, nor url parameter passing
  • When the interface request method is get, the parameter passing is form-data
  • The interface request method is put/patch/delete. For specific parameter passing, refer to the definition in the interface documentation.
  • When the interface request returns 200 successfully, it returns a json object, with code 0 indicating success. If there is return data, it is appended to the data object.
  • When the interface does not return 200, it is considered an exception. Refer to HTTP error codes for exception codes. When code is not 0, it indicates failure, and failure information will be appended to the msg field. Refer to the following table for the error code field.
  • All requests need to include the request header:X-HTTP-KEY, whose value is the secret key copied from the [Open Api - Http API] interface of DICloak software.

GET Obtain Proxy List

GET /v1/api/request/proxy

Request Parameters

NamePositionTypeRequiredInstructions
page_noqueryintegerNoPage number, default 1
page_sizequeryintegerNoPage size, default 10
allquerybooleanNoWhether to obtain full data. When it is true, pageNo and pageSize are ignored.
detailquerybooleanNoDo you need details?
serial_numqueryintegerNoSerial Number
idquerystringNoid
typequerystringNoProxy Type (NON_USE: Do not use HTTP, HTTPS, SSH, SOCKS5, IPFLY)
hostquerystringNoProxy Host
envquerystringNoUsage Profile
remarkquerystringNoRemarks

Response Parameter

NameTypeInstructions
listHttpApiProxyVO
totalinteger

HttpApiProxyVO

NameTypeInstructions
idstringid
create_timestringCreation Time
update_timestringModification Time
serial_numintegerSerial Number
typestringProxy Type (NON_USE: Do not use HTTP, HTTPS, SSH, SOCKS5, IPFLY)
hoststringProxy Host
portintegerProxy Port
user_namestringAgent Account
passwdstringProxy Password
ip_typestringIP Query Channel (IP2LOCATION)
statusstringStatus (WAIT to be detected, SUCCESS, FAIL)
remarkstringRemarks
proxy_ip_infoCheckProxyIpResultVOAgent Information

CheckProxyIpResultVO

NameTypeInstructions
ipstringip
connectbooleanWhether it can be connected
countrystringCountry
country_codestringCountry Code
regionstringRegion (Province)
region_codestringRegion (Province) Code
citystringCity
timezonestringTime Zone
latitudestringLatitude
longitudestringLongitude
zip_codestringPostal Code
err_msgstringError Message
check_timestringMonitoring Time
ip_typestringIP Channel Type
{
  "code": 0,
  "msg": "string",
  "data": {
    "list": [
      {
        "id": "string",
        "create_time": "string",
        "update_time": "string",
        "serial_num": 0,
        "type": "NON_USE",
        "host": "string",
        "port": 0,
        "user_name": "string",
        "passwd": "string",
        "ip_type": "IP2LOCATION",
        "status": "WAIT",
        "remark": "string",
        "proxy_ip_info": {
          "ip": "string",
          "connect": true,
          "country": "string",
          "country_code": "string",
          "region": "string",
          "region_code": "string",
          "city": "string",
          "timezone": "string",
          "latitude": "string",
          "longitude": "string",
          "zip_code": "string",
          "err_msg": "string",
          "check_time": "2025-12-01 12:00:00",
          "ip_type": "string"
        }
      }
    ],
    "total": 0,
    "page_token": "string"
  }
}

GET Obtain Proxy Details

GET /v1/api/request/proxy/{id}

Request Parameters

NamePositionTypeRequiredDescription
idpathstringYes
X-HTTP-KEYheaderstringYes

Return Result

Status CodeMeaning of Status CodesDescriptionData Model
200OKOKReference List Field
{
  "code": 0,
  "msg": "string",
  "data": {
    "id": "string",
    "create_time": "string",
    "update_time": "string",
    "serial_num": 0,
    "type": "NON_USE",
    "host": "string",
    "port": 0,
    "user_name": "string",
    "passwd": "string",
    "ip_type": "IP2LOCATION",
    "status": "WAIT",
    "remark": "string",
    "proxy_ip_info": {
      "ip": "string",
      "connect": true,
      "country": "string",
      "country_code": "string",
      "region": "string",
      "region_code": "string",
      "city": "string",
      "timezone": "string",
      "latitude": "string",
      "longitude": "string",
      "zip_code": "string",
      "err_msg": "string",
      "check_time": "2019-08-24T14:15:22Z",
      "ip_type": "IP2LOCATION"
    }
  },
  "next": "string"
}

PUT Modify Agent

PUT /v1/api/request/proxy/{id}

Request Parameters

NameLocationTypeRequiredDescription
idpathstringYes
X-HTTP-KEYheaderstringYes
bodybodyHttpApiProxyEditReqNo
{
  "type": "NON_USE",
  "host": "string",
  "port": 0,
  "user_name": "string",
  "passwd": "string",
  "ip_type": "IP2LOCATION",
  "status": "WAIT",
  "remark": "string",
  "out_ip": "string"
}

HttpApiProxyEditReq

NameLocationTypeRequiredDescription
typebodystringNoProxy type (NON_USE: without HTTP HTTPS SSH SOCKS5 IPFLY)
hostbodystringNoProxy host
portbodyintegerNoProxy port
user_namebodystringNoAgent Account
passwdbodystringNoProxy Password
ip_typebodystringNoIP Query Channel (IP2LOCATION)
statusbodystringNoStatus (WAIT to be detected, SUCCESS, FAIL)
remarkbodystringNoRemarks
out_ipbodystringNoExport IP

Return the result

{
  "code": 0,
  "msg": "string",
  "data": {}
}

DELETE Delete Agent

DELETE /v1/api/request/proxy/{id}

Request Parameters

NameLocationTypeRequiredDescription
idpathstringYesAgent ID, the ID returned in the list
X-HTTP-KEYheaderstringYes

Return Result

{
  "code": 0,
  "msg": "string",
  "data": {}
}

POST Save Agent

POST /v1/api/request/proxy

{
    "type": Type,
    "host": "string",
    "port": number,
    "user_name": "string",
    "passwd": "string",
    "remark": "string"
}

Request Parameters

NameLocationTypeRequiredDescription
X-HTTP-KEYheaderstringYesnone
bodybodyobjectNonone
typebodystringYesProxy Type (HTTP HTTPS SOCKS5 IPFLY)
hostbodystringYeshost
portbodynumberYesPort
user_namebodystringNoUsername
passwdbodystringNoPassword
remarkbodystringNoRemarks
ip_typebodystringYesIP Query Channel (IP2LOCATION IPAPI)
out_ipbodystringNoExport IP

Return Result

{
    "code": 0,
    "msg": "success",
    "data": {
        "id": "string",
        "serial_num": "number",
        "type": "string",
        "host": "string",
        "port": "number",
        "user_name": "string",
        "passwd": "string",
        "ip_type": "string",
        "status": "string",
        "remark": "string",
        "proxy_ip_info": {
            "ip": "string",
            "connect": "boolean",
            "country": "string",
            "country_code": "string",
            "region": "string",
            "region_code": "string",
            "city": "string",
            "timezone": "string",
            "latitude": "string",
            "longitude": "string",
            "zip_code": "string",
            "err_msg": "string",
            "check_time": "2025-08-18 16:47:13",
            "ip_type": "string"
        }
    },
    "next": "string"
}
NameTypeRequiredDescription
codeintegerNo
msgstringNo
dataHttpApiProxyVONoReference List
nextstringNo