# Is there is any open API for getting similar topic in discourse?

**URL:** <https://meta.discourse.org/t/is-there-is-any-open-api-for-getting-similar-topic-in-discourse/144806>\
**Category:** Product Support\
**Created:** [19 במרץ,‏ 2020,‏ 9:04am UTC](https://meta.discourse.org/t/is-there-is-any-open-api-for-getting-similar-topic-in-discourse/144806 "2020-03-19T09:04:04Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![oshyan](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/oshyan/32/212644_2.png) [@oshyan](https://meta.discourse.org/u/oshyan)\
**Post date:** [20 במאי,‏ 2021,‏ 7:21pm UTC](https://meta.discourse.org/t/is-there-is-any-open-api-for-getting-similar-topic-in-discourse/144806/9 "2021-05-20T19:21:41Z")

</div>

> [@codinghorror](#):
>
> Well anything in Discourse can be automated because Discourse is a JavaScript app, not a traditional “web pagee”. In this case, you’d **replicate the user interface actions you take from the advanced search page**

Yeah, I thought that might be the case. So essentially the Similar Topic functionality in the composer preview is just like normal Search, but passing the contents of the user’s topic as search criteria?

In my use case I’d pass the user’s message contents to the normal Search function, and return X number of hits as possible relevant topics? (the terminology I’m using may not be quite right here, I just need to know if the basic idea is correct 😄)

---

_[View the full topic](https://meta.discourse.org/t/is-there-is-any-open-api-for-getting-similar-topic-in-discourse/144806)._
