Wikipedia Viewer link won't run when button pushed

Hi all

I’ve made it through the first few steps of setting up the viewer.
I used the FCC link for the random search.
Now I’m trying to ‘GET’ the information from the input cell to the link for the search function.
I tried the search function with a specific search term and it worked, but when I put it in the js nothing comes back to the console for testing?
I’d appreciate any help, I’ve been stuck on this for hours.

Thanks I found a couple errors with the id and missing ‘#’
I still have no output to the console

I tweaked your code and was able to get the API working. Here is my hint to get the basic API call working: the “type” and “dataType” properties would like to have a string paired with them.

1 Like

Thanks so much
As soon as I read the comment, I knew where I needed to make the changes.