# Topics extracted from API do not appear in discourse forums or vice versa

**URL:** <https://meta.discourse.org/t/topics-extracted-from-api-do-not-appear-in-discourse-forums-or-vice-versa/236030>\
**Category:** Development\
**Tags:** rest-api\
**Created:** [August 12, 2022, 8:56pm UTC](https://meta.discourse.org/t/topics-extracted-from-api-do-not-appear-in-discourse-forums-or-vice-versa/236030 "2022-08-12T20:56:15Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![darivadi\_factored](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/darivadi_factored/32/259951_2.png) [@darivadi\_factored](https://meta.discourse.org/u/darivadi_factored)\
**Post date:** [August 12, 2022, 8:56pm UTC](https://meta.discourse.org/t/topics-extracted-from-api-do-not-appear-in-discourse-forums-or-vice-versa/236030/1 "2022-08-12T20:56:15Z")

</div>

Hi everyone!  
For the company I work in, we are extracting the topics created throughout all the Discourse’s forum of the company by doing requests to the url of each category (for example like:`https://{organization_url}/c/{c}/{category_slug}/{subcategory_slug}/206.json`) . We need to count the number of topics created per category per each date but when we compare the results per date obtained through the API vs searching the topics in discourse, we find that for some categories/subcategories they do not completely match.  
For example, for a particular date (such as 2022-07-01) the API returns 3 topics, while by searching in  
discourse for the same date we get 4 topics and what is weird is that one of the topics is actually from one day before (2022-06-30). Apart from that, that topic from 2022-06-30 is not returned by the API (shows no topics created that date) and if I search in discourse for topics created on 2022-06-30, there are no matches.

I’m doing the search using the filters: in:first after:2022-07-01 before:2022-07-02 in the search bar. What can be done in that case? or is that any kind of bug in the API/search bar feature?  
(sorry, I cannot upload any images to show any result due to confidentiality issues. Hope that at least the explanation was clear).

---

_[View the full topic](https://meta.discourse.org/t/topics-extracted-from-api-do-not-appear-in-discourse-forums-or-vice-versa/236030)._
