How to run a GET query on lovelace and display a picture from that result as lovelace picture card

I used source.unplash.com to display random image everytime I open Homeassistant lovelace. However it is deprecated and now I have to run a GET query to get the url to that image. How can I perform that without create a custom card?

Unsplash API documentation:

May be a generic camera?

No, I am using an automation for getting the image each 2 mins, then display that image, but it is not efficient.

Api rate limit is 50pics/hour. What I wonder is it fetch the image only when I open the lovelace, not by polling interval

Unlikely to be possible. There is no out-of-the-box communication channel from the frontend to the backend.