Category Statistics

Last Updated on : 2023-06-15 05:11:13

Make a statistics of the category data. The returned value includes the number of banners or videos in the category.

API address

GET: /v1.0/iot-03/app-contents/categories/statistic

Request parameter

Parameter name Type IN Required Description
category_ids String query true The list of category IDs, separated with commas (,). Maximum value: 10.

Return parameter

Parameter name Type Description
result List The statistics of the category.

Description of result

Parameter name Type Description
category_id String The ID of a specified category.
banner_count Integer The number of banners.
content_count Integer The number of image and text contents.
media_count Integer The number of video contents.

Request example

GET: /v1.0/iot-03/app-contents/categories/statistic?category_ids=1,2

Return example

{ "result": [ { "media_count": 0, "category_id": "1432271805678096432", "banner_count": 0, "content_count": 4 } ], "t": 1630328208053, "success": true }

Error code

For more information, see error code.