# Data Explorer: Posts by Category (Including Subcategories)

**URL:** https://meta.discourse.org/t/data-explorer-posts-by-category-including-subcategories/207025
**Category:** Support
**Tags:** data-explorer
**Created:** [October 25, 2021, 7:58pm UTC](https://meta.discourse.org/t/data-explorer-posts-by-category-including-subcategories/207025 "2021-10-25T19:58:50Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Chris27](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/chris27/32/141170_2.png) [@Chris27](https://meta.discourse.org/u/Chris27)
#### Post date: [October 25, 2021, 7:58pm UTC](https://meta.discourse.org/t/data-explorer-posts-by-category-including-subcategories/207025/1 "2021-10-25T19:58:50Z")

</div>

Hi everyone,

I was wondering if there was a query for posts by category. This information is available in the admin reports but I need to filter each category individually. I found mention of it [here](https://meta.discourse.org/t/posts-per-category-with-deleted-and-without-deleted/275010) but can’t seem to find the [Data Explorer](https://meta.discourse.org/t/32566?silent=true) Query. If anyone could help it would be greatly appreciated!

---

<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: [November 28, 2021, 12:41pm UTC](https://meta.discourse.org/t/data-explorer-posts-by-category-including-subcategories/207025/2 "2021-11-28T12:41:14Z")

</div>

Are you still looking for help on this? If so…

- Do you have the [Data-Explorer plugin](https://meta.discourse.org/t/data-explorer-plugin/32566) installed and enabled?
- Can you navigate to `[YourSite]/admin/plugins/explorer`?

From there you can create your own data-explorer queries if there isn’t a default one that suits. 👍 Clicking on the plus sign next to the search box will bring up the ‘add query’ options.

 ![Add Data Explorer Query](https://global.discourse-cdn.com/meta/original/3X/a/3/a396cf753e6a5fee2343843765ef9ea47ee89581.jpeg)

If you need help with the SQL query itself, could you be a little more specific in what data you’re looking to pull out? Is it a post count by category you’re looking for?

---

<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: [December 28, 2021, 12:42pm UTC](https://meta.discourse.org/t/data-explorer-posts-by-category-including-subcategories/207025/3 "2021-12-28T12:42:04Z")

</div>

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