HTML Layout Exersize - Unsplash Random Image Not Working

The random image URL given in this exersize is not working

Here is the URL

Hi,
Indeed it gives 404.
There was a breaking change for sure. Things are living out there. Nothing to worry about. Substitute it with any working image URL.

Cheers.

EDIT : It can also be because we are not logged in.
I did not use the service for years if I ever did.

trying again

Hi,

My response is below, but first an and a couple new course requests (which I can make as a separate thread if needed).

Are you the real Mosh responding? If so, thanks for your courses, I really like them; I'm currently trying to make some learning progress using them!

One, learning track that would be very useful would be Quality Assurance (which is what I do). I’d love to see a learning track that would be focused on TEST AUTOMATION specifically the creation and running of automated test scripts for web apps. Related to this would be things like how QA automation fits into topics like DevOps, SRE, and CICD. It’s an important set of topics.

A second, learning track would be that of CMS’s – eg WordPress, AEM, etc. WordPress is the most widely adopted CMS out there. AEM is pretty important within the enterprise.

I was hoping you were still using Unsplash as it appears to be a very useful service, esp for quick down and dirty “hello world” apps w/ images (images are a pita to manage). Anyway, the problem w/ the thing that is breaking the demo code is with the way the images are being called (unsplash …/documentation#get-a-random-photo) has become deprecated. Bummer as that would be easy and useful (which I assume is why you used it too :grinning:).

I’d like to figure out how to use Unsplash for random images – it looks like a nice service – but I don’t want to figure out how to hit it’s endpoints - it looks like I’d have to set up an account and use PITA api keys or something on the pages. See unsplash @ …/documentation#get-a-random-photo for details.

In the meantime, in order to fix the bug in the exercise quickly you could use one of these:

This person got to the bottom of it on Reddit (“What happened to source unsplash com”)

Thank you for reaching out to us about source unsplash com*! We do want to let you know that* source unsplash com was created before the Unsplash API. Unfortunately, Unsplash no longer provides any support for source unsplash com We only left up this option for legacy developers who had been using source unsplash com before the Unsplash API was created. If you plan to use Unsplash images, it can only be through the Unsplash API since that is all we support at this time. You can find more information about the Unsplash API here:

Unsplash API: here’s where you can sign up and check out the API
API Guidelines
API Documentation

Cheers!

Willard Brooks
#MoshFan

This video shows how to use PostMan to get images from UnSplash