Does, this get you what you need?
http://en.wikipedia.org/w/api.php?action=query&prop=links&titles=Amo...
It should return all the Wikipedia links in the article. The external links are links to web properties outside of Wikipedia.
//Ed
On Wed, Sep 12, 2012 at 10:12 PM, Gunaratna, Dalkandura Arachchige Kalpa Shashika Silva gunaratna.2@wright.edu wrote:
Hi, I have been using mediaWiki API to get categories a page belongs to using 'query' for 'action' and 'category' for 'prop'.
Now I want to get external link part of a page. For example, Amoxicillin wikipedia page http://en.wikipedia.org/wiki/Amoxicillin has a table like structure in the external links section down in the bottom of the page having links to many other related concepts to Amoxicillin. I want to retrieve links of those related concepts. Currently, I am looking for a way to get these details. I am not sure yet whether I can do it through the API or I just have to process the page to get those details. If there is a way to get these details through MediaWiki API, please respond. Thank you very much in advance.
regards, Kalpa
Mediawiki-api mailing list Mediawiki-api@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-api