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
_______________________________________________
Mediawiki-api mailing list
Mediawiki-api@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-api

Reply via email to