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

Personalized Trends エンドポイントは、ユーザーの位置情報や興味・関心に基づき、認証されたユーザー向けにパーソナライズされたトレンドトピックを返します。

<div id="overview">
  ## 概要
</div>

<CardGroup cols={2}>
  <Card title="パーソナライズ" icon="user">
    ユーザーごとに最適化されたトレンド
  </Card>

  <Card title="位置情報対応" icon="location-dot">
    ユーザーの位置情報に基づくトレンド
  </Card>

  <Card title="リアルタイム" icon="bolt">
    現在のトレンドトピック
  </Card>
</CardGroup>

***

<div id="endpoint">
  ## エンドポイント
</div>

| Method | Endpoint                       | 説明                   |
| :----- | :----------------------------- | :------------------- |
| GET    | `/2/users/personalized_trends` | パーソナライズされたトレンドを取得します |

***

<div id="example-request">
  ## リクエストの例
</div>

```bash theme={null}
curl "https://api.x.com/2/users/personalized_trends" \
  -H "Authorization: Bearer $USER_ACCESS_TOKEN"
```

<div id="example-response">
  ## レスポンス例
</div>

```json theme={null}
{
  "data": [
    {
      "trend_name": "#AI",
      "tweet_count": 125000
    },
    {
      "trend_name": "Machine Learning",
      "tweet_count": 85000
    }
  ]
}
```

***

<div id="getting-started">
  ## はじめに
</div>

<Note>
  **前提条件**

  * 承認済みの[開発者アカウント](https://developer.x.com/en/portal/petition/essential/basic-info)
  * 開発者コンソール内の [Project と App](/ja/resources/fundamentals/developer-apps)
  * [OAuth 2.0 PKCE](/ja/resources/fundamentals/authentication#oauth-2-0-authorization-code-flow-with-pkce-2) を使用して取得したユーザーアクセストークン
</Note>

<CardGroup cols={2}>
  <Card title="WOEID ごとのトレンド" icon="globe" href="/ja/x-api/trends/trends-by-woeid/introduction">
    特定の場所のトレンドを取得します
  </Card>

  <Card title="APIリファレンス" icon="code" href="/ja/x-api/trends/personalized-trends">
    エンドポイントの全仕様ドキュメント
  </Card>
</CardGroup>
