Im currently using “https://api.twitch.tv/helix/streams” for showing live streams. but the API doesn’t return the channel profile picture. should i use user api ? that’s weird and takes time and make my app’s process heavy.
is there any better way to achieve both live thumbnail and channel profile picture at same time?
Fetch and cach the user data into a database or similar
A users profile image rarely changes.
Thumbnails, whilst the URL structure might not change are only valid when live.
So yes you’ll need two requests and/or hold onto relevant data for longer.
There isn’t an endpoint to return both (since it’s intensive for Twitch and most people don’t need the user profile image from every request)
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.