tencent cloud



Last updated: 2022-01-19 14:59:37

1. API Description

Domain name for API request: live.tencentcloudapi.com.

This API is used to query the data of billable LVB bandwidth and traffic.

A maximum of 100 requests can be initiated per second for this API.

We recommend you to use API Explorer
Try it
API Explorer provides a range of capabilities, including online call, signature authentication, SDK code generation, and API quick search. It enables you to view the request, response, and auto-generated examples.

2. Input Parameters

The following request parameter list only provides API request parameters and some common parameters. For the complete common parameter list, see Common Request Parameters.
This document describes the parameters for Signature V1. It's recommended to use the V3 signature, which provides higher security. Note that for Signature V3, the common parameters need to be placed in the HTTP Header. See details.

Parameter Name Required Type Description
Action Yes String Common parameter. The value used for this API: DescribeBillBandwidthAndFluxList.
Version Yes String Common parameter. The value used for this API: 2018-08-01.
Region No String Common parameter. This parameter is not required for this API.
StartTime Yes String Start time point in the format of yyyy-mm-dd HH:MM:SS.
EndTime Yes String End time point in the format of yyyy-mm-dd HH:MM:SS. The difference between the start time and end time cannot be greater than 31 days. Data in the last 3 years can be queried.
PlayDomains.N No Array of String LVB playback domain name. If this parameter is left empty, full data will be queried.
MainlandOrOversea No String Valid values:
Mainland: query data for Mainland China,
Oversea: query data for regions outside Mainland China,
Default: query data for all regions.
Note: LEB only supports querying data for all regions.
Granularity No Integer Data granularity. Valid values:
5: 5-minute granularity (the query time span should be within 1 day),
60: 1-hour granularity (the query time span should be within one month),
1440: 1-day granularity (the query time span should be within one month).
Default value: 5.
ServiceName No String Service name. Valid values: LVB, LEB. The sum of LVB and LEB usage will be returned if this parameter is left empty.
RegionNames.N No Array of String Region. Valid values:
China Mainland
Asia Pacific I
Asia Pacific II
Asia Pacific III
North America
South America
Middle East

3. Output Parameters

Parameter Name Type Description
PeakBandwidthTime String Time point of peak bandwidth value in the format of yyyy-mm-dd HH:MM:SS.
PeakBandwidth Float Peak bandwidth in Mbps.
P95PeakBandwidthTime String Time point of 95th percentile bandwidth value in the format of yyyy-mm-dd HH:MM:SS.
P95PeakBandwidth Float 95th percentile bandwidth in Mbps.
SumFlux Float Total traffic in MB.
DataInfoList Array of BillDataInfo Detailed data information.
RequestId String The unique request ID, which is returned for each request. RequestId is required for locating a problem.

4. Example

Example1 Sample request

Input Example

&<Common request parameters>

Output Example

  "Response": {
    "P95PeakBandwidth": 117042.495,
    "P95PeakBandwidthTime": "2019-02-01 00:00:00",
    "DataInfoList": [
        "Bandwidth": 117042.495,
        "Flux": 4389093.551,
        "Time": "2019-02-01 00:00:00",
        "PeakTime": "2019-02-01 00:00:00"
        "Bandwidth": 110364.995,
        "Flux": 4138687.32,
        "Time": "2019-02-01 00:05:00",
        "PeakTime": "2019-02-01 00:05:00"
        "Bandwidth": 99380.978,
        "Flux": 3726786.679,
        "Time": "2019-02-01 00:10:00",
        "PeakTime": "2019-02-01 00:10:00"
    "PeakBandwidth": 117042.495,
    "PeakBandwidthTime": "2019-02-01 00:00:00",
    "RequestId": "f54e3deb-f318-4148-8a68-3c959642f9ec",
    "SumFlux": 12254567.55

5. Developer Resources


TencentCloud API 3.0 integrates SDKs that support various programming languages to make it easier for you to call APIs.

Command Line Interface

6. Error Code

The following only lists the error codes related to the API business logic. For other error codes, see Common Error Codes.

Error Code Description
FailedOperation Operation failed.
InvalidParameterValue Invalid parameter value.
MissingParameter Parameter missing.
Contact Us

Contact our sales team or business advisors to help your business.

Technical Support

Open a ticket if you're looking for further assistance. Our Ticket is 7x24 avaliable.

7x24 Phone Support