Are the preview image urls from kraken "Get Stream by User" static / permanent?

Hello,

i want to embed streamer preview images on my website.

my question is, are the urls that you get by kraken api static?

means do this urls ever change?

i dont want to call the api to much times over and over again for no reason.

is if the url is always the same i can just cache this images time by time to embed them into my website.

best wishes

Dan

The previews are fetched from “https://static-cdn.jtvnw.net/previews-ttv/”, so yes they would be static images.

The URL for previews is,

https://static-cdn.jtvnw.net/previews-ttv/live_user_{username}-{width}x{height}.jpg

Hello DDrew,
thanks for your Answer.

So if this is Fact, it makes a lot of APi Calls unnecessary.

So as i am a “Good Boy” i will not (need to) use the API for this Task anymore and cache the images time by time to reduce Load on Twitch´s CDN too.

Thank you

Cheers

Dan

1 Like

How can the {width} and {height} be defined in helix?

Set {width} and {height} to whatever width and height you want

as noted Helix: Defining thumbnail width/height

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.