Get pageview counts for a page.
GET
/metrics/pageviews/per-article/{project}/{access}/{agent}/{article}/{granularity}/{start}/{end}
Pageviews data
counts. You can also filter by access method and/or agent type.
CC0 1.0 license.
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://wikimedia.org/api/rest_v1/metrics/pageviews/per-article///////'
Response Response Example
200 - Example 1
{
"items": [
{
"access": "string",
"agent": "string",
"article": "string",
"granularity": "string",
"project": "string",
"timestamp": "string",
"views": 0
}
]
}
Request
Path Params
project
string
required
for example 'en.wikipedia.org', 'www.mediawiki.org' or 'commons.wikimedia.org'.
access
string
required
or mobile-web. If you are interested in pageviews regardless of access method,
use all-access.
agent
string
required
interested in pageviews regardless of agent type, use all-agents.
article
string
required
with underscores. It also should be URI-encoded, so that non-URI-safe characters like
%, / or ? are accepted. Example: Are_You_the_One%3F'.
granularity
string
required
this endpoint is daily and monthly.
start
string
required
end
string
required
Responses
Modified at 2023-08-15 06:49:12