User:Wnt/Templates/Sandbox
Note: Lookup "WP:PageView API" -- see https://wikitech.wikimedia.org/wiki/Analytics/AQS/Pageviews . This is only to produce the sort of output below, so the tag thing is something ELSE. (?)
Note: actual image was at https://en.wikipedia.org/api/rest_v1/page/graph/png/User%3AWnt%2Fsandbox/0/7ce560b13c393bb63eed4b2ebbbb22c7a8ea6672.png -- so this is custom generated output at the server side.
Note: Data URL is https://wikimedia.org/api/rest_v1/metrics/pageviews/per-article/en.wikipedia.org/all-access/user/Template%3AGraph%3APageViews/daily/2017121800/2018011700 -- *server* sends some request to this via wikirest://, not the browser, so parameters aren't directly viewable it would seem.
Actual data is:
{"items":[{"project":"en.wikipedia","article":"Template:Graph:PageViews","granularity":"daily","timestamp":"2017121800","access":"all-access","agent":"user","views":2},{"project":"en.wikipedia","article":"Template:Graph:PageViews","granularity":"daily","timestamp":"2017121900","access":"all-access","agent":"user","views":1},{"project":"en.wikipedia","article":"Template:Graph:PageViews","granularity":"daily","timestamp":"2017122000","access":"all-access","agent":"user","views":3},{"project":"en.wikipedia","article":"Template:Graph:PageViews","granularity":"daily","timestamp":"2017122300","access":"all-access","agent":"user","views":3},{"project":"en.wikipedia","article":"Template:Graph:PageViews","granularity":"daily","timestamp":"2017122400","access":"all-access","agent":"user","views":1},{"project":"en.wikipedia","article":"Template:Graph:PageViews","granularity":"daily","timestamp":"2017122500","access":"all-access","agent":"user","views":1},{"project":"en.wikipedia","article":"Template:Graph:PageViews","granularity":"daily","timestamp":"2017122600","access":"all-access","agent":"user","views":1},{"project":"en.wikipedia","article":"Template:Graph:PageViews","granularity":"daily","timestamp":"2017122700","access":"all-access","agent":"user","views":3},{"project":"en.wikipedia","article":"Template:Graph:PageViews","granularity":"daily","timestamp":"2017122800","access":"all-access","agent":"user","views":0},{"project":"en.wikipedia","article":"Template:Graph:PageViews","granularity":"daily","timestamp":"2017122900","access":"all-access","agent":"user","views":4},{"project":"en.wikipedia","article":"Template:Graph:PageViews","granularity":"daily","timestamp":"2017123000","access":"all-access","agent":"user","views":1},{"project":"en.wikipedia","article":"Template:Graph:PageViews","granularity":"daily","timestamp":"2017123100","access":"all-access","agent":"user","views":1},{"project":"en.wikipedia","article":"Template:Graph:PageViews","granularity":"daily","timestamp":"2018010200","access":"all-access","agent":"user","views":2},{"project":"en.wikipedia","article":"Template:Graph:PageViews","granularity":"daily","timestamp":"2018010300","access":"all-access","agent":"user","views":4},{"project":"en.wikipedia","article":"Template:Graph:PageViews","granularity":"daily","timestamp":"2018010400","access":"all-access","agent":"user","views":3},{"project":"en.wikipedia","article":"Template:Graph:PageViews","granularity":"daily","timestamp":"2018010500","access":"all-access","agent":"user","views":7},{"project":"en.wikipedia","article":"Template:Graph:PageViews","granularity":"daily","timestamp":"2018010600","access":"all-access","agent":"user","views":8},{"project":"en.wikipedia","article":"Template:Graph:PageViews","granularity":"daily","timestamp":"2018010800","access":"all-access","agent":"user","views":1},{"project":"en.wikipedia","article":"Template:Graph:PageViews","granularity":"daily","timestamp":"2018010900","access":"all-access","agent":"user","views":1},{"project":"en.wikipedia","article":"Template:Graph:PageViews","granularity":"daily","timestamp":"2018011100","access":"all-access","agent":"user","views":4},{"project":"en.wikipedia","article":"Template:Graph:PageViews","granularity":"daily","timestamp":"2018011300","access":"all-access","agent":"user","views":2},{"project":"en.wikipedia","article":"Template:Graph:PageViews","granularity":"daily","timestamp":"2018011400","access":"all-access","agent":"user","views":3},{"project":"en.wikipedia","article":"Template:Graph:PageViews","granularity":"daily","timestamp":"2018011500","access":"all-access","agent":"user","views":6},{"project":"en.wikipedia","article":"Template:Graph:PageViews","granularity":"daily","timestamp":"2018011700","access":"all-access","agent":"user","views":6}]}
Graphs are unavailable due to technical issues. There is more info on Phabricator and on MediaWiki.org. |
test