# Get Reactions

> Get all reactions from a message.

- ID: `get_reactions`
- Type: Loop
- Category: [Reactions](https://inventor.bot/docs/reference/blocks/reactions.md)

- Loop block: write `for item := range get_reactions(Args{...}) { ... }` and read the current item's outputs from `item`. See loops.

**Inputs**

| Name | Required | Description | Value |
| --- | --- | --- | --- |
| `message_id` | yes | ID of the message. |  |
| `channel_id` | yes | ID of the channel. |  |
| `emoji_id` | yes | Provide name:id or a:name:id (animated) or unicode emoji. |  |
| `limit` | yes | Maximum number of reactions to return (1-100). |  |
| `body` |  | Blocks to run for each reaction. | blocks: `func() { ... }` |

**Outputs**

| Name | Description | Value |
| --- | --- | --- |
| `iteration_number` | Current iteration (1-based). | e.g. `"1"` |
| `total_iterations` | Total number of iterations. | e.g. `"5"` |
| `user_id` | ID of the user who reacted. |  |
| `username` | Username of the user who reacted. |  |

**Example**

```go
for reaction := range get_reactions(Args{
	message_id: trigger.message_id,
	channel_id: trigger.channel_id,
	emoji_id:   "...",
	limit:      "...",
}) {
	send_text_message(Args{
		channel_id:      trigger.channel_id,
		message_content: "User ID: " + reaction.user_id,
	})
}
```