# Curtidas em uma postagem

**URL:** https://meta.discourse.org/t/likes-on-a-post/96396
**Category:** Development
**Created:** [5 Setembro , 2018 09:03 UTC](https://meta.discourse.org/t/likes-on-a-post/96396 "2018-09-05T09:03:40Z")
**Posts on this page:** 1
**Showing post:** 20

<div class="post-metadata">

### Author: ![Mittineague](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mittineague/32/114259_2.png) [@Mittineague](https://meta.discourse.org/u/Mittineague)
#### Post date: [21 Setembro , 2018 09:31 UTC](https://meta.discourse.org/t/likes-on-a-post/96396/20 "2018-09-21T09:31:52Z")

</div>

That looks like JSON for the latest topic list page. The “liked” is whether or not you liked a post in the topic. (false if you read it but didn’t Like, null if you didn’t read it while logged in). The “like\_count” is the number of likes for all the posts in the topic combined.

Depending on what kind of information you want, there may not be what you need in that JSON alone. More intricate criteria may need to run a query against more than one table. Or maybe XHR calls to other pages to get their JSON.

I’m guessing your interest is to be able to show Like counts on topic list pages? Or are you interested in analyzing statistics? If it’s more a general interest in the database, checking out the schemas near the bottom of model files can help:  
[discourse/app/models at main · discourse/discourse · GitHub](https://github.com/discourse/discourse/tree/master/app/models)

Or better, get familiar with the [Data Explorer](https://meta.discourse.org/t/32566?silent=true) plugin:

> [@Discourse Data Explorer](https://meta.discourse.org/t/data-explorer-plugin/32566):
>
> discourse2Summary Discourse [Data Explorer](https://meta.discourse.org/t/32566?silent=true) allows you to make SQL queries against your live database, allowing for up-to-the-minute stats reporting.open_bookInstall Guide This plugin is bundled with Discourse core. There is no need to install the plugin separately.information_source If you’re looking for examples or support for any custom queries, you can find lots of topics in our #Data & reporting category under the #sql-query tag. If there’s not one to suit your pa…

---

_[View the full topic](https://meta.discourse.org/t/likes-on-a-post/96396)._
