v1

latestOpenAPI 3.1.02026-07-2416666272.6 KB
Shorts

Import Video

Creates a new video processing job. Routes internally based on source_type to handle YouTube URLs, PandaVideo library videos, or uploaded files.

post/import-video

Request body

source_type'youtube' | 'library' | 'upload' required

The source of the video. Must be youtube, library or upload.

source_urlstring

Required when source_type is youtube. The YouTube video URL.

video_idstring

Required when source_type is library. The PandaVideo library video ID.

pullzone_namestring

Required when source_type is library. The pullzone name associated with the library video.

s3_keystring

Required when source_type is upload. The S3 key of the previously uploaded video file (obtained from the upload endpoints).

start_timenumber required

Start time of the video segment to analyze, in seconds. Must be less than end_time.

end_timenumber required

End time of the video segment to analyze, in seconds. Must be greater than start_time.

aspect_ratio'vertical' | 'horizontal' | 'square'

Desired output aspect ratio.

cookiesstring

Cookies for YouTube authentication (used when source_type is youtube and the video requires authentication).

Response

201

successboolean
job_idstring

UUID of the created short.

status'waiting' | 'processing'

Current short status.

analysis_durationnumber

Duration of the video segment to be analyzed, in seconds.

estimated_processing_secondsnumber

Estimated time to complete processing, in seconds.