This API is used to check if a username is valid or not.
https://tools.wmflabs.org/commons-android-app/tool-commons-android-app
/username_exists.py
GET
JSON
- user - This is username of the user, for example Syced (if username has whitespaces then replace them with
_
)
curl --location --request GET 'https://tools.wmflabs.org/commons-android-app/tool-commons-android-app/username_exists.py?user=Syced'
{
"status": "200",
"user": "Syced",
"exists": true
}
{
"status": "200",
"user": "asdasdad1a5sd1a61s5d1a",
"exists": false
}