رہنمائے میڈیاویکی اےپیآئی
ذیل میں میڈیاویکی اےپیآئی کی دستاویزی تفصیلات درج ہیں جو خودکار طور پر لکھی گئی ہیں۔
دستاویز اور مثالوں کے لیے ملاحظہ فرمائیں: https://www.mediawiki.org/wiki/Special:MyLanguage/API:Main_page
meta=siteviews (pvis)
- اس ماڈیول کے لیے اختیارات مطالعہ درکار ہیں۔
- ماخذ: PageViewInfo
- اجازت نامہ: GPL-3.0-or-later
Shows sitewide pageview data (daily pageview totals for each of the last pvisdays days).
The result format is date (Ymd) => count.
مخصوص پیرامیٹر:
دیگر عمومی پیرامیٹر دستیاب ہیں۔
- pvismetric
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
- Plain pageviews.
- uniques
- Unique visitors.
- ذیل کی قدروں میں سے کوئی ایک: pageviews، uniques
- طے شدہ: pageviews
- pvisdays
The number of days to show.
- Type: integer
- The value must be between 1 and 60.
- طے شدہ: 60
مثالیں
- Show sitewide pageview totals.
- api.php?action=query&meta=siteviews [تختۂ مشق میں کھولیں]
- Show sitewide unique visitor totals.
- api.php?action=query&meta=siteviews&pvismetric=uniques [تختۂ مشق میں کھولیں]