# Есть ли какое-либо открытое API для получения похожих тем в Discourse?

**URL:** https://meta.discourse.org/t/is-there-is-any-open-api-for-getting-similar-topic-in-discourse/144806
**Category:** Support
**Created:** [19.Март.2020 09:04:04 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:** 8

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [20.Май.2021 19:11:08 UTC](https://meta.discourse.org/t/is-there-is-any-open-api-for-getting-similar-topic-in-discourse/144806/8 "2021-05-20T19:11:08Z")

</div>

Всё, что есть в Discourse, можно автоматизировать, поскольку Discourse — это JavaScript-приложение, а не традиционная «веб-страница». В данном случае вам нужно будет **воспроизвести действия пользователя, выполняемые на странице расширенного поиска** , следующим образом:

> [@Reverse engineer the Discourse API](https://meta.discourse.org/t/how-to-reverse-engineer-the-discourse-api/20576):
>
> Discourse is backed by a complete JSON api. Anything you can do on the site you can also do using the JSON api. The API is documented at [docs.discourse.org](https://docs.discourse.org). You can also use the [discourse\_api](https://github.com/discourse/discourse_api) Ruby gem as a client library. However, not every endpoint is documented. To determine how to do something with the JSON API here are some steps you can follow. Example: recategorize a topic. Go to a topic and start editing a category: Open Chrome dev tools, switch to the Network tab, select …

---

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