Get the sum of net text bytes difference between current edit and previous one.
GET
/metrics/bytes-difference/net/aggregate/{project}/{editor-type}/{page-type}/{granularity}/{start}/{end}
Bytes difference data
sums. You can filter by editors-type (all-editor-types, anonymous, group-bot, name-bot,
user) 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/bytes-difference/net/aggregate//////'
Response Response Example
200 - Example 1
{
"items": [
{
"editor-type": "string",
"granularity": "string",
"page-type": "string",
"project": "string",
"results": [
{
"net_bytes_diff": 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
start
string
required
end
string
required
Responses
Modified at 2023-08-15 06:49:12