Importing a Single Video from a URL Importing a Single Video from a URL

Importing a Single Video from a URL

If a video file is already online, it's possible to import it directly to the platform using the file's URL and the API, specifically the Create Video Import endpoint.

Depending on the file size the import process might take from a few minutes to a few hours.

Note: The URL needs to point directly to the video file.

Zype's API Docs

To import a file with Zype's API docs website, you need to head to the Video Import section, we are going to use the Create Video Import endpoint to send a POST Request which the only requirement is the URL of the video File and the admin API Key.

The request can be sent from the documentation itself, but there are also are working examples for cURL and different programming languages on how to use the endpoint. 

To create the sample request or send it from the docs:

  1. Enter your account's admin API key into the authentication box
    • auth.png
  2. Enter the body parameters, in this exercise we want to import the video, added to the library, and have it transcoded as a Zype Hosted source. 
    • In the parameter source_url we include the URL of the video file.
    • Optional parameter to_zype_hosted as true to transcode the videos as a Zype Hosted asset.
    • Optional parameter auto_add as true to automatically add the video to the library.
    • Optional Metadata parameters title and description
    • body.png
  3. Click the Try Button or copy the samples, cURL, NodeJS, Ruby PHP and Python are available. 

    • try it.png

The video file will be imported and downloaded to the platform as an async process, a video object will be created on the library and the video will be transcoded after the import process is complete.

Note: Depending on the file size the import process might take from a few minutes to a few hours, please contact support@zype.com in case of issues or problems.