View source: R/wikipediaTraffic.R
| wikipediaTraffic | R Documentation | 
This function allows to get the pageviews for a given Wikiepdia article.
wikipediaTraffic(page, start, end, project = "en.wikipedia.org", platform = "all-access", agent = "user", granularity = "daily")
page | 
 The Page you want to get the traffic for for example cat.  | 
start | 
 The start date. Format = YYYY-MM-DD  | 
end | 
 The end date. Format = YYYY-MM-DD  | 
project | 
 The Wikipedia Project you want to retrieve the data from. Default is en.wikipedia.org. A list of possible projects can be found here <https://meta.wikimedia.org/w/api.php?action=sitematrix&formatversion=2>  | 
platform | 
 One of: all-access (default), desktop, mobile-app, mobile-web  | 
agent | 
 One of 'user' (human reader, standard), 'spider' (search engine crawler), 'bot' (WMF bots) or 'all-agents'(user, spider and bot)  | 
granularity | 
 The time unit for the response data. As of today, the only supported granularity for this endpoint is daily and monthly. wikipediaTraffic()  | 
wikipediaTraffic("R (programming language)",'2018-01-01','2018-01-10')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.