Board Thread:General Coding Help/@comment-24473195-20160402104536

I've been using the api call below to retrieve pages. $.getJSON('/api.php?action=query&format=json&list=querypage&qplimit=500&qppage=' + specialPage, function (result) {					var querypage = result.query.querypage;					querypage.results.forEach(function (value) { currPages += value.title + "\n"; });					if ($("#pageNameId")) {						$("#pageNameId").text(currPages);						reportStatus("Links loaded :" + querypage.results.length);						setProgress("set", 0);					}				});

But strangely enough it seems to even report wrong pages that already existed before the last time it retrieved the cache, in fact wikia seems to report it correctly. Unfortunately, it the mediawiki manuals indicate that it can't be used as a generator. So short of running another API query to check the existence of all pages in this list, is there another way to filter invalid pages? 