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

prop=pageviews (pvip)

(main | query | pageviews)
  • Questo modulo richiede i diritti di lettura.
  • Fonte: PageViewInfo
  • Licenza: GPL-3.0-or-later

Shows per-page pageview data (the number of daily pageviews for each of the last pvipdays days).

The result format is page title (with underscores) => date (Ymd) => count.

Parametri specifici:
Sono disponibili altri parametri generali.
pvipmetric

The metric to use for counting views. Depending on what backend is used, not all metrics might be supported. You can use the siteinfo API (action=query&meta=siteinfo) to check, under pageviewservice-supported-metrics / <module name>

pageviews
Plain pageviews.
Uno dei seguenti valori: pageviews
Default: pageviews
pvipdays

Il numero di giorni da mostrare.

Type: integer
The value must be between 1 and 60.
Default: 60
pvipcontinue

Quando più risultati sono disponibili, usa questo per continuare. Informazioni più dettagliate su come continuare le query possono essere trovate su mediawiki.org.

Esempio:
Show pageview statistics for the main page.
api.php?action=query&titles=Main_Page&prop=pageviews [apri in una sandbox]