Reputation: 1610
Using the MediaWiki API, is it possible to retrieve a list of page titles associated with a page of a given name via outlinks? For instance, assume that there is a page called "Cat" in my MediaWiki installation which has the contents
Cats hate dogs, but love mice.
where links to to other pages are in bold. Is there an API call which would return a list of titles of the linked pages (i.e. "Dog" and "Mouse")?
Upvotes: 1
Views: 138
Reputation: 1041
You want prop=links, eg: https://en.wikipedia.org/w/api.php?action=query&prop=links&titles=Dog
docs: https://www.mediawiki.org/wiki/API:Properties#links_.2F_pl
Upvotes: 2