Fetching thumbnail for a stream or video, via browser, with helix API?

Helix uses user IDs not usernames. You need to convert a name to ID to use Helix.

https://dev.twitch.tv/docs/api/reference#get-streams is the streams reference.