Hi, the request to api sometimes works and sometimes no works, I don’t undertand what is the problem.
https://codepen.io/sergiosalfer/pen/ZOVaOb
Please help :(, I get the ajax request from this link http://stackoverflow.com/questions/25891076/wikipedia-api-fulltext-search-to-return-articles-with-title-snippet-and-image
I tried to change $.ajax to this and no working too.
$.getJSON("https://en.wikipedia.org/w/api.php?format=json&action=query&generator=search&gsrnamespace=0&gsrsearch=test&gsrlimit=10&prop=pageimages|extracts|info&pilimit=max&exintro&explaintext&exsentences=1&exlimit=max&inprop=url&callback=?", function (data){ console.log("err"); processData(data.query.pages); }); }
This code worked about 3 hours ago and now no.