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

# Timelines

> Timelines 엔드포인트를 사용하면 사용자 타임라인, 멘션 피드, 홈 피드에서 게시물을 조회할 수 있습니다. timelines를 다루는 X API v2 standard 티어 레퍼런스입니다.

export const Button = ({href, children}) => {
  return <div className="not-prose">
    <a href={href}>
      <button className="x-btn">
        <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>;
};

Timelines 엔드포인트를 사용하면 사용자 타임라인, 멘션 피드, 홈 피드에서 게시물을 조회할 수 있습니다. 사용자가 게시한 콘텐츠, 사용자를 멘션한 게시물, 개인화된 홈 타임라인을 확인하세요.

## 개요

<CardGroup cols={2}>
  <Card title="User Posts" icon="https://mintcdn.com/x-preview/SxzTbJaLjs3MidH1/icons/xds/icon-person.svg?fit=max&auto=format&n=SxzTbJaLjs3MidH1&q=85&s=507a4bbcdcf5744bd18781508002e305" width="24" height="24" data-path="icons/xds/icon-person.svg">
    사용자가 작성한 게시물 가져오기
  </Card>

  <Card title="User mentions" icon="at">
    사용자를 멘션한 게시물 가져오기
  </Card>

  <Card title="Home timeline" icon="house">
    개인화된 홈 피드 가져오기
  </Card>

  <Card title="역시간순" icon="clock">
    시간 순서대로 정렬된 게시물
  </Card>
</CardGroup>

***

## 엔드포인트

| Method | Endpoint                                                                    | Description       |
| :----- | :-------------------------------------------------------------------------- | :---------------- |
| GET    | [`/2/users/:id/tweets`](/x-api/users/get-posts)                             | 사용자의 게시물 가져오기     |
| GET    | [`/2/users/:id/mentions`](/x-api/users/get-mentions)                        | 사용자를 멘션한 게시물 가져오기 |
| GET    | [`/2/users/:id/timelines/reverse_chronological`](/x-api/users/get-timeline) | 홈 타임라인 가져오기       |

***

## User Posts 타임라인

특정 사용자가 작성한 가장 최근 게시물을 가져옵니다.

### 기능

* 가장 최근 3,200개 게시물
* 답글 및 리트윗 필터링
* 페이지네이션 지원
* 시간 기반 필터링으로 과거 데이터 접근

<CardGroup cols={2}>
  <Card title="API 레퍼런스" icon="https://mintcdn.com/x-preview/ygI6sSJPehlc0qNT/icons/xds/icon-code.svg?fit=max&auto=format&n=ygI6sSJPehlc0qNT&q=85&s=488e23401b19225b89acc0136d242219" href="/x-api/users/get-posts" width="24" height="24" data-path="icons/xds/icon-code.svg">
    전체 엔드포인트 문서
  </Card>
</CardGroup>

***

## User mentions 타임라인

특정 사용자를 멘션한 게시물을 가져옵니다.

### 기능

* 가장 최근 800개 멘션
* 답글 및 quote 게시물 포함
* 페이지네이션 지원

<CardGroup cols={2}>
  <Card title="퀵스타트" icon="https://mintcdn.com/x-preview/oR-aRNyj1BKPJtxM/icons/xds/icon-rocket.svg?fit=max&auto=format&n=oR-aRNyj1BKPJtxM&q=85&s=b978d7a9225de31709efbbed5b84e92d" href="/x-api/posts/timelines/quickstart/user-mention-quickstart" width="24" height="24" data-path="icons/xds/icon-rocket.svg">
    사용자에 대한 멘션 가져오기
  </Card>

  <Card title="API 레퍼런스" icon="https://mintcdn.com/x-preview/ygI6sSJPehlc0qNT/icons/xds/icon-code.svg?fit=max&auto=format&n=ygI6sSJPehlc0qNT&q=85&s=488e23401b19225b89acc0136d242219" href="/x-api/users/get-mentions" width="24" height="24" data-path="icons/xds/icon-code.svg">
    전체 엔드포인트 문서
  </Card>
</CardGroup>

***

## 역시간순 홈 타임라인

인증된 사용자의 홈 타임라인을 역시간순으로 가져옵니다.

### 기능

* 팔로우한 계정의 게시물
* 가장 최근 3,200개 게시물 (또는 7일)
* 알고리즘 랭킹 제외
* 사용자 인증 필요

<Note>
  이 엔드포인트는 [OAuth 1.0a User Context](/resources/fundamentals/authentication) 또는 [OAuth 2.0 Authorization Code with PKCE](/resources/fundamentals/authentication#oauth-2-0-authorization-code-flow-with-pkce-2)가 필요합니다.
</Note>

<CardGroup cols={2}>
  <Card title="퀵스타트" icon="https://mintcdn.com/x-preview/oR-aRNyj1BKPJtxM/icons/xds/icon-rocket.svg?fit=max&auto=format&n=oR-aRNyj1BKPJtxM&q=85&s=b978d7a9225de31709efbbed5b84e92d" href="/x-api/posts/timelines/quickstart/reverse-chron-quickstart" width="24" height="24" data-path="icons/xds/icon-rocket.svg">
    사용자의 홈 타임라인 가져오기
  </Card>

  <Card title="API 레퍼런스" icon="https://mintcdn.com/x-preview/ygI6sSJPehlc0qNT/icons/xds/icon-code.svg?fit=max&auto=format&n=ygI6sSJPehlc0qNT&q=85&s=488e23401b19225b89acc0136d242219" href="/x-api/users/get-timeline" width="24" height="24" data-path="icons/xds/icon-code.svg">
    전체 엔드포인트 문서
  </Card>
</CardGroup>

***

## 필터링 옵션

### Exclude 파라미터

특정 게시물 유형 필터링:

| Value      | Effect |
| :--------- | :----- |
| `retweets` | 리트윗 제외 |
| `replies`  | 답글 제외  |

```bash theme={null}
curl "https://api.x.com/2/users/123/tweets?exclude=retweets,replies" \
  -H "Authorization: Bearer $BEARER_TOKEN"
```

### 시간 기반 필터링

| Parameter    | Description                 |
| :----------- | :-------------------------- |
| `start_time` | 가장 오래된 게시물 타임스탬프 (ISO 8601) |
| `end_time`   | 가장 최근 게시물 타임스탬프 (ISO 8601)  |
| `since_id`   | 이 ID 이후의 게시물 반환             |
| `until_id`   | 이 ID 이전의 게시물 반환             |

***

## 시작하기

<Note>
  **사전 요구사항**

  * 승인된 [developer account](https://developer.x.com/en/portal/petition/essential/basic-info)
  * Developer Console 내의 [Project와 App](/resources/fundamentals/developer-apps)
  * App의 [keys and tokens](/resources/fundamentals/authentication)
</Note>

<CardGroup cols={2}>
  <Card title="Home timeline 퀵스타트" icon="house" href="/x-api/posts/timelines/quickstart/reverse-chron-quickstart">
    사용자의 홈 피드 가져오기
  </Card>

  <Card title="Mentions 퀵스타트" icon="at" href="/x-api/posts/timelines/quickstart/user-mention-quickstart">
    사용자에 대한 멘션 가져오기
  </Card>

  <Card title="통합 가이드" icon="https://mintcdn.com/x-preview/Vn2KEkZaPF9LiPi3/icons/xds/icon-book.svg?fit=max&auto=format&n=Vn2KEkZaPF9LiPi3&q=85&s=22ac564792481d14ae36a941546039c8" href="/x-api/posts/timelines/integrate" width="24" height="24" data-path="icons/xds/icon-book.svg">
    핵심 개념 및 모범 사례
  </Card>

  <Card title="샘플 코드" icon="github" href="https://github.com/xdevplatform/Twitter-API-v2-sample-code">
    동작하는 코드 예제
  </Card>
</CardGroup>
