Wikipedia api JSON

Here’s my wiki app:

I did $.getJSON() the same way I did it with my weather app and I’m not having any luck.

I get the user to type in something to search on wikipedia, stored that to a variable, and concatenated that into the url for the wiki api. I checked out that url, and it does indeed lead to some JSON data.

https://en.wikipedia.org/w/api.php?action=query&format=json&list=search&srsearch=free%20code%20camp&callback=?

Now why can’t I retrieve that JSON data?