Thanks, Roan.

I tried that, and it still gives me the mediawiki search results for Einstein - for instance, I dont see the first image on the Einstein wikipedia page which is File:Einstein1921_by_F_Schmutzer_4.jpg - I get a different set of results - the first being File:Albert_Einstein_Head.jpg  - now this works fine for Einstein, but in the case of University of Zurich page, I get an insect as the first result, whereas I would like to get the university of Zurich logo, which is the first image in the infobox on the page.

Thanks
Anand

On Fri, Mar 12, 2010 at 2:34 PM, Roan Kattouw <roan.kattouw@gmail.com> wrote:
2010/3/12 Anand Ramanathan <rcanand@gmail.com>:
> http://en.wikipedia.org/w/api.php?action=query&list=search&srnamespace=6&srsearch=Albert%20Einstein&format=xml&srlimit=10
>
> but that gives me a list of search results for the search string from
> wikipedia, and not images on the page.
>
Try http://en.wikipedia.org/w/api.php?action=query&generator=search&gsrnamespace=6&gsrsearch=Albert%20Einstein&gsrlimit=10&prop=images&format=xml

Roan Kattouw (Catrope)

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