[Mediawiki-api] Query PageID for Links (prop=links)

Roan Kattouw roan.kattouw at gmail.com
Mon Oct 4 09:53:32 UTC 2010


2010/10/4 Christian Koncilia <christian.koncilia at gmx.net>:
> Hi,
>
> I would like to get a list of all links. Basically, this query produces the
> expected result:
>
> http://en.wikipedia.org/w/api.php?action=query&titles=Active_Worlds&prop=lin
> ks
>
> However, I would like to get the PageID for each link (instead of or
> together with the name). Is there a simple way to do this?
>
http://en.wikipedia.org/w/api.php?action=query&titles=Active_Worlds&generator=links&prop=info

Roan Kattouw (Catrope)



More information about the Mediawiki-api mailing list