From Wikitech
Jump to navigation Jump to search

monthly aggregates merged by Wikidata

I would like to use the pageview data for ranking objects on a map. For this I could need an aggregate over a month or more to reduce the noise. For me it would be additionally interessting to merge over all Wikipedia articles in different languages with an common Wikidata entry. I have over 4 Mio articles in my database so a dump file would be faster than tons of request to an API. In the moment I use for ranking the maximal length of an article, it works but seem not to be the best solution. Is this possible? --kolossos (talk) 18:33, 6 January 2016 (UTC),@Nemo bis, Mforns:

@Kolossos: Monthly aggregation is now a standard feature of the API ezachte (talk) 17:36, 25 January 2017 (UTC)
Thanks. --kolossos (talk) 12:23, 29 January 2017 (UTC)

link to source

Can you add a link to the repo where the source code is? Thanks! Bgerstle (talk)

That seems to be analytics/aqs (and, confusingly, not analytics/pageview-api). --tgr (talk) 01:30, 13 September 2016 (UTC)

Viewing monthly stats?

For big Wikipedias, looking at stats by day is probably worthwhile, for wikis of lesser size, that may not be the best way to look at data. How can one pull data for a month, rather than a day? Thanks. — billinghurst sDrewth 05:56, 29 February 2016 (UTC)

Eventually I worked it out, the data to do this is somewhat buried, and a little obtuse. I have added an example to the main. — billinghurst sDrewth 06:03, 29 February 2016 (UTC)
@billinghurst: Monthly aggregation is now a standard feature of the API ezachte (talk) 17:36, 25 January 2017 (UTC)

More than 1000 articles in most viewed list?

I'm trying to compile an offline version of the Spanish Wikipedia and would like to get the top 20 or 30,000 articles (space is limited, cant fit all 1.3 million). Is there a way to get more than the 1,000 most viewed articles? Nixcamic (talk) 06:43, 8 February 2018 (UTC)