MediaWiki API ヘルプ
このページは自動生成された MediaWiki API の説明文書ページです。
説明文書と例: https://www.mediawiki.org/wiki/API
list=mostviewed (pvim)
- このモジュールは読み取りの権限を必要とします。
- このモジュールはジェネレーターとして使用できます。
- Source: PageViewInfo
- License: GPL-3.0+
Lists the most viewed pages (based on last day's pageview count).
パラメーター:
- pvimmetric
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.
- 値 (次の値のいずれか1つ): pageviews
- 既定値: pageviews
- pvimlimit
The number of pages to return.
- No more than 500 (5,000 for bots) allowed.
- Type: integer or max
- 既定値: 10
- pvimoffset
When more results are available, use this to continue.
- Type: integer
- 既定値: 0
例:
- List the top 10 pages.
- api.php?action=query&list=mostviewed [サンドボックスで開く]
- Show pageview data for each of the top 10 pages.
- api.php?action=query&generator=mostviewed&prop=pageviews [サンドボックスで開く]