Range

Function

This API is used to get device information before login.

Request Message

None.

Sample:

POST /API/Login/Range HTTP/1.1
{
    "version": "1.0",
    "data": {}
}

Response Message

Parameter Description

Table 1
ParameterRangeTypeDescription
device_type"IPCstringUsed to determine the type of current device before login.
cur_langstringCurrent display language.
usernameMax length: 16 bytestringUsername.
passwordstringPassword
pwd_tip"ipc_tip",
"nvr_tip",
"dvr_tip"
stringTip of password panel.
password_tipsboolWhether to display the tip of password.
lang_strsobjectList of languages supported for selection, language types such as Table 2.
default_langstringDefault languages.
custom_nameintCustom name.
custom_logointCustom logo.
first_login_flagboolThe sign of logging in to IE with an empty password, that is, whether it is the first time to log in.
wifi_ipstringWifi ip.
web_titlestring"Web Viewer".
site_versionstringVersion.
support_recover_passwordboolwhether it support password retrieval function.
use_recover_passwordboolWhether to use the password retrieval function.
default_usernamestringDefault username,when there is no password, it is displayed when it is used to modify the password.
password_encboolWhether the password is encrypted for transmission.
http_api_versionstringThe currently supported API version, the current version is: V1.0. (Note: This field is only available in version 8.2.2)
Table 2

lang_strs

ParameterRangeTypeDescription
CHS中文string
CHT繁体中文string
CSYČEŠTINAstring
DANDANSKstring
ENUEnglishstring
FINFINNISHstring
FRAFRANÇAISstring
DEUDEUTSCHstring
ELLΕΛΛΗΝΙΚΑstring
HEBעבריתstring
HUNMAGYARstring
ITAITALIANOstring
JPN日本語string
PLKPOLSKIstring
PTGPORTUGUÊSstring
RUSРУССКИЙstring
ESNESPAÑOLstring
THAไทยstring
SLVSLOVENIAstring
ROMROMANIANstring
BRGBULGARIANstring
ARAARABICstring
HINHINDIstring
VIEVIETNAMstring
HOLHOLLANDstring
TURTURKEYstring
POSPERSIANstring
SVESVENSKAstring
KORKOREANstring
INDINDONESIANstring
PTBPORTUGUESEstring
FLMFLEMISHstring
UKAУкраїнськаstring
SLKSlovenskystring

Tips:

The response message of the Range request may not contain all the fields in the above table, and the fields not included indicate that the device does not support this parameter configuration.

Sample:

HTTP/1.1 200 OK
Content-Type: application/json
{
    "result": "success",
    "data": {
        "username":
        {
            "type": "string",
            "min_len": 1,
            "min_len": 16
        },
        "password":
        {
            "type": "string",
            "min_len": 8,//The minimum password length supported by the system
            "min_len": 16//Maximum password length supported by the system
        },
        "pwd_tip": "nvr_tip",
        "first_login_flag": true,
        "default_username": "abc",
        "password_enc": true,
        "http_api_version": "V1.026",
        "default_lang": "CHS",
        "custom_name": 0,
        "custom_logo": 0,
        "login_exclusivity": false,
        "lang_strs":
        {
            "CHS": "中文",
            "CHT": "繁体中文",
            "CSY": "ČEŠTINA",
            "DAN": "DANSK",
            ....
            "PTB": "PORTUGUESE",
            "FLM": "FLEMISH",
            "UKA": "Українська",
            "SLK": "Slovensky"
        },
        "support_recover_password": true,
        "use_recover_password": true,
        "syn_activation_pwd_enable": true,
        "activation_pwd": true,
        "site_version": "dayzip"
    }
}

Error Code

See Response Messages Body and Common error_code for more information.