How to get the likers of the topic with api

How to get the likers of the topic with api?

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?

I have to use api key when it request.

1 Like

Anyone konws?:joy::joy::nose:

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

works fine for me.

3 Likes

Thank you for your tips.

If I visit the url
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.
:stuck_out_tongue:

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

2 Likes

This topic was automatically closed after 3119 days. New replies are no longer allowed.