API talk:Lists

rc_id parameter
Would it be possible to add the column 'rc_id' to the recentchanges query report? &#91;user:jldupont&#124;Jean-Lou Dupont] 14:45, 10 July 2007 (UTC)

log_id parameter
Would it be possible to add the column 'log_id' to the logevents query report? &#91;user:jldupont&#124;Jean-Lou Dupont] 14:50, 10 July 2007 (UTC)

Good idea. That way if polling every 2 minutes and a burst of 1000 changes come in, you can tell it the last id (or even unix timestamp) of the last change you received and continue polling from there, confident that you won't lose events.

LogEvents Bug for MW1.11 SVN trunk
The response XML always returns 'logid="0"' Jean-Lou Dupont 21:08, 19 July 2007 (UTC)
 * Filed a bug 10660. --Yurik 22:15, 22 July 2007 (UTC)

Taking to long
takes very long on the first load. I guess this is performance issue. Bryan Tong Minh 21:03, 10 August 2007 (UTC)
 * I think I know why: Title::makeTitle is called for *separately* for *every* title when backlinks/templatelinks/embeddedin is used in generator mode. See here. I'm gonna try to fix that now. --Catrope 18:32, 10 September 2007 (UTC)
 * Hmm, apparently that's not the problem. I'll post a list of SQL queries this request makes and have domas or another DB techie look at it. --Catrope 18:54, 10 September 2007 (UTC)
 * I imported some of those templates from Commons and ran a test request against it:


 * When I ran EXPLAIN against these queries, only the templatelinks part of the first query mentioned using an index. I don't know if that's the problem, though, so I'll ask an expert. --Catrope 19:54, 10 September 2007 (UTC)

Small bug in categorymember?
Does "categorymember" work different from the others? When I try http://en.wikipedia.org/w/api.php?format=xmlfm&action=query&list=embeddedin&eilimit=20&eititle=Template:LGBTProject it returns exactly the same results as http://en.wikipedia.org/w/api.php?format=xmlfm&action=query&list=embeddedin&eilimit=20&eititle=LGBTProject

"categorymember" doesn't seem to be the same - http://en.wikipedia.org/w/api.php?format=xmlfm&action=query&list=categorymembers&cmlimit=20&cmcategory=Category:Compositions_by_Alexander_Glazunov returns nothing, while http://en.wikipedia.org/w/api.php?format=xmlfm&action=query&list=categorymembers&cmlimit=20&cmcategory=Compositions_by_Alexander_Glazunov returns the list of articles. -- SatyrTN 20:40, 18 September 2007 (UTC)

allcategories
Is there not an "action=query&list=allcategories"? Any plans for development? -- SatyrTN 03:18, 8 December 2007 (UTC)

Request for redirect info in backlinks query
Hi,

I see that the backlinks query can already filter results depending if a backlink is a redirect or not (with blfiterredir) but I don't see a way to see in the result if backlinks are actually redirect or not. Could it be added to the API ?

I need to retrieve all backlinks (recursively through redirects), so currently I call recursively the backlinks query and the redirect query. Retrieving the 2 informations in one query would be very useful for me to speed up requests ;)

I quickly looked at the code of the backlinks query and it seems simple to do (I may be overlooking things because I don't know how the API is working) :
 * In run, call $this->addField('page_is_redirect'); if needed.
 * In extractRowInfo, add something like $vals['redirect'] = intval($row->page_is_redirect);.

--NicoV 18:06, 4 January 2008 (UTC)
 * Dude, just use  --Catrope 22:04, 4 January 2008 (UTC)