# Get number of likes for a single post?

**URL:** <https://meta.discourse.org/t/get-number-of-likes-for-a-single-post/69017>\
**Category:** Development\
**Tags:** rest-api\
**Created:** [August 29, 2017, 10:50pm UTC](https://meta.discourse.org/t/get-number-of-likes-for-a-single-post/69017 "2017-08-29T22:50:30Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![smileBeda](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/smilebeda/32/272497_2.png) [@smileBeda](https://meta.discourse.org/u/smileBeda)\
**Post date:** [March 14, 2023, 5:40am UTC](https://meta.discourse.org/t/get-number-of-likes-for-a-single-post/69017/4 "2023-03-14T05:40:24Z")

</div>

Unfortunately Discourse removes that property if the post has no likes  
Also it is not in the API doc: [Discourse API Docs](https://docs.discourse.org/#tag/Topics/operation/getTopic), [Discourse API Docs](https://docs.discourse.org/#tag/Posts/operation/getPost)

Thus, unreliable and code gets polluted by unnecessary “if property object exist”  
Should be improved, at best.

---

_[View the full topic](https://meta.discourse.org/t/get-number-of-likes-for-a-single-post/69017)._
