/metrics/legacy/pagecounts/aggregate/{project}/{access-site}/{granularity}/{start}/{end}
GET
/metrics/legacy/pagecounts/aggregate/{project}/{access-site}/{granularity}/{start}/{end}
Legacy data
You can filter by access site (mobile or desktop) and you can choose between monthly,
daily and hourly granularity as well.
CC0 1.0 license.
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://wikimedia.org/api/rest_v1/metrics/legacy/pagecounts/aggregate/////'
Response Response Example
200 - Example 1
{
"items": [
{
"access-site": "string",
"count": 0,
"granularity": "string",
"project": "string",
"timestamp": "string"
}
]
}
Request
Path Params
project
string
required
for example en.wikipedia. You may pass en.wikipedia.org and the .org will be stripped
off. For projects like commons without language codes, use commons.wikimedia.
access-site
string
required
granularity
string
required
this endpoint are hourly, daily and monthly.
start
string
required
end
string
required
In hourly and daily granularities this value is inclusive, in the monthly granularity
this value is exclusive.
Responses
Modified at 2023-08-15 06:49:12