Get edits counts for a project.
GET
/metrics/edits/aggregate/{project}/{editor-type}/{page-type}/{granularity}/{start}/{end}
Edits data
You can filter by editors-type (all-editor-types, anonymous, bot, registered) and
page-type (all-page-types, content or non-content). 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/aggregate//////'
Response Response Example
200 - Example 1
{
"items": [
{
"editor-type": "string",
"granularity": "string",
"page-type": "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. If you're interested in the aggregation of
all projects, use all-projects.
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.
page-type
string
required
namespaces) or non-content (edits on pages in non-content namespaces). If you are
interested in edits regardless of their page-type, use all-page-types.
granularity
string
required
daily and monthly.
start
string
required
end
string
required
Responses
Modified at 2023-08-15 06:49:12