Get Records Count

Purpose   

To fetch the count of the records.

Endpoints

CopiedGET {module_api_name}/actions/count

Request Details   
 

Request URL   

https://www.zohoapis.com/iot/{version}/{module_api_name}/actions/count

Note: "zohoapis.com" refers to the constant domain address used in Zoho IoT apis to fetch records from the registered application in the authorization process.

Replace your location's Base API URI (.in, .eu, .sa, or .au) instead of .com.
 

Supported Modules 

Devices, Assets, Locations, Alarms, Datapoints, Products, Manufacturers, Vendors, Certificates, Policies, Commands, Users, and Custom Modules (user-defined modules created based on specific business requirements).

 

Headers 

Authorization: Zoho-oauthtoken {{oauth}}

 

Scope   

scope=ZohoIOT.modules.{module_name}.{operation_type}

 

Possible module api names   

devices, assets, locations, alarms, datapoints, products, manufacturers, vendors, certificates, policies, commands, users.

 

Possible operation types   

ALL - Full access to the record
READ - Get records count from the module

 

Parameters  

Param name, type, mandatory,


  • cvid- int, mandatory

To get the records count based on cvid.
Possible values: Positive integer values only.

Sample Request: First API Call

Copiedcurl --location -g 'https://www.zohoapis.com/iot/v1/commands/actions/count?cvid=2000000067080' \
--header 'Authorization: Zoho-oauthtoken {{oauth}}'

Sample Response

Copied{"count":12}