如何使用维基百科API获取维基百科特定页面的页面浏览量统计? [英] How to use Wikipedia API to get the page view statistics of a particular page in wikipedia?
本文介绍了如何使用维基百科API获取维基百科特定页面的页面浏览量统计?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
stats.grok.se 工具提供维基百科特定页面的浏览量统计信息.有没有一种方法可以使用维基百科 api 来获取相同的信息?页面浏览量计数器属性实际上是什么意思?
The stats.grok.se tool provides the pageview statistics of a particular page in wikipedia. Is there a method to use the wikipedia api to get the same information? What does the page views counter property actually mean?
推荐答案
Pageview API 几天前发布:https://wikimedia.org/api/rest_v1/metrics/pageviews/per-article/{project}/{access}/{agent}/{article}/{granularity}/{start}/{end}
The Pageview API was released a few days ago: https://wikimedia.org/api/rest_v1/metrics/pageviews/per-article/{project}/{access}/{agent}/{article}/{granularity}/{start}/{end}
- https://wikimedia.org/api/rest_v1/?doc#/
- https://wikitech.wikimedia.org/wiki/Analytics/AQS/Pageview_API立>
{
"items": [
{
"project": "en.wikipedia",
"article": "Foo",
"granularity": "daily",
"timestamp": "2015101000",
"access": "all-access",
"agent": "all-agents",
"views": 79
},
{
"project": "en.wikipedia",
"article": "Foo",
"granularity": "daily",
"timestamp": "2015101100",
"access": "all-access",
"agent": "all-agents",
"views": 81
}
]
}
这篇关于如何使用维基百科API获取维基百科特定页面的页面浏览量统计?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文