> ## Documentation Index
> Fetch the complete documentation index at: https://generaltranslation.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# 포스트 검색

> 강력한 쿼리 연산자를 활용해 키워드, 해시태그, 사용자 등으로 포스트를 검색합니다

export const Button = ({href, children}) => {
  return <div className="not-prose group">
    <a href={href}>
      <button className="flex items-center space-x-2.5 py-1 px-4 bg-primary-dark dark:bg-white text-white dark:text-gray-950 rounded-full group-hover:opacity-[0.9] font-medium">
        <span>
          {children}
        </span>
        <svg width="3" height="24" viewBox="0 -9 3 24" class="h-6 rotate-0 overflow-visible"><path d="M0 0L3 3L0 6" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"></path></svg>
      </button>
    </a>
  </div>;
};

Search Posts 엔드포인트를 사용하면 강력한 쿼리 연산자를 통해 특정 조건과 일치하는 포스트를 찾을 수 있습니다. 키워드, 해시태그, 멘션, URL 등 다양한 항목을 검색할 수 있습니다.

<div id="overview">
  ## 개요
</div>

X는 서로 다른 시간 범위와 접근 요건을 가진 두 가지 검색 엔드포인트를 제공합니다.

<CardGroup cols={2}>
  <Card title="최근 검색" icon="clock">
    **최근 7일 이내**의 포스트를 검색합니다. 모든 개발자가 이용할 수 있습니다.
  </Card>

  <Card title="전체 아카이브 검색" icon="vault">
    2006년까지의 **전체 아카이브**를 검색합니다. 사용량 기반 과금 플랜 및 Enterprise 고객이 이용할 수 있습니다.
  </Card>
</CardGroup>

***

<div id="use-cases">
  ## 사용 사례
</div>

* **브랜드 모니터링** — 브랜드나 제품에 대한 언급을 추적
* **트렌드 분석** — 특정 주제나 이벤트를 둘러싼 대화를 분석
* **연구** — 학술 및 시장 연구용 데이터 수집
* **실시간 모니터링** — 새 포스트에 반응하는 애플리케이션 구축

***

<div id="endpoints">
  ## 엔드포인트
</div>

| Method | Endpoint                                                         | Description    | Access      |
| :----- | :--------------------------------------------------------------- | :------------- | :---------- |
| GET    | [`/2/tweets/search/recent`](/ko/x-api/posts/search-recent-posts) | 지난 7일간의 포스트 검색 | 모든 개발자      |
| GET    | [`/2/tweets/search/all`](/ko/x-api/posts/search-all-posts)       | 전체 포스트 아카이브 검색 | 종량제, 엔터프라이즈 |

***

<div id="query-operators">
  ## 쿼리 연산자
</div>

게시물 속성과 일치하는 연산자를 사용해 쿼리를 구성합니다:

```
(AI OR "artificial intelligence") lang:en -is:retweet has:links
```

<AccordionGroup>
  <Accordion title="키워드 연산자">
    | Operator | Example              | Description         |
    | :------- | :------------------- | :------------------ |
    | Keyword  | `python`             | 해당 단어가 포함된 포스트      |
    | Phrase   | `"machine learning"` | 정확히 일치하는 문구가 있는 포스트 |
    | Hashtag  | `#AI`                | 해당 해시태그가 포함된 포스트    |
    | Mention  | `@XDevelopers`       | 해당 사용자를 멘션한 포스트     |
  </Accordion>

  <Accordion title="사용자 연산자">
    | Operator       | Example          | Description     |
    | :------------- | :--------------- | :-------------- |
    | `from:`        | `from:elonmusk`  | 특정 사용자가 작성한 포스트 |
    | `to:`          | `to:XDevelopers` | 특정 사용자에게 보낸 답글  |
    | `retweets_of:` | `retweets_of:X`  | 특정 사용자의 포스트 리트윗 |
  </Accordion>

  <Accordion title="콘텐츠 연산자">
    | Operator       | Example          | Description    |
    | :------------- | :--------------- | :------------- |
    | `has:images`   | `cat has:images` | 이미지가 포함된 포스트   |
    | `has:videos`   | `has:videos`     | 동영상이 포함된 포스트   |
    | `has:links`    | `has:links`      | 링크가 포함된 포스트    |
    | `has:mentions` | `has:mentions`   | 멘션이 포함된 포스트    |
    | `url:`         | `url:github.com` | 특정 URL이 있는 포스트 |
  </Accordion>

  <Accordion title="필터 연산자">
    | Operator      | Example       | Description      |
    | :------------ | :------------ | :--------------- |
    | `lang:`       | `lang:en`     | 특정 언어로 작성된 포스트   |
    | `-is:retweet` | `-is:retweet` | 리트윗 제외           |
    | `-is:reply`   | `-is:reply`   | 답글 제외            |
    | `is:verified` | `is:verified` | 인증된 사용자가 작성한 포스트 |
  </Accordion>
</AccordionGroup>

<Card title="전체 연산자 참조" icon="list-check" href="/ko/x-api/posts/search/integrate/operators">
  사용 가능한 모든 연산자와 각 연산자의 접근 요구사항을 확인하세요
</Card>

***

<div id="recent-search">
  ## 최근 검색
</div>

**지난 7일** 동안의 포스트를 검색할 수 있습니다. 모든 개발자가 이용할 수 있습니다.

<div id="features">
  ### 기능
</div>

* 요청당 최대 100개의 게시물
* 대용량 결과 집합을 위한 페이지네이션
* 모든 핵심 쿼리 연산자 지원
* 512자 쿼리 길이 (Enterprise에서는 4,096자)

<CardGroup cols={2}>
  <Card title="빠른 시작" icon="rocket" href="/ko/x-api/posts/search/quickstart/recent-search">
    첫 최근 검색 요청 수행하기
  </Card>

  <Card title="API 참조 문서" icon="code" href="/ko/x-api/posts/search-recent-posts">
    전체 엔드포인트 문서
  </Card>
</CardGroup>

***

<div id="full-archive-search">
  ## 전체 아카이브 검색
</div>

2006년 3월까지의 **전체 게시물 아카이브**를 검색하세요.

<Note>
  전체 아카이브 검색 기능은 종량제 및 Enterprise 고객이 이용할 수 있습니다.
</Note>

<div id="features">
  ### 기능
</div>

* 요청당 최대 500 포스트
* 전체 게시물 기록에 접근 가능
* 모든 쿼리 연산자 사용 가능
* 쿼리 길이 최대 1,024자(Enterprise의 경우 4,096자)

<CardGroup cols={2}>
  <Card title="빠른 시작" icon="rocket" href="/ko/x-api/posts/search/quickstart/full-archive-search">
    첫 전체 아카이브 검색 요청을 보내 보세요
  </Card>

  <Card title="API 참조 문서" icon="code" href="/ko/x-api/posts/search-all-posts">
    해당 엔드포인트의 전체 문서
  </Card>
</CardGroup>

***

<div id="getting-started">
  ## 시작하기
</div>

<Note>
  **사전 준비 사항**

  * 승인된 [개발자 계정](https://developer.x.com/en/portal/petition/essential/basic-info)
  * 개발자 콘솔의 [Project 및 App](/ko/resources/fundamentals/developer-apps)
  * App의 [키와 토큰](/ko/resources/fundamentals/authentication)
</Note>

<CardGroup cols={2}>
  <Card title="쿼리 작성" icon="magnifying-glass" href="/ko/x-api/posts/search/integrate/build-a-query">
    쿼리 구문과 연산자 사용법을 알아보기
  </Card>

  <Card title="페이지네이션" icon="arrow-right" href="/ko/x-api/posts/search/integrate/paginate">
    대용량 결과를 순회하기
  </Card>

  <Card title="통합 가이드" icon="book" href="/ko/x-api/posts/search/integrate/overview">
    핵심 개념 및 모범 사례
  </Card>

  <Card title="샘플 코드" icon="github" href="https://github.com/xdevplatform/Twitter-API-v2-sample-code">
    실행 가능한 코드 예제
  </Card>
</CardGroup>
