MediaWiki API help

This is an auto-generated MediaWiki API documentation page.

Documentation and examples: https://www.mediawiki.org/wiki/Special:MyLanguage/API:Main_page

(al)

(main | query | alllinks)

  • This module requires read rights.

  • This module can be used as a generator.

  • Source: MediaWiki

  • License: GPL-2.0-or-later

Enumerate all links that point to a given namespace.

Specific parameters:

Other general parameters are available.

alcontinue

When more results are available, use this to continue. More detailed information on how to continue queries can be found on mediawiki.org.

alfrom

The title of the link to start enumerating from.

alto
⧼apihelp-query+alllinks-param-to⧽
alprefix
⧼apihelp-query+alllinks-param-prefix⧽
alunique
⧼apihelp-query+alllinks-param-unique⧽
⧼paramvalidator-help-type-presenceboolean⧽
alprop
⧼apihelp-query+alllinks-param-prop⧽
ids
title
Adds the title of the link.
⧼paramvalidator-help-type-enum⧽

Default: title

alnamespace

The namespace to enumerate.

⧼paramvalidator-help-type-enum⧽

Default: 0

allimit

How many total items to return.

Type: integer or max

The value must be between 1 and 500.

Default: 10

aldir

The direction in which to list.

⧼paramvalidator-help-type-enum⧽

Default: ascending

Examples:

List linked titles, including missing ones, with page IDs they are from, starting at B.

api.php?action=query&list=alllinks&alfrom=B&alprop=ids|title

[open in sandbox]

List unique linked titles.

api.php?action=query&list=alllinks&alunique=&alfrom=B

[open in sandbox]

Gets all linked titles, marking the missing ones.

api.php?action=query&generator=alllinks&galunique=&galfrom=B

[open in sandbox]

Gets pages containing the links.

api.php?action=query&generator=alllinks&galfrom=B

[open in sandbox]