Talk:Analytics/AQS/Pageviews

From Wikitech
Jump to: navigation, 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)