# I am Getting a Blank Image for Unsplash API

**URL:** https://forum.kirupa.com/t/i-am-getting-a-blank-image-for-unsplash-api/649821
**Category:** web dev
**Created:** [November 30, 2021, 5:46am UTC](https://forum.kirupa.com/t/i-am-getting-a-blank-image-for-unsplash-api/649821 "2021-11-30T05:46:27Z")
**Posts on this page:** 2
**Page:** 2

<div class="post-metadata">

### Author: ![kirupa](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/kirupa/32/11616_2.png) [@kirupa](https://forum.kirupa.com/u/kirupa)
#### Post date: [December 23, 2021, 4:37pm UTC](https://forum.kirupa.com/t/i-am-getting-a-blank-image-for-unsplash-api/649821/22 "2021-12-23T16:37:53Z")

</div>

That is because your API call is for results for cars, and the results don’t change much. You could randomly cycle through the results and pick a different image each time: [Random Numbers in JavaScript](https://www.kirupa.com/html5/random_numbers_js.htm)

Where I have [0] specified, that is where you can provide a different number to load a different image 😀

---

<div class="post-metadata">

### Author: ![Pragati\_Sahane](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/pragati_sahane/32/16100_2.png) [@Pragati\_Sahane](https://forum.kirupa.com/u/Pragati_Sahane)
#### Post date: [December 24, 2021, 5:53am UTC](https://forum.kirupa.com/t/i-am-getting-a-blank-image-for-unsplash-api/649821/23 "2021-12-24T05:53:53Z")

</div>

Ok thank you

[Previous page](https://forum.kirupa.com/t/i-am-getting-a-blank-image-for-unsplash-api/649821.md?page=1)
