Get edit counts for a page in a project.
GET
/metrics/edits/per-page/{project}/{page-title}/{editor-type}/{granularity}/{start}/{end}
Edits data
instance 'User:Jimbo_Wales') and a date range, returns a timeseries of edit counts.
You can filter by editors-type (all-editor-types, anonymous, group-bot, name-bot, user).
You can choose between daily and monthly 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/edits/per-page//////'
Response Response Example
200 - Example 1
{
"items": [
{
"editor-type": "string",
"granularity": "string",
"page-title": "string",
"project": "string",
"results": [
{
"edits": 0,
"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. For
projects like www.mediawiki.org, you can use that full string, or just use mediawiki
or mediawiki.org.
page-title
string
required
Spaces will be converted to underscores.
editor-type
string
required
accounts belonging to the bot group), name-bot (registered accounts not belonging to
the bot group but having bot-like names) or user (registered account not in bot group
nor having bot-like name). If you are interested in edits regardless of their
editor-type, use all-editor-types.
granularity
string
required
start
string
required
end
string
required
Responses
Modified at 2023-08-15 06:49:12