Get size of the video from terminal

wget http://cdnakmi.kaltura.com/p/{PARTNER_ID}/mp4/entry_id/{KALTURA_ID}/file_name/name --spider --server-response -O - 2>&1 | sed -ne '/Content-Length:/{s/.*: //;p}'

I am using the above comment to fetch the video size from terminal. Is there a way by which I can get the video size for different resolutions of the same video?

Hello @yash_kumar_sharma ,

You’ll want to use the flavorasset.list() API with KalturaFlavorAssetFilter.entryIdEqual=$ENTRY_ID.
This will return all renditions (flavours) available per entry ID. The KalturaFlavorAsset object includes the width, height and bitrate properties, amongst others.

Cheers,