Skip to content

Get Reactions Tier 4

GET/api/comments/:id/reactionsCopied!

Returns aggregated emoji reactions for a comment.

Request

Path

idstringrequired
Comment ID

Response

Returns 200 OK.

dataarray
Reactions
data[].typestring
Emoji character

Example: 👍

data[].countnumber
Number of reactions of this type

Example: 2

data[].usersarray
Users who reacted
data[].users[].idstring
ID of the user who reacted

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

Example

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" }
      ]
    }
  ]
}