Hello,
I am trying to figure out why there is a discrepancy between the number of backlinks produced via the API versus the main web interface:
http://en.wikipedia.org/w/index.php?title=Special:WhatLinksHere/Template:Tax... -> produces 100 results, with more pages available
http://en.wikipedia.org/w/api.php?action=query&list=backlinks&bltitl... -> produces only 48 results (ending in "Leaf-mimic katydid")
Is there something wrong with my query string?
Thanks, Karl
Sorry to answer my own question:
The "embeddedin" query is what I needed to produce the same results as "What links here" with transclusions shown. My query should have been: http://en.wikipedia.org/w/api.php?action=query&list=embeddedin&eitit...
Cheers! Karl
On Sun, Jul 19, 2009 at 4:21 AM, Karl Ostmo kostmo@gmail.com wrote:
Hello,
I am trying to figure out why there is a discrepancy between the number of backlinks produced via the API versus the main web interface:
http://en.wikipedia.org/w/index.php?title=Special:WhatLinksHere/Template:Tax... -> produces 100 results, with more pages available
http://en.wikipedia.org/w/api.php?action=query&list=backlinks&bltitl... -> produces only 48 results (ending in "Leaf-mimic katydid")
Is there something wrong with my query string?
Thanks, Karl
If you click on "Hide transclusions" in the WhatLinksHere page, you'll see the list you are getting from the API for backlinks.
Seems you want some form of the "all links" list query to get the transclusions, but I'm not quite sure.
On Sun, Jul 19, 2009 at 12:21 PM, Karl Ostmokostmo@gmail.com wrote:
Hello,
I am trying to figure out why there is a discrepancy between the number of backlinks produced via the API versus the main web interface:
http://en.wikipedia.org/w/index.php?title=Special:WhatLinksHere/Template:Tax... -> produces 100 results, with more pages available
http://en.wikipedia.org/w/api.php?action=query&list=backlinks&bltitl... -> produces only 48 results (ending in "Leaf-mimic katydid")
Is there something wrong with my query string?
Thanks, Karl
Mediawiki-api mailing list Mediawiki-api@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-api
Hi,
You want this
http://en.wikipedia.org/w/api.php?action=query&list=embeddedin&eitit...
to get the transclusions.
Robert
mediawiki-api@lists.wikimedia.org