Main Page Not Showing

Main Page Not Showing
0

#1

Hello

Can anyone tell me what I am doing wrong? I am just trying to get the main page to show via JSON and it is not having it.

http://codepen.io/jameswinfield/pen/beBLvY

Thanks
James


#2

You just need &callback=? in your URL, like so:

"https://en.wikipedia.org/w/api.php?action=query&titles=Main%20Page&prop=revisions&rvprop=content&format=json&callback=?"

#3

Ahh thanks for that!