# API를 통해 사용자가 조회한 게시글을 가져오는 방법?

**URL:** https://meta.discourse.org/t/how-to-get-posts-viewed-by-a-user-via-apis/296028
**Category:** Development
**Tags:** rest-api
**Created:** [2월 20, 2024, 8:17오전 UTC](https://meta.discourse.org/t/how-to-get-posts-viewed-by-a-user-via-apis/296028 "2024-02-20T08:17:44Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![Lilly](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lilly/32/575047_2.png) [@Lilly](https://meta.discourse.org/u/Lilly)
#### Post date: [2월 20, 2024, 1:44오후 UTC](https://meta.discourse.org/t/how-to-get-posts-viewed-by-a-user-via-apis/296028/2 "2024-02-20T13:44:35Z")

</div>

REST API 문서를 살펴보셨나요?

> [@Discourse REST API Documentation](https://meta.discourse.org/t/discourse-rest-api-documentation/22706):
>
> Discourse API Please view the Discourse API Documentation site for detailed info: [https://docs.discourse.org](https://docs.discourse.org)information_source Authentication API requests must use HTTP header based authentication. Pass your Api-Key and Api-Username as HTTP headers. Authentication via query parameters or request body is not supported (this was removed in April 2020). Please see the example cURL request below. The only API endpoints that continue to support credentials in query parameters are requests to…

> [@Reverse engineer the Discourse API](https://meta.discourse.org/t/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 …

> [@Discourse REST API 종합 예제](https://meta.discourse.org/t/discourse-rest-api-comprehensive-examples/274354):
>
> 다양한 API 사용법이나 설명을 다루는 [여러 가이드](https://meta.discourse.org/search?q=%23rest-api%20%23documentation)가 있습니다. 이 가이드는 API를 사용하는 방법에 대한 실용적이고 포괄적인 예시를 제공합니다. warning 이 가이드의 모든 코드 예시는 모범 사례를 보여주기 위한 것이거나 그대로 사용하도록 의도된 것이 아닙니다. API 사용법에 집중하기 위해 많은 검사, 오류 처리 등이 의도적으로 무시되거나 생략되었습니다. API는 무엇에 사용되는가? Discourse에서의 대부분의 작업(게시, 좋아요, 설정 편집 등)은 엔드포인트[[1]](#fn1)에 요청을 보내는 API를 통해 수행됩니다. 예를 들어, meta에서 주제를 생성할 때 https://meta.discourse.org/posts.json으로 POST 요청이 전송됩니다. 이 요청에는 게시물의 작성자, 제목, 카테고리, 태그 및 내용 등이 포함됩니다. API를 커스텀으로 사용하는 것은 일반적으로 자동화된 작업을 수행하거나 웹훅, 스크립트, 제3자 소프트웨어 및 API 등 다른 서…

또한 [Data Explorer](https://meta.discourse.org/t/32566?silent=true) 쿼리도 참고해 보세요.

> [@Discourse Data Explorer](https://meta.discourse.org/t/32566?silent=true):
>
> 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 par…

---

_[View the full topic](https://meta.discourse.org/t/how-to-get-posts-viewed-by-a-user-via-apis/296028)._
