[Mediawiki-api] absolute path of images in a Page
Hasanat Kazmi
hasanatkazmi at gmail.com
Sat May 7 04:22:52 UTC 2011
Hello list,
I am trying to get all images in a page but I want absolute paths of those
images not just image name (aka image titles).
e.g.
To get all images in article "Pakistan International Airlines", I call
http://commons.wikimedia.org/w/api.php?action=query&prop=images&titles=Pakistan%20International%20Airlines&format=xml
but then I am returned a image titles. I have to call this for each image to
get obsoulte URL:
http://commons.wikimedia.org/w/api.php?action=query&titles=File:Pakistan%20Int%20AL%20B777-200ER%20AP-BGL.jpg&prop=imageinfo&iiprop=url
This means that I have to make many (order of 2) calls to get absolute paths
of all images in an article. Is there any way this all can be squeezed into
just one API call?
Regards
Hasanat Kazmi
+923464362473
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.wikimedia.org/pipermail/mediawiki-api/attachments/20110507/53775df2/attachment.htm
More information about the Mediawiki-api
mailing list