Last modified: 2008-06-29 22:46:50 UTC
Unless I'm missing something there is no feature for action=query to report which articles were redirects. There is a "redirects" option which actually resolves any articles which are redirects but this unnecessarily heavyweight. You can also use "prop=revisions" to look at the wikitext of the article but this is also heavyweight and potentially error prone since the syntax of a # REDIRECT is surprisingly variable. The redirect data is available at sql query time for no extra cost.
Does "prop=info" do what you're asking?
This is possible, see <http://meta.wikimedia.org/w/api.php?action=query&prop=info&titles=RFP> <page pageid="50390" ns="0" title="RFP" touched="2008-06-28T14:43:55Z" lastrevid="935917" counter="0" length="42" redirect="" />
Yes prop=info does what I want. I would suggest the documentation be added. So far there is only: * prop=info (in) * Get basic page information such as namespace, title, last touched date, ... It's hard for us dummies to know that "..." includes redirect info without trial and error.
(In reply to comment #3) > Yes prop=info does what I want. I would suggest the documentation be added. So > far there is only: > > * prop=info (in) * > Get basic page information such as namespace, title, last touched date, ... > > It's hard for us dummies to know that "..." includes redirect info without > trial and error. > I added it to [[mw:API:Query - Properties#info_.2F_in]]
(In reply to comment #4) > I added it to [[mw:API:Query - Properties#info_.2F_in]] > Argh, should be http://www.mediawiki.org/wiki/API:Query_-_Properties#info_.2F_in