Thanks Roan for your fast replay,

my problem now is that I have only the curid and not the title of the  
page...
How can I get the page title from a curid?

regards,
Marco

> marco tanzi schreef:
>> Hi folks,
>>
>> I would like to know if it is possible to retrieve from a wikipedia  
>> page
>> only the main description and, if it is available, the image.
>> For example I would like to get only the main description and the  
>> image
>> of the U2 band from http://en.wikipedia.org/wiki/index.html?curid=52780 
>> .
>> How can I do this? I looked on the Wikipedia API
>> (http://en.wikipedia.org/w/api.php) but I haven't found nothing that
>> feet my needs.
>> It would be great if there is a web service that retrieve an XML/JSON
>> object with this data
> What could work is:
>
> http://en.wikipedia.org/w/api.php?action=query&titles=U2&prop=revisions&rvprop=content&rvsection=0
>
> This simply returns everything before the first == Section == header.
>
> As for the image: there's no such thing as *the* image belonging to a
> page. You can get all images on a page, of course, using
>
> http://en.wikipedia.org/w/api.php?action=query&titles=U2&prop=images
>
> (Note that these two queries can also be combined by using
> prop=revisions|images .)
>
> Roan Kattouw (Catrope)
>
> _______________________________________________
> Mediawiki-api mailing list
> [email protected]
> https://lists.wikimedia.org/mailman/listinfo/mediawiki-api


_______________________________________________
Mediawiki-api mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-api

Reply via email to