English
English
简体中文
Contact Us
Register
Log In

Get Number of Devices

Last Updated on : 2022-04-02 08:59:00download

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.