API for getting the number of links to any page on any Mediawiki project.
page
- required string
- Name of the page to get the link count for.project
- optional string
- Project (domain, name, or database) the page is in, default is en.wikipedia.org.namespace
- optional string
- Comma-separated list of namespace numbers which links from are counted. Leave blank to count all namespaces.filelinks
- optional LinkCountObject
- Number of pages that show the file.categorylinks
- optional LinkCountObject
- Number of category links.wikilinks
- required LinkCountObject
- Number of wikilinks.redirects
- required integer
- Number of redirects to the page.transclusions
- required LinkCountObject
- Number of page that transclude the page.all
- required integer
- Sum of direct and indirect links.direct
- required integer
- Number of links the directly link to the page.indirect
- required integer
- Number of links that link to the page through a redirect.error
- required string
- Message explaining the error that occurred.