https://www.mediawiki.org/wiki/Extension:PageImages does this
https://en.wikipedia.org/w/api.php?action=query&prop=pageimages&titles=Steve_Jobs

On 22 January 2015 at 15:23, practikalmind <practikalmind@gmail.com> wrote:

Hi,

 

What is the best way to get the main image of a wiki page? For example, I would like to retrieve

http://upload.wikimedia.org/wikipedia/commons/thumb/b/b9/Steve_Jobs_Headshot_2010-CROP.jpg/220px-Steve_Jobs_Headshot_2010-CROP.jpg for the Steve Jobs wiki page.

 

thanks

 


_______________________________________________
Mediawiki-api mailing list
Mediawiki-api@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-api