I can't get JSON from wikipedia api

I can't get JSON from wikipedia api
0

#1

I added the callback=? that I saw in the forum somewhere to make it jsonp (avoiding CORS error). still not working. I tried using $.ajax() instead, and no luck.

I put the url in my browser and it does lead to JSON data, but I just can’t retrieve it.

I’ve tried a few solutions that people posted in the forum, but nothing has worked for me.


#2

You need to include jQuery in your Pen.

Look under settings, do a quick add for jQuery.

~Micheal


#3

THANK YOU, MICHAEL!!! I didn’t think it would be something so easy.


#4

You’re welcome! It’s always nice when it’s something easy like that. :slight_smile: