Is there a way to create a clip of past X time with API?

Not currently