Question

How to get vector_thumbnail image via Looker API

  • 23 July 2018
  • 7 replies
  • 509 views

I’m trying to write code to get dashboard thumbnails image via Looker API.

I can get the image through the web URL https://lookinstancexxxx/api/internal/vector_thumbnail/dashboard/98


Dose Looker API have function to get the dashboard thumbnails image?


Thanks


7 replies

Userlevel 4

Hi @lumiaowpi,


We don’t have an external endpoint for this at the moment, though I’ll definitely pass on your feedback to our product team that this would be useful! If you’d like to pass on any details of your use case, I can pass those along as well.


Best,

Molly

We are integrating Looker Embed Dashboard into our application. We’d like to display the dashboard thumbnails image and the customer can click the image to open dashboard.

Userlevel 4

Thanks @lumiaowpi!


I’ve passed that use case on to our product team. The current thumbnails don’t actually use the query data from the dashboard tiles, but are rather loose approximations of the dashboard layout, so a workaround for the moment might be to use static images in text tiles that you could pull and link to dashboards.

Thanks @molly.lippsett . Can i use Looker API to get the static images in text tiles?

Userlevel 2

Hi @lumiaowpi,


It is not currently possible to get static images via text tiles. This is because text tiles do not have a query id and therefore cannot be called via the API. Also, it is likely that the image being used is publically accessible.


Alternatively please see this doc on sharing images using the URL public share setting.


Hoping this helps,


Bernard Kavanagh

Userlevel 2

NEW! Thumbnails are now available via the Looker API, starting with Looker release 7.4




Please do not rely on any Looker URL which contains “internal” in the URL. Internal endpoints exist solely for the Looker UI, are not supported by Looker for external use, and may change or be removed at any time without warning.


Actually, let me state that more strongly: I GUARANTEE that we WILL be making significant changes to internal endpoints, in virtually every Looker release going forward. As we refactor the product to improve efficiency and provide new functionality, a LOT of internal endpoints will be going away.


Do not use internal endpoints!

Hi is there any way that we can grab all thumbnails at once. My requirement is to display a list of dashboards with thumbnails, so there will be 10 to 20 rows and need all thumbnails at once for these 20 rows. Is it possible through API service, or is there any content server which I can use as an html image source tag?

Reply