Comments

Get comments

get/comments/{type}/{id}

Request

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

Path parameters

type'anime' | 'post' | 'review' | 'user' | 'blogvideo' | 'collection' | 'design' required

Object type

idinteger required

Object ID

Query parameters

limitinteger

Limit

sort'new' | 'old' | 'nice'

Sort by (new, old, best)

skipinteger

Offset

Response

Success response

Example response

{
  "response": {
    "comments": [
      {
        "id": 122,
        "name": "nickname",
        "avatars": {
          "big": "https://example.com/big.webp",
          "full": "https://example.com/full.avif",
          "small": "https://example.com/small.webp"
        },
        "children_count": 12,
        "deleted_at": 0,
        "time": 123455644,
        "user_id": 1,
        "vote": 1,
        "roles": [
          "root"
        ],
        "text": "Comment text\n[ж]With BB-codes[/ж][з]striked text[/з][спойлер=\"Title\"]spoiler text[/спойлер]",
        "dislikes": 12,
        "likes": 13,
        "parent_id": 0,
        "item_data": {
          "title": "Anime title",
          "url": "anime-alias-123",
          "posters": {
            "small": "https://example.com/small.webp",
            "medium": "https://example.com/medium.webp",
            "big": "https://example.com/big.webp",
            "huge": "https://example.com/huge.webp",
            "fullsize": "https://example.com/fullsize.webp",
            "mega": "https://example.com/mega.webp"
          }
        }
      }
    ],
    "isMod": false
  }
}

Changes

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