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=pageVisit
(main | pageVisit)
- This module requires read rights.
- This module requires write rights.
- Source: UserDash
- License: GPL-2.0-or-later
Obtain and set page visits on a page.
Specific parameters:
Other general parameters are available.
- pageid
- ⧼apihelp-pageVisit-param-pageid⧽
- Type: integer
- pagetitle
- ⧼apihelp-pageVisit-param-pagetitle⧽
- unique
- ⧼apihelp-pageVisit-param-unique⧽
- delete
- ⧼apihelp-pageVisit-param-delete⧽
Examples:
- Gets all page visits for a user
- api.php?action=pageVisit [open in sandbox]
- Gets a user's most recent visit time
- api.php?action=pageVisit&recent=true [open in sandbox]
- Get the list of names of pages the user has visited
- api.php?action=pageVisit&unique=true [open in sandbox]
- Removes all records of the user visiting a particular page
- api.php?action=pageVisit&delete=true&pagetitle=Example [open in sandbox]