MediaWiki API help
This is an auto-generated MediaWiki API documentation page.
Documentation and examples: https://www.mediawiki.org/wiki/API
list=wblistentityusage (wbeu)
- This module requires read rights.
- This module can be used as a generator.
- Source: WikibaseClient
- License: GPL-2.0-or-later
Returns all pages that use the given entity IDs.
Parameters:
- wbeuprop
Properties to add to the result.
- url
- If enabled the url of the entity will be added to the result.
- Values (separate with | or alternative): url
- wbeuaspect
Only return entity IDs that used this aspect.
- Values (separate with | or alternative): S, L, D, T, C, X, O
- wbeuentities
Entities that have been used.
- This parameter is required.
- Separate values with | or alternative. Maximum number of values is 50 (500 for bots).
- wbeulimit
How many entity usages to return.
- No more than 500 (5,000 for bots) allowed.
- Type: integer or max
- Default: 10
- wbeucontinue
When more results are available, use this to continue.
Examples:
- Get pages that use the entity Q2.
- api.php?action=query&list=wblistentityusage&wbeuentities=Q2 [open in sandbox]
- Get pages that use the entity Q2 with URL included.
- api.php?action=query&list=wblistentityusage&wbeuentities=Q2&wbeuprop=url [open in sandbox]
- Get pages that use the entity Q2 and the aspect was sitelink or statement.
- api.php?action=query&list=wblistentityusage&wbeuentities=Q2&wbeuaspect=S|O [open in sandbox]