I'm trying to search WikiNews, both for specific news stories and for the latest headlines. I've been reading about the MediaWiki API (https://www.mediawiki.org/wiki/API:Main_page), but it doesn't seem to map to what I'm trying to do.
Taking two examples, I need to be able to get the latest headlines (ideally for a specific region (United States, France, Great Britain etc) and for a specific topic (Finance, Sport, Media etc), but right now I'd settle for just getting the latest stories regardless. I've tried a couple of things:
https://en.wikinews.org/w/api.php?action=query&prop=categories&clprop=timestamp&format=json
just returnsbatchcomplete
http://en.wikinews.org/w/api.php?action=query&list=recentchanges&rnnamespace=0
looks like it might be more promising, but only if I could filter only to show news stories - and show a good deal more than it currently does. Clearly it would also be desirable to add parameters for location / story type in the query rather than filtering them after the list is received.
With regard to searching, I've had even less luck. I've tried searching on a topic that I know is ~~causing trouble~~ making the news:
https://en.wikinews.org/w/api.php?action=query&titles=Donald_Trump&prop=revisions&rvprop=content&format=json&redirects&continue
the return is not a list of stories!
Has anyone searched WikiNews? Does anyone have any suggestions to achieve what I need to do?