Does, this get you what you need?
http://en.wikipedia.org/w/api.php?action=query&prop=links&titles=Amoxicillin&format=json&pllimit=500
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 <[email protected]> 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
> [email protected]
> https://lists.wikimedia.org/mailman/listinfo/mediawiki-api
>
_______________________________________________
Mediawiki-api mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-api