Get started
  • English
  • 简体中文
Official Site
Get started
  • English
  • 简体中文
Official Site
  • Get started
  • Concepts
  • Guides
  • Device capabilities & events
  • API reference
    • Public conventions
    • Development specification
    • accessToken: Get administrator token
    • API request example
    • Return codes
    • Interface call limits
    • Account docking
    • Device APIs
    • Device live broadcast
    • Push configuration
    • Cloud storage service
    • Resource pool quota
    • Legacy APIs (deprecated)
      • Door lock access (legacy)
      • Device messages (legacy)
      • Device query (deprecated)
        • checkDeviceBindOrNot
        • deviceOnline
        • listDeviceDetailsByIds
        • listDeviceDetailsByPage
        • unBindDeviceInfo
        • upgradeProcessDevice
        • bindDeviceChannelInfo
        • bindDeviceInfo
        • bindDeviceList
        • deviceBaseDetailList
        • deviceBaseList
        • deviceList
        • deviceOpenDetailList
        • deviceOpenList
        • deviceVersionList
        • listDeviceAbility
        • queryBaseDeviceChannelInfo
        • queryOpenDeviceChannelInfo
        • shareDeviceList
      • Device maintenance (legacy)
      • Device operation (legacy)
      • Device ability (legacy)
      • Motion detection config (legacy)
      • Preset collection (legacy)
      • Timed cruise (legacy)
      • Local recording config (legacy)
      • Audio volume (legacy)
      • Storage (legacy)
      • Video and imaging (legacy)
      • Time zone (legacy)
      • Wi-Fi (legacy)
      • Local recording query (legacy)
  • SDK and tools
  • Solutions
  • Platform and support
On this page
listDeviceDetailsByPage: Paging device details for querying
Function details
Request address
Request format
Incoming parameter description
Sample input
Return data field description
Sample output
Error codes
Related

listDeviceDetailsByPage (Paging Device Details for Querying - Imou Open Platform)

listDeviceDetailsByPage: Paging Device Details for Querying - Imou Open Platform

listDeviceDetailsByPage: Paging device details for querying

Deprecated: Use Paged device detail (device.detail.page). This legacy HTTP page is retained for existing integrations.

Function details

Paging to obtain information about device channels under the account.

Request address

https://openapi-[DataCenter].easy4ip.com/openapi/listDeviceDetailsByPage

Request format

HTTP POST. JSON body layout: Request conventions. Sign with Signature.

Incoming parameter description

Parameter nameParameter typeRequired or notDefault valueLegal valueParameter description
pageSizeintyesNumber of entries per page, range: 1-50
pagelongyesSearch page numbers, starting from 1
tokenStringyesAdministrator or sub-account accessToken
sourceStringbindAndSharebind: Get bound devices
share: Get shared devices
bindAndShare: Get bound and shared devices
Relationship type, this parameter does not work when passed to sub accounts

Sample input

{
 "system": {
 "ver": "1.0",
 "appId": "lcdxxxxxxxxx",
 "sign": "xxxxxxxxxxxxxx",
 "time": 1603370757,
 "nonce": "1a411d5a-e88b-45ee-b590-53da98375edd"
 },
 "id": "beb24691-d173-473a-8d3d-92db3aee0027",
 "params": {
 "token": "xxxxxxxxxxxxxxxxxxxxxxxxx",
 "page": 1,
 "pageSize": 10,
 "source": "bindAndShare"
 }
}

Return data field description

FieldTypeDescription
countIntegerThe number of devices found in this query
deviceList.upgradeInfo.versionStringLatest version number
deviceList.upgradeInfo.attentionStringUpgrade description information
deviceList.upgradeInfo.packageUrlStringDownload address
deviceList.deviceIdStringDevice serial number
deviceList.productIdStringunique id of product
deviceList.canBeUpgradeBooleanWhether the device program can be upgraded
deviceList.accessTypeStringDevice access type: (empty) Open Platform program access; Lechange Imou/easy4ip conventional devices; Easy4IP Easy4IP program devices; P2P P2P program devices
deviceList.deviceVersionStringDevice version number
deviceList.playTokenStringDevice playback code, used by OpenSDK
deviceList.brandStringDevice brand information, lechange - imou equipment, general - general equipment
deviceList.encryptModeStringDevice encryption mode: 0- Device default encryption 1- User defined encryption
deviceList.lastOffLineTimeStringLast offline time of the device
deviceList.deviceNameStringDevice name
deviceList.deviceStatusStringDevice status, online/offline:/sleep/upgrading
deviceList.deviceModelStringDevice model
deviceList.catalogStringDevice categories, NVR/DVR/HCVR/IPC/SD/IHG/ARC
deviceList.deviceAbilityStringDevice Capability Set, Comma Separated
deviceList.channelNumIntegerThe maximum number of channels supported by the device for access
deviceList.sourceStringPermission type, bind/share
deviceList.isSubDeviceBooleanWhether it is a sub-device
deviceList.parentDeviceIdStringThe serial number of the parent device to which the child device belongs
deviceList.parentProductIdStringThe productId of the parent device to which the child device belongs
deviceList.channelList.channelPicUrlStringCover image of channel
deviceList.channelList.csStatusStringCloud storage status, notExist: Package not activated, using: Cloud storage activated but not expired, expired: Package expired
deviceList.channelList.shareFunctionsStringPermission strings under shared permissions, separated by commas
deviceList.channelList.cameraStatusStringMask status, on: open, off: closed
deviceList.channelList.channelIdStringchannel number
deviceList.channelList.channelNameStringChannel name
deviceList.channelList.channelAbilityStringChannel capability set, separated by commas
deviceList.channelList.channelStatusStringChannel status, online/offline:/sleep/upgrading
deviceList.channelList.lastOffLineTimeStringLast offline time of the channel
deviceList.channelList.resolutions.nameStringThe resolution name displayed on the client interface
deviceList.channelList.resolutions.imageSizeIntegerResolution enumeration
deviceList.channelList.resolutions.streamTypeIntegerStream type, 0: main stream, 1: secondary stream
deviceList.subDeviceList.subDeviceProductIdStringSub device product ID
deviceList.subDeviceList.subDeviceIdStringSub device serial number
deviceList.subDeviceList.subDeviceNameStringSub device name
deviceList.subDeviceList.subDeviceModelStringSub device model
deviceList.subDeviceList.subDeviceStatusStringSub device status, online/offline
deviceList.aplist.apIdStringAccessory ID
deviceList.aplist.apNameStringAccessory Name
deviceList.aplist.apTypeStringAccessory Type

Sample output

{
 "result": {
 "msg": "Operation is successful.",
 "code": "0",
 "data": {
 "count": 1,
 "deviceList": [
 {
 "catalog": "IPC",
 "source": "bind",
 "deviceId": "TESTQWERXXXX",
 "deviceName": "TP7-XXXX",
 "wifiTransferMode": "2.4Ghz",
 "deviceStatus": "online",
 "accessType": "",
 "channelList": [
 {
 "csStatus": "using",
 "shareFunctions": "",
 "cameraStatus": "off",
 "lastOffLineTime": "20230921T212756Z",
 "channelName": "TP7-XXXX",
 "channelStatus": "online",
 "resolutions": [
 {
 "streamType": 0,
 "name": "1080P",
 "imageSize": 18
 },
 {
 "streamType": 1,
 "name": "480P",
 "imageSize": 5
 }
 ],
 "channelAbility": "CloseCamera,other,NVM,PT,WideDynamic",
 "channelId": 0,
 "channelPicUrl": ""
 }
					],
 "encryptMode": "0",
 "tlsPrivatePort": "37778",
 "brand": "lechange",
 "devicePassword": "xxxxxxxxxxxx",
 "playToken": "",
 "deviceUsername": "xxxxxxxx==",
 "salt": "xxxxxxxxxxxx",
 "upgradeInfo": {
 "packageUrl": "xxxxxxxxxxxxx",
 "attention": "Improve device performance and reinforce safety",
 "appForced": false,
 "isAppForced": false,
 "version": "V2.680.0000000.28.R.210911"
 },
 "httpPort": "80",
 "rtspPort": "554",
 "channelNum": 1,
 "deviceVersion": "xxxxxxxxxxx",
 "sdcardStatus": "normal",
 "subDeviceList":[],
 "aplist": [],
 "deviceAbility": "WLAN,Auth,HSEncrypt,BreathingLight,CloudStorage,LocalStorage",
 "lastOffLineTime": "20220926T164059Z",
 "deviceModel": "TP7",
 "canBeUpgrade": true
 }
 ]
 }
 },
 "id": "20tboni0x9z"
}

Error codes

This method may return the codes below. See Return codes and Capability errors for the full catalog.

Gateway and auth (SN / TK / OP)

CodeMeaningNext step
SN1001Signature errorCheck sign per Development specification
TK1002Token invalid or expiredRefresh accessToken
OP1002Missing required parameterAdd required fields
OP1003Invalid parameterMatch this page’s parameter table
OP1009Permission deniedCheck token and device bind/share grants
OP1013Total call limit exceededReduce call rate
OP1014Daily per-interface limit exceededSee Interface call limits
DV1007Device offlineWait until the device is online

See Return codes · OP/SN/TK for the full catalog.

Sub-accounts (SUB)

CodeMeaningNext step
SUB1001–SUB1002Sub-account lacks API permissionUpdate policy via addPolicy
SUB1005Sub-account token expiredRefresh subAccountToken
SUB1006No device grant for sub-accountCheck Resource and device serial
SUB1008Sub-account not bound to appCreate and bind the sub-account first

See Return codes · SUB.

Device access and channels (DV10xx)

CodeMeaningNext step
DV1007Device offline or timeoutWait for the device to come online
DV1009Device busyRetry later
DV1012Insufficient share/grant permissionCheck sub-account Permission / Resource
DV1019Capability not supportedConfirm model and capability list
DV1020Channel offlineCheck channel status
DV1026Function not supportedUse another API or upgrade firmware
DV1028Not bound or channel missingVerify deviceId / channelId

See Return codes · DV.

Related

  • Development specification
  • API conventions
  • Paged device detail
  • Module index
listDeviceDetailsByIds
unBindDeviceInfo