API Reference

Get Bandwidth by Folder


Retrieve bandwidth consumption data for videos within a specific folder within a specified time frame.

Endpoint

GET /analytics/traffic

Parameters

ParameterTypeDescription
folder_idstringID of the folder for which data is being fetched
start_datestringStart date of the time frame (YYYY-MM-DD)
end_datestringEnd date of the time frame (YYYY-MM-DD)

Responses

📘

Responses

  • 200: Success.
  • 400: Bad request. Check the provided parameters.
  • 401: Unauthorized. Authentication failed or not provided.
  • 404: Not found.
  • 500: Internal server error. Please try again later

Example

GET https://api-v2.pandavideo.com/analytics/traffic?folder_id=b5c5ef0c-0b3e-480b-8bb9-46092713df17&start_date=2023-11-16&end_date=2023-11-19

Notes

  • The folder_id parameter specifies the unique identifier of the folder for which bandwidth consumption data is requested.
  • start_date and end_date define the time frame within which bandwidth consumption data is analyzed.
  • The response includes total_consumed indicating the total bandwidth consumed during the specified period and average_daily_consumption, which represents the average daily consumption within the given time frame.

This documentation provides an overview of how to use the endpoint to retrieve bandwidth consumption data for videos within a specific folder during a specified period. Adjust the parameters accordingly in your API requests to fetch the required bandwidth consumption information.

Language
Credentials
Header
Click Try It! to start a request and see the response here!