Hello, API’s are majorly confusing me. I thought I was accessing it correctly, but the data in my log is very confusing and not what I am looking for. I’d appreciate any help I could get.
You are using $.getJSON incorrectly. You need a callback function (a second parameter of the $.getJSON method) which will execute once the response comes back from the API. The callback function will need an argument (i.e. call it data). Inside the callback function, you can console.log(data) to see the results.
However, you will find, you will have a CORS error which you can fix with adding &origin=* to the end of your linkTwo variable.
Thank you very much!