Search code examples
mediawikimediawiki-apimediawiki-extensions

Get written data per day on MediaWiki


I want to graph how much data is written inside my MediaWiki per day to graph the activity. The exact amount of bytes is not important, I just want to see the relative change per day/month/year.

I only found the Statistics Log extension which is not maintained since 1.15.

Any solution via extension/api/mysql would be great. If I can get the value of the bytes/chars or anything else by any method I can do the rest.


Solution

  • Not an easy answer. But you can get started with "RecentChanges" table and related API: https://www.mediawiki.org/wiki/API:RecentChanges

    rc_old_len
    This field stores the size, in bytes, of previous revision's text. 
    
    rc_new_len
    This field stores the size, in bytes, of the current revision's text.
    

    Reference: https://www.mediawiki.org/wiki/Manual:Recentchanges_table#rc_new_len