راهنمای واسط برنامهنویسی کاربردی مدیاویکی
این یک صفحهٔ مستندات برای واسط برنامهنویسی کاربردی مدیاویکی است که بهطور خودکار ایجاد شده است.
مستندات و نمونهها: https://www.mediawiki.org/wiki/Special:MyLanguage/API:Main_page
prop=pageviews (pvip)
- این پودمان نیازمند اختیارات خواندن است.
- منبع: PageViewInfo
- مجوز: 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.
- 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 which ones are supported, under pageviewservice-supported-metrics / module name (siteviews, mostviewed, etc.)
- pageviews
- نمایش ساده صفحه.
- یکی از مقدارهای زیر: pageviews
- پیشفرض: pageviews
- pvipdays
تعداد روزها برای نمایش
- نوع: عدد صحیح
- The value must be between ۱ and ۶۰.
- پیشفرض: 60
- pvipcontinue
When more results are available, use this to continue. More detailed information on how to continue queries can be found on mediawiki.org.
- Show pageview statistics for the main page.
- api.php?action=query&titles=Main_Page&prop=pageviews [باز کردن در صفحهٔ تمرین]