Log In

Upload video from m3u8 url

The "Upload video from M3U8 URL" endpoint allows you to upload a video to the PandaVideo platform from an M3U8 URL. By making a POST request to the specified URL (https://import.pandavideo.com:9443/videos/m3u8) and providing the necessary parameters in the request body, you can initiate the upload process.

To access the endpoint, you need to provide the necessary authentication in the headers using the "Authorization" field with the value "API_KEY".

The request body should include the following parameters:

ParameterTypeRequiredDescription
urlstringYesThe M3U8 URL of the video file.
titlestringYesThe title of the video.
folder_idstringNoThe ID of the folder where you want to upload the video.
descriptionstringNoThe description of the video.

📘

Responses

  • 200: Success. The video upload process was initiated successfully.
  • 400: Bad request. Check the provided parameters or syntax.
  • 401: Unauthorized. Make sure you provide a valid API key in the request headers.

By utilizing the "Upload video from M3U8 URL" endpoint, you can programmatically upload videos to the PandaVideo platform from an M3U8 URL. This allows you to import videos that are distributed using the M3U8 format.

Recipes

The Recipes section provides a collection of code examples and sample implementations to help you understand and use the API effectively. Each recipe includes commented code that explains the purpose and functionality of each line. You can refer to these recipes as a guide to implement specific features or interact with the API endpoints.

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