A lot of stats sites use the Get Streams endpoint which will return the current viewer count, and make a request roughly every 5 to 15 minutes. From that you can multiply the viewer count by the interval and keep a running total to get a very rough estimate of watch time.