Users
Users

Get ban info by ID

get/users/{id}/ban

Request

  • Base URL: https://api.yani.tv
  • URL: https://api.yani.tv/users/{id}/ban
  • Auth: none declared

Path parameters

idinteger required

User ID

Response

Success response

Example response

{
  "response": {
    "ban": {
      "end": 10203212121,
      "active": true,
      "reason": "Some reason for ban",
      "is_unban": false,
      "id": 123
    },
    "moderator": {
      "id": 123,
      "nickname": "nickname",
      "roles": [
        "moderator"
      ],
      "avatars": {
        "small": "https://example.com/small.webp",
        "big": "https://example.com/big.webp",
        "full": "https://example.com/full.avif"
      }
    }
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.