Thumbnail of video

Bonjour à tous,

Savez-vous s’il existe une URL pour récupérer la miniature d’une vidéo ? L’idée est de l’intégrée sur mon site.


Good morning all,

Do you know if there is a URL to retrieve the thumbnail of a video? The idea is to integrate it on my site.

Thank you


Yes: https://domain.tld/static/previews/:videoUUID. For example:

Super, merci !

Hi, this doesn’t seem to work anymore :frowning:

I’m trying to transform <iframe> embeds into static image + link.

I found /lazy-static/thumbnails/ and /lazy-static/previews/ paths, but they don’t work with the video UUID, it seems that they require an API call to get another UUID, which doesn’t work in my case as I want to avoid any third-party call.


Yes sorry we had to generate unique preview filename to invalidate the cache when the preview file changed. You have to ask PeerTube API to find the preview filename/url

It’s not possible to use the API, as we don’t want to include any third-party call or code. It would be nice to have a endpoint redirect to the current thumbnail, like Youtube does :slight_smile:

Oh okay I understand. Then please create an issue on Issues · Chocobozzz/PeerTube · GitHub :slight_smile:

Thanks, done: Endpoint to get the video thumbnail · Issue #6147 · Chocobozzz/PeerTube · GitHub