I can't get JSON from wikipedia api

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.

You need to include jQuery in your Pen.

Look under settings, do a quick add for jQuery.


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

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