Get Number of Devices

Last Updated on : 2023-06-21 07:13:10download

Get the number of devices in a specified country, province, and city.

API address

GET: /v1.1/iot-03/si/devices/distribution/count

Request parameter

Parameter name Type IN Required Description
customer_code String false The code of a specified customer.
type Integer false The type of a geographical location: Valid values:
  • 0: country.
  • 1: province.
region String false The region.

Return parameter

Parameter name Type Description
result List The returned result.

Description of result

Parameter name Type Description
name String The name of the location.
count Integer The number of devices.

Request example

GET: /v1.1/iot-03/si/devices/distribution/count?type=0&region=China

Return example

{ "result": [ { "count": 1, "name": "Beijing" }, { "count": 2, "name": "Zhejiang Province" }, { "count": 1, "name": "Anhui Province" } ], "t": 1638201314635, "success": true }

Error code

For more information, see error code.