Users

Get user by id

Get user by id

get/users/id{id}

Request

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

Path parameters

idinteger required

User ID

Query parameters

need_countsboolean

Return field lists_count in response object

Response

Success response

Example response

{
  "response": {
    "id": 1,
    "nickname": "nickname",
    "about": "About text",
    "banned": false,
    "ids": {
      "shikimori": {
        "id": 1,
        "nickname": "shiki_nickname"
      },
      "tg_nickname": "tg_nickname",
      "vk": 12345
    },
    "avatars": {
      "big": "https://example.com/big.webp",
      "full": "https://example.com/full.avif",
      "small": "https://example.com/small.webp"
    },
    "bdate": 1104537600,
    "last_online": 1104537600,
    "sex": 0,
    "roles": [
      "editorPlus"
    ],
    "register_date": 1104537600,
    "texts": {
      "color": 123,
      "left": "left text",
      "right": "right text"
    },
    "banner": {
      "cropped": "https://example.com/cropped.webp",
      "full": "https://example.com/full.avif"
    },
    "watches": {
      "sum": [
        {
          "shortname": "OVA",
          "name": "OVA",
          "spent_time": 12345,
          "value": 0,
          "alias": "ova"
        }
      ],
      "history": [
        {
          "when": 12345,
          "ep_count": 12,
          "duration": 12345
        }
      ]
    },
    "days_online": 123,
    "oldNicknames": [
      {
        "nickname": "nickname-old",
        "date": 123466455
      }
    ]
  }
}

Changes

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