API endpoints related to a project.
GET /api/project/normalize/{project}
Get the URL, database name, domain and API path of a given project.
Parameters:
project
(required) - Project domain or database name.
Example:
Basic access information about the English Wikipedia.
https://xtools.wmflabs.org/api/project/normalize/enwiki https://xtools.wmflabs.org/api/project/normalize/en.wikipedia https://xtools.wmflabs.org/api/project/normalize/en.wikipedia.org
GET /api/project/namespaces/{project}
Get the localized names for each namespace of the given project. The API endpoint for the project is also returned.
Parameters:
project
(required) - Project domain or database name.
Example:
Get the namespace IDs and names of the German Wikipedia.
https://xtools.wmflabs.org/api/project/namespaces/dewiki https://xtools.wmflabs.org/api/project/namespaces/de.wikipedia https://xtools.wmflabs.org/api/project/namespaces/de.wikipedia.org
GET /api/project/admins_groups/{project}
Get a list of users who are admins, bureaucrats, CheckUsers, Oversighters, or stewards of the project and list which of these user groups they belong to.
Parameters:
project
(required) - Project domain or database name.
Example:
Get administrative users of the French Wikipedia:
https://xtools.wmflabs.org/api/project/admins_groups/frwiki https://xtools.wmflabs.org/api/project/admins_groups/fr.wikipedia.org
GET /api/project/adminstats/{project}/{days}
Get users of the project that are capable of making 'admin actions', along with various stats about the actions they took. Time period is limited to one month.
Parameters:
project
(required) - Project domain or database name.days
- Number of days before present to fetch data for (default 30, maximum 30).
Example:
Get various statistics about actions taken by admins of the French Wikipedia over the past week:
https://xtools.wmflabs.org/api/project/adminstats/frwiki/7 https://xtools.wmflabs.org/api/project/adminstats/fr.wikipedia.org/7