hi I am trying to make a random quote generator but I am having trouble with the api. Can someone please tell me how i can fix it. this is my project http://codepen.io/qwertytrewq/pen/mWXwrb.
Have a look at your browser console, it gives the following error:
GET http://quotes.rest/quote/random.json 401 (Unauthorized). For this API you need an API key (which seems to be paid…). So, I suggest using another API.
This is the API I used:
It’s quick and the JSON is easy to understand.
You don’t actually have to use an API of any kind for this project. You can just throw a bunch of quotes in an array and iterate through. You might as well, there are other challenges further down the list that DO require APIs.