tencent cloud

Smart Media Hosting

Traffic and Statistics

PDF
포커스 모드
폰트 크기
마지막 업데이트 시간: 2026-01-07 10:49:16

Introduction

This document provides API introduction about traffic and statistics as well as example code.

Query Space Traffic Statistics

Feature Description

Query tenant space traffic volume stats by day.

Sample Code

try {
let result = await SMHStatsApis.getGetTrafficInfo({
libraryId:"libraryId",
spaceId:"spaceId"
});
}catch (e) {
// exception handling
}

Parameter Description

Request parameters.
Description
Type
Required or Not
libraryId
Media Library ID, obtained after creating a media library in the media hosting console, see Create Media Library
String
Yes
spaceId
Space ID. If the media library is in single-tenant mode, this parameter is fixed as hyphen (`-`); if the media library is in multi-tenant mode, you must specify this parameter. For retrieval, see Create Tenant Space.
String
No
startDate
Start date of the query, in the format "YYYY-MM-DD", time zone is UTC+8. If not set, default to the date 30 days before EndDate.
String
No
endDate
Query the end date in the "YYYY-MM-DD" format, time zone is UTC+8. If not set, defaults to the previous day.
String
No

도움말 및 지원

문제 해결에 도움이 되었나요?

피드백