Unsplash API with Scriptable?

I would love to see photos from different collections right from Siri or Scriptable. I am new to JS and even more to the Unsplash API, so I’d like to know if it’s possible to play around with the API from Scriptable.

I was able to use their api to get a random photo. Once get an api key like I did you can pretty much use their entire api

let req = new Request('https://api.unsplash.com/photos/random?client_id=YOUR_API_KEY');
let response = await req.loadJSON();
req = await new Request(response.urls.raw);
let image = await req.loadImage();

QuickLook.present(image);

Hope this helps.

1 Like

Awesome, I’ll give it a try. Thank you!