Receiving user bans

Request

GET https://api.blockdb.ru/{version}/bans/{user}

Headers

Accept: application/json * Authorization: Bearer {api_key} *

Definitions

{version} * - The version of the API you are calling (e.g., v2). {user} * - The SteamID64 or IPv4 address of the user to check for bans. {api_key} * - Your API key, provided by the author upon purchase.

* - mandatory headings. Without them, you will not be able to get a correct answer.

Query Parameters

ignoredProjects (optional) - A comma-separated list of project IDs to be ignored when checking for bans. Example: ignoredProjects=817488636685582356,817488636685582355. ignoreVoteBKM (optional) - A boolean value indicating whether to ignore the CheckVoteBKM option. Set to true to disable the CheckVoteBKM check. Example: ignoreVoteBKM=true.

Responses

Response format application/json

{    
    "status": "OK",
    "bans": [
        {
            "id": 23106,
            "discord_id": 1217154926183186552,
            "steamid64": 76561192344467706,
            "user_ip": "133.133.123.123",
            "reason": "Использование стороннего ПО",
            "project_name": "Молодёжный сервер",
            "duration": 0,
            "created_at": 1715194270
        },
    ]
}

Last updated