Skip to content

リアクションを取得する Tier 4

GET/api/comments/:id/reactionsCopied!

コメントに付いた絵文字リアクションの集計結果を返します。

リクエスト

パス

idstringrequired
コメント ID

レスポンス

200 OK を返します。

dataarray
リアクション一覧
data[].typestring
絵文字文字

Example: 👍

data[].countnumber
そのリアクションの数

Example: 2

data[].usersarray
リアクションしたユーザー一覧
data[].users[].idstring
リアクションしたユーザーの ID

Example: c5c1c5d7-54f0-4d88-b78d-8f3c3a0d9bea

bash
curl 'https://api.youvico.com/api/comments/2fb4e60b-0d9a-46f3-a4dc-cb9fe8ad9be6/reactions' \
  -H 'Authorization: Bearer YOUR_API_KEY'
json
{
  "data": [
    {
      "type": "👍",
      "count": 2,
      "users": [
        { "id": "c5c1c5d7-54f0-4d88-b78d-8f3c3a0d9bea" },
        { "id": "f6035d1a-29df-4d80-8d72-f1bbdddfb6ff" }
      ]
    }
  ]
}