راهنمای واسط برنامه‌نویسی کاربردی مدیاویکی

این یک صفحهٔ مستندات برای واسط برنامه‌نویسی کاربردی مدیاویکی است که به‌طور خودکار ایجاد شده است.

مستندات و نمونه‌ها: https://www.mediawiki.org/wiki/Special:MyLanguage/API:Main_page

list=mostviewed (pvim)

(main | query | mostviewed)
  • این پودمان نیازمند اختیارات خواندن است.
  • This module can be used as a generator.
  • منبع: PageViewInfo
  • مجوز: GPL-3.0-or-later

Lists the most viewed pages (based on last day's pageview count).

پارامترها:
Other general parameters are available.
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 which ones are supported, under pageviewservice-supported-metrics / module name (siteviews, mostviewed, etc.)

pageviews
نمایش ساده صفحه.
یکی از مقدارهای زیر: pageviews
پیش‌فرض: pageviews
pvimlimit

تعداد صفحه‌هات برای بازگرداندن

نوع: عدد صحیح یا max
The value must be between ۱ and ۵۰۰.
پیش‌فرض: 10
pvimoffset

When more results are available, use this to continue. More detailed information on how to continue queries can be found on mediawiki.org.

نوع: عدد صحیح
پیش‌فرض: 0