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

**URL:** <https://discuss.dev.twitch.com/t/are-the-preview-image-urls-from-kraken-get-stream-by-user-static-permanent/15086>\
**Category:** API\
**Created:** [April 4, 2018, 3:09pm UTC](https://discuss.dev.twitch.com/t/are-the-preview-image-urls-from-kraken-get-stream-by-user-static-permanent/15086 "2018-04-04T15:09:44Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![DLausch](https://avatars.discourse-cdn.com/v4/letter/d/dfb087/32.png) [@DLausch](https://discuss.dev.twitch.com/u/DLausch)\
**Post date:** [April 4, 2018, 3:09pm UTC](https://discuss.dev.twitch.com/t/are-the-preview-image-urls-from-kraken-get-stream-by-user-static-permanent/15086/1 "2018-04-04T15:09:45Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![DDrew](https://avatars.discourse-cdn.com/v4/letter/d/a87d85/32.png) [@DDrew](https://discuss.dev.twitch.com/u/DDrew)\
**Post date:** [April 5, 2018, 2:08am UTC](https://discuss.dev.twitch.com/t/are-the-preview-image-urls-from-kraken-get-stream-by-user-static-permanent/15086/2 "2018-04-05T02:08:25Z")

</div>

The previews are fetched from “[https://static-cdn.jtvnw.net/previews-ttv/](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](https://static-cdn.jtvnw.net/previews-ttv/live_user_%7Busername%7D-%7Bwidth%7Dx%7Bheight%7D.jpg)

---

<div class="post-metadata">

**Author:** ![DLausch](https://avatars.discourse-cdn.com/v4/letter/d/dfb087/32.png) [@DLausch](https://discuss.dev.twitch.com/u/DLausch)\
**Post date:** [April 5, 2018, 2:33am UTC](https://discuss.dev.twitch.com/t/are-the-preview-image-urls-from-kraken-get-stream-by-user-static-permanent/15086/3 "2018-04-05T02:33:54Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![demolished](https://avatars.discourse-cdn.com/v4/letter/d/91b2a8/32.png) [@demolished](https://discuss.dev.twitch.com/u/demolished)\
**Post date:** [April 24, 2018, 3:08pm UTC](https://discuss.dev.twitch.com/t/are-the-preview-image-urls-from-kraken-get-stream-by-user-static-permanent/15086/4 "2018-04-24T15:08:59Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![BarryCarlyon](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/barrycarlyon/32/253_2.png) [@BarryCarlyon](https://discuss.dev.twitch.com/u/BarryCarlyon)\
**Post date:** [April 24, 2018, 4:30pm UTC](https://discuss.dev.twitch.com/t/are-the-preview-image-urls-from-kraken-get-stream-by-user-static-permanent/15086/5 "2018-04-24T16:30:12Z")

</div>

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

as noted [Helix: Defining thumbnail width/height](https://discuss.dev.twitch.com/t/helix-defining-thumbnail-width-height/15467/2)

---

<div class="post-metadata">

**Author:** ![system](https://d2opxh93rbxzdn.cloudfront.net/original/2X/0/05909729875cce3b53e59d5561c4d23bb14948fc.png) [@system](https://discuss.dev.twitch.com/u/system)\
**Post date:** [May 24, 2018, 4:30pm UTC](https://discuss.dev.twitch.com/t/are-the-preview-image-urls-from-kraken-get-stream-by-user-static-permanent/15086/6 "2018-05-24T16:30:13Z")

</div>

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