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&... 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?
Best regards, Christian
Sorry, correct link should be ...&prop=links (instead of prop=lin)
-----Ursprüngliche Nachricht----- Von: mediawiki-api-bounces@lists.wikimedia.org [mailto:mediawiki-api-bounces@lists.wikimedia.org] Im Auftrag von Christian Koncilia Gesendet: Montag, 04. Oktober 2010 11:27 An: 'MediaWiki API announcements & discussion' Betreff: [Mediawiki-api] Query PageID for Links (prop=links)
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&... 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?
Best regards, Christian
_______________________________________________ Mediawiki-api mailing list Mediawiki-api@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-api
2010/10/4 Christian Koncilia christian.koncilia@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&... 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&...
Roan Kattouw (Catrope)
Thanks Roan! This is exactly what I was looking for...
Bye Christian
-----Ursprüngliche Nachricht----- Von: mediawiki-api-bounces@lists.wikimedia.org [mailto:mediawiki-api-bounces@lists.wikimedia.org] Im Auftrag von Roan Kattouw Gesendet: Montag, 04. Oktober 2010 11:54 An: MediaWiki API announcements & discussion Betreff: Re: [Mediawiki-api] Query PageID for Links (prop=links)
2010/10/4 Christian Koncilia christian.koncilia@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&... op=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&... r=links&prop=info
Roan Kattouw (Catrope)
_______________________________________________ Mediawiki-api mailing list Mediawiki-api@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-api
mediawiki-api@lists.wikimedia.org