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

action=rating

(main | rating)
  • This module requires read rights.
  • This module requires write rights.
  • Source: UserDash
  • License: GPL-2.0-or-later

Obtain and set ratings on a page.

Specific parameters:
Other general parameters are available.
pageid
⧼apihelp-rating-param-pageid⧽
Type: integer
pagetitle
⧼apihelp-rating-param-pagetitle⧽
answer
⧼apihelp-rating-param-answer⧽
Type: integer
recent
⧼apihelp-rating-param-recent⧽
Examples:
Gets ratings for a page.
api.php?action=rating&pagetitle=Example [open in sandbox]
Rates on a page as current user.
api.php?action=rating&pagetitle=Example&answer=2 [open in sandbox]
Obtains all ratings belonging to the user.
api.php?action=rating [open in sandbox]
Obtains the last rating time of the user.
api.php?action=rating&recent=true [open in sandbox]