#How to find out if a profile has a ToS violation?
6 messages · Page 1 of 1 (latest)
For a single user you could use the endpoint documented at https://lichess.org/api#tag/Users/operation/apiUser
If you have multiple users, you can list them all in a post request body with the endpoint documented at https://lichess.org/api#tag/Users/operation/apiUsers
The user will have a field "tosViolation":true if they have been marked for violating the terms of service. (the field will not be present if the user hasn't been marked)
I didn't find this with Ctrl+F. Thanks 😉
Yeah, the browsable documentation has the response schemas collapsed, so need to un-collapse them to find the tosViolation field.
Another way to find things is to use the download button at the top, which contains all information about the api in a openapi json file.
Opening the json-file and Ctrl+F would have had better chances... 😅
Sorry for another question, but what would be the best way to get a list of all users?