# 如何通过API获取话题的点赞者

**URL:** <https://meta.discourse.org/t/how-to-get-the-likers-of-the-topic-with-api/35970>\
**Category:** Support\
**Created:** [2015年十一月24日 06:49 UTC](https://meta.discourse.org/t/how-to-get-the-likers-of-the-topic-with-api/35970 "2015-11-24T06:49:25Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![sleep](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sleep/32/48342_2.png) [@sleep](https://meta.discourse.org/u/sleep)\
**Post date:** [2015年十一月24日 06:49 UTC](https://meta.discourse.org/t/how-to-get-the-likers-of-the-topic-with-api/35970/1 "2015-11-24T06:49:25Z")

</div>

How to get the likers of the topic with api?

 ![](https://global.discourse-cdn.com/meta/original/3X/5/0/50b55a7b827f23b08c743783522432a8265c9c0d.jpg)

I use the curl method of php to achieve, but it has something error.  
Error return: The page you requested does not exist or is private.

Do you know what reason?

---

<div class="post-metadata">

**Author:** ![sleep](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sleep/32/48342_2.png) [@sleep](https://meta.discourse.org/u/sleep)\
**Post date:** [2015年十一月24日 06:51 UTC](https://meta.discourse.org/t/how-to-get-the-likers-of-the-topic-with-api/35970/2 "2015-11-24T06:51:24Z")

</div>

I have to use api key when it request.

---

<div class="post-metadata">

**Author:** ![sleep](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sleep/32/48342_2.png) [@sleep](https://meta.discourse.org/u/sleep)\
**Post date:** [2015年十一月25日 10:04 UTC](https://meta.discourse.org/t/how-to-get-the-likers-of-the-topic-with-api/35970/3 "2015-11-25T10:04:54Z")

</div>

Anyone konws?😂😂👃

---

<div class="post-metadata">

**Author:** ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)\
**Post date:** [2015年十一月25日 10:21 UTC](https://meta.discourse.org/t/how-to-get-the-likers-of-the-topic-with-api/35970/4 "2015-11-25T10:21:32Z")

</div>

[https://meta.discourse.org/post\_action\_users.json?id=154208&post\_action\_type\_id=2](https://meta.discourse.org/post_action_users.json?id=154208&post_action_type_id=2)

works fine for me.

---

<div class="post-metadata">

**Author:** ![sleep](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sleep/32/48342_2.png) [@sleep](https://meta.discourse.org/u/sleep)\
**Post date:** [2015年十一月26日 03:13 UTC](https://meta.discourse.org/t/how-to-get-the-likers-of-the-topic-with-api/35970/5 "2015-11-26T03:13:56Z")

</div>

Thank you for your tips.

If I visit the url  
[http://your](http://your) host/post\_actions/users.json?id=776&post\_action\_type\_id=2  
it is ok.

We should use json method to get data of we want.  
😛

---

<div class="post-metadata">

**Author:** ![cpradio](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cpradio/32/4970_2.png) [@cpradio](https://meta.discourse.org/u/cpradio)\
**Post date:** [2015年十一月26日 12:19 UTC](https://meta.discourse.org/t/how-to-get-the-likers-of-the-topic-with-api/35970/6 "2015-11-26T12:19:26Z")

</div>

> [@sleep](#):
>
> We should use json method to get data of we want.

Yes. Discourse uses these APIs, so you are ensured they will continue to function because breaking them, would break Discourse.

---

<div class="post-metadata">

**Author:** ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)\
**Post date:** [2024年六月8日 12:45 UTC](https://meta.discourse.org/t/how-to-get-the-likers-of-the-topic-with-api/35970/7 "2024-06-08T12:45:58Z")

</div>

此主题已在 3119 天后自动关闭。不再允许回复。
