Getting viewers of a video over time

The API does not provide that historical information. You would need to keep track of the value yourself while the content is live.