# Is it possible to find who Reacted via the API?

**URL:** https://meta.discourse.org/t/is-it-possible-to-find-who-reacted-via-the-api/272286
**Category:** Development
**Tags:** reactions, rest-api
**Created:** [June 25, 2021, 2:27pm UTC](https://meta.discourse.org/t/is-it-possible-to-find-who-reacted-via-the-api/272286 "2021-06-25T14:27:06Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![mcmcclur](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mcmcclur/32/115456_2.png) [@mcmcclur](https://meta.discourse.org/u/mcmcclur)
#### Post date: [June 25, 2021, 2:27pm UTC](https://meta.discourse.org/t/is-it-possible-to-find-who-reacted-via-the-api/272286/1 "2021-06-25T14:27:06Z")

</div>

This installed and runs well on my little forum - thanks!!

I wonder - is it possible to get information on who reacted and how to a post via the API? For example, we can generate a JSON response detailing who “likes” the original post in this topic via the following API request:

```
https://meta.discourse.org/post_action_users.json?post_action_type_id=2&id=904584

```

I’m wondering if we can get similar information broken down by reaction type via the API?

I’m aware that we can set which reaction corresponds to a “like” via the “discourse reactions reaction for like” item in the plugin settings and I’m guessing that there’s no further way to distinguish between the reactions, but I thought I’d check.

### Context

As a University Professor, I use small Discourse instances as discussion forums in my classes. I often make assigned topics that students are required to respond to for points. Students know they get the points, when they get a “like” from me. The best part is that I can use the API to automatically tally the points. It would be nice to associate different point levels with different reactions.

---

<div class="post-metadata">

### Author: ![j.jaffeux](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/j.jaffeux/32/60297_2.png) [@j.jaffeux](https://meta.discourse.org/u/j.jaffeux)
#### Post date: [June 28, 2021, 11:48am UTC](https://meta.discourse.org/t/is-it-possible-to-find-who-reacted-via-the-api/272286/2 "2021-06-28T11:48:24Z")

</div>

Hi, yes you can do this:

```plaintext
GET /discourse-reactions/posts/:post_id/reactions-users.json

```

---

<div class="post-metadata">

### Author: ![mcmcclur](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mcmcclur/32/115456_2.png) [@mcmcclur](https://meta.discourse.org/u/mcmcclur)
#### Post date: [June 28, 2021, 12:28pm UTC](https://meta.discourse.org/t/is-it-possible-to-find-who-reacted-via-the-api/272286/3 "2021-06-28T12:28:21Z")

</div>

> [@j.jaffeux](#):
>
> `GET /discourse-reactions/posts/:post_id/reactions-users.json`

Yes, that’s exactly what I was looking for: [https://discourse.marksmath.org/discourse-reactions/posts/120/reactions-users.json](https://discourse.marksmath.org/discourse-reactions/posts/120/reactions-users.json)

Thanks!

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [July 20, 2023, 12:24pm UTC](https://meta.discourse.org/t/is-it-possible-to-find-who-reacted-via-the-api/272286/4 "2023-07-20T12:24:09Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
