Time before preview update

Whats the problem?

Is it the URL to the preview never changes (as it never will)

Or that the image in the preview is the same?

Either way the preview image URL returned by https://api.twitch.tv/kraken/streams/<userID> doesn’t change. It’s image content does

So for the streamer bikeman, /streams/ will always return:

"preview": {
    "small": "https://static-cdn.jtvnw.net/previews-ttv/live_user_bikeman-80x45.jpg",
    "medium": "https://static-cdn.jtvnw.net/previews-ttv/live_user_bikeman-320x180.jpg",
    "large": "https://static-cdn.jtvnw.net/previews-ttv/live_user_bikeman-640x360.jpg",
    "template": "https://static-cdn.jtvnw.net/previews-ttv/live_user_bikeman-{width}x{height}.jpg"
},

The large image URL is always https://static-cdn.jtvnw.net/previews-ttv/live_user_bikeman-640x360.jpg but the image content of that image changes periodically on Twitch’s servers

Further more, you are taking this image and sending it to a Discord chat. You are posting the same image URL over and over and over again, so Discord clients are not bothering to fetch a new preview of the image it’s caching it.

Either way, if you are trying to use the preview image in a going live notification, don’t, the preview image is useless for that use case

1 Like