Hey! Is there a twitch API for fetching total minutes/hours streamed across the entire platform?
No. There are no analyticaly type endpoints.
Any educated guesses as to where these sites get their analytics from?
They poll various APIs Twitch provides and do their own math internally to make a guestimation.