8.2. User API¶
API endpoints related to a user.
8.2.1. Automated edit counter¶
GET /api/user/automated_editcount/{project}/{username}/{namespace}/{start}/{end}/{offset}/{tools}
Get the number of (semi-)automated edits made by the given user in the given namespace and date range.
You can optionally pass in ?tools=1
to get individual counts of each (semi-)automated tool that was used.
Parameters:
project
(required) - Project domain or database name.username
(required) - Account’s username.namespace
(required) - Namespace ID or ‘all’ for all namespaces.start
- Start date in the formatYYYY-MM-DD
. Leave this andend
blank to retrieve the most recent data.end
- End date in the formatYYYY-MM-DD
. Leave this andstart
blank to retrieve the most recent data.tools
- Set to any non-blank value to include the tools that were used and thier counts.
Example:
Get the number of (semi-)automated edits made by Jimbo Wales on the English Wikipedia.
Get a list of the known (semi-)automated tools used by Jimbo Wales in the mainspace on the English Wikipedia, and how many times they were used.
8.2.2. Non-automated edits¶
GET /api/user/nonautomated_edits/{project}/{username}/{namespace}/{start}/{end}/{offset}
Get non-automated contributions for the given user, namespace and date range.
Parameters:
project
(required) - Project domain or database name.username
(required) - Account’s username.namespace
(required) - Namespace ID or ‘all’ for all namespaces.start
- Start date in the formatYYYY-MM-DD
. Leave this andend
blank to retrieve the most recent contributions.end
- End date in the formatYYYY-MM-DD
. Leave this andstart
blank to retrieve the most recent contributions.offset
- Number of edits from the start date.
Example:
Get the newest non-automated mainspace contributions made by Jimbo Wales on the English Wikipedia.