API method to retrieve video for specific time range in XProtect?

Is there any supported way to retrieve video for a specific time range directly via an API call from Milestone XProtect?

For example, given a camera ID and a start/end time, we would like to programmatically get the corresponding video.
If this is possible, could you please point me to the recommended API/SDK and any basic documentation or sample code?
Thank you.

I think the questions and answers crossed here. Please see the answer I made on your previous post.

You are welcome to elaborate if the answer does not fit or leads to follow-up questions.