MediaWiki API help

This is an auto-generated MediaWiki API documentation page.

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

list=problemreports (pr)

(main | query | problemreports)
  • This module requires read rights.
  • Source: ProblemReports
  • License: GPL-2.0-or-later

Get problem reports list

Parameters:
prwiki

Wiki ID from which show problem reports (default 0 - shows from current wiki)

Type: integer
prshowall

Shows reports from all wikis (default 0)

Type: boolean (details)
prlimit

Limit of problem reports to show (default 50)

Type: integer
proffset

Offset of problem reports to show

Type: integer
prtype

Type of problems to show (default -1 shows all)

Type: integer
prlang

Filter by language of wikis to get reports from

prstaff

Show only problems which need staff help

Type: boolean (details)
prarchived

Show only archived problems

Type: boolean (details)
prid

Shows just problem report with given ID

Type: integer
prtoken

Used for internal communication

prshowcounts

Show just the per type counts

Type: boolean (details)
Examples:
Fetch a list of all reported problems for the current wiki
api.php?action=query&list=problemreports [open in sandbox]
Get up to 100 "vandalized page" (problem type 1) reports for the current wiki
api.php?action=query&list=problemreports&prlimit=100&prtype=1 [open in sandbox]
Fetch a list of all reported problems for the current wiki which are marked as needing staff attention
api.php?action=query&list=problemreports&prstaff=1 [open in sandbox]
Fetch all reported problems from all wikis
api.php?action=query&list=problemreports&prshowall=1 [open in sandbox]
Fetch all reported problems from all Polish (language code pl) wikis
api.php?action=query&list=problemreports&prshowall=1&prlang=pl [open in sandbox]
Just show the amount of problem reports in the database, broken down by problem type
api.php?action=query&list=problemreports&prshowcounts=1 [open in sandbox]