How to get latest videos using api?

Call the videos API as documented

I like to use

https://api.twitch.tv/helix/videos?user_id=whoever&first=1&sort=time&type=archive

To get the most recent vod.

Again, as documented.