Share Image gallery with external application (website)

As Nextcloud is generating previews of images in several sizes, it would be nice if these previews could be shared with an xternal applcation. ie. an image gallery on a website.

Is there a way doing this?

Would it be possible using a combination of curl and webdav?