رہنمائے میڈیاویکی اےپیآئی
ذیل میں میڈیاویکی اےپیآئی کی دستاویزی تفصیلات درج ہیں جو خودکار طور پر لکھی گئی ہیں۔
دستاویز اور مثالوں کے لیے ملاحظہ فرمائیں: https://www.mediawiki.org/wiki/Special:MyLanguage/API:Main_page
list=mostviewed (pvim)
- اس ماڈیول کے لیے اختیارات مطالعہ درکار ہیں۔
- اس ماڈیول کو جنریٹر کے طور پر استعمال کیا جا سکتا ہے۔
- ماخذ: PageViewInfo
- اجازت نامہ: GPL-3.0-or-later
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 which ones are supported, under pageviewservice-supported-metrics / module name (siteviews, mostviewed, etc.)
- pageviews
- Plain pageviews.
- ذیل کی قدروں میں سے کوئی ایک: pageviews
- طے شدہ: pageviews
- pvimlimit
The number of pages to return.
- طرز: عدد صحیح یا max
- The value must be between 1 and 500.
- طے شدہ: 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.
- 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 [تختۂ مشق میں کھولیں]