> ## 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.

# Spaces 검색

> 키워드로 라이브 또는 예정된 Spaces를 검색

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>;
};

Spaces Search 엔드포인트를 사용하면 키워드로 라이브 또는 예정된 Spaces를 검색할 수 있습니다. 관심 있는 주제를 다루는 Spaces를 찾아보세요.

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

<CardGroup cols={2}>
  <Card title="키워드 검색" icon="magnifying-glass">
    제목으로 Spaces 검색
  </Card>

  <Card title="Spaces 탐색" icon="microphone">
    라이브 또는 예정된 Spaces 찾기
  </Card>
</CardGroup>

***

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

| Method | Endpoint                                             | Description |
| :----- | :--------------------------------------------------- | :---------- |
| GET    | [`/2/spaces/search`](/ko/x-api/spaces/search-spaces) | Spaces 검색   |

***

<div id="parameters">
  ## 매개변수
</div>

| 매개변수           | 설명                            |
| :------------- | :---------------------------- |
| `query`        | 검색 쿼리 (필수)                    |
| `state`        | `live` 또는 `scheduled` 상태로 필터링 |
| `space.fields` | Space의 추가 필드                  |
| `expansions`   | 응답에 포함할 관련 객체                 |

***

<div id="example-request">
  ## 예시 요청
</div>

```bash theme={null}
curl "https://api.x.com/2/spaces/search?\
query=AI&\
state=live&\
space.fields=title,host_ids,participant_count" \
  -H "Authorization: Bearer $BEARER_TOKEN"
```

<div id="example-response">
  ## 예시 응답
</div>

```json theme={null}
{
  "data": [
    {
      "id": "1DXxyRYNejbKM",
      "state": "live",
      "title": "Discussing AI and the Future",
      "host_ids": ["1234567890"],
      "participant_count": 245
    }
  ],
  "meta": {
    "result_count": 1
  }
}
```

***

<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="rocket" href="/ko/x-api/spaces/search/quickstart">
    첫 번째 Space를 검색하세요
  </Card>

  <Card title="Spaces 조회" icon="microphone" href="/ko/x-api/spaces/lookup/introduction">
    ID로 Spaces를 조회하세요
  </Card>

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