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

# User lookup エンドポイントの移行概要

> standard v1.1 の users/show、users/lookup、account/verify_credentials を X API v2 の user lookup エンドポイントへスムーズに移行するためのマッピング。

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

## X API の users lookup エンドポイントの比較

v2 の user lookup エンドポイントは、standard v1.1 の [GET users/lookup](https://developer.x.com/en/docs/twitter-api/v1/accounts-and-users/follow-search-get-users/api-reference/get-users-lookup.html) および [GET users/show](https://developer.x.com/en/docs/twitter-api/v1/accounts-and-users/follow-search-get-users/api-reference/get-users-show.html) エンドポイントを置き換えます。これらのバージョンの user lookup エンドポイントを利用しているコード、アプリ、ツールをお持ちで、新しい X API v2 エンドポイントへの移行を検討している場合は、本ガイド群が役立ちます。

以下の表は各種の users lookup エンドポイントを比較したものです:

|                                                                                                                               |                                                                                                                         |                                                                                                                                                                                                                                |
| :---------------------------------------------------------------------------------------------------------------------------- | :---------------------------------------------------------------------------------------------------------------------- | :----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Description**                                                                                                               | **Standard v1.1**                                                                                                       | **X API v2**                                                                                                                                                                                                                   |
| サポートされる HTTP メソッド                                                                                                             | `GET`                                                                                                                   | `GET`                                                                                                                                                                                                                          |
| ホストドメイン                                                                                                                       | `https://api.x.com`                                                                                                     | `https://api.x.com`                                                                                                                                                                                                            |
| エンドポイントパス                                                                                                                     | `/1.1/users/show.json` `/1.1/users/lookup.json`                                                                         | `/2/users`<br /><br />`/2/users/:id`<br /><br />`/2/users/by`<br /><br />`/2/users/by/:username`                                                                                                                               |
| [認証](/resources/fundamentals/authentication)                                                                                  | OAuth 1.0a User Context                                                                                                 | OAuth 1.0a User Context<br /><br />App only<br /><br />OAuth 2.0 Authorization Code with PKCE                                                                                                                                  |
| デフォルトのリクエスト[レート制限](/resources/fundamentals/rate-limits)                                                                       | 15 分あたり 900 リクエスト (ユーザーあたり)<br /><br />/show - 15 分あたり 900 リクエスト (App あたり)  <br />/lookup - 15 分あたり 300 リクエスト (App あたり) | 15 分あたり 900 リクエスト (ユーザーあたり)<br /><br />15 分あたり 300 リクエスト (App あたり)                                                                                                                                                             |
| レスポンスあたりの最大ユーザー数                                                                                                              | /show -  1<br /><br />/lookup - 100                                                                                     | 100                                                                                                                                                                                                                            |
| JSON レスポンスオブジェクト形式                                                                                                            | Standard v1.1 形式                                                                                                        | [X API v2 形式](/x-api/fundamentals/data-dictionary) (fields と expansions リクエストパラメータで決定され、v1.1 形式との後方互換性はありません)<br /><br />Standard v1.1 形式から X API v2 形式への移行方法の詳細は、[データ形式の移行ガイド](/x-api/migrate/data-format-migration)をご確認ください。 |
| ペイロードに返す[フィールド](/x-api/fundamentals/data-dictionary)の選択をサポート                                                                  |                                                                                                                         | ✔                                                                                                                                                                                                                              |
| [annotations](/x-api/fundamentals/post-annotations) フィールドをサポート (pinned Post 上)                                                |                                                                                                                         | ✔                                                                                                                                                                                                                              |
| 新しい[メトリクス](/x-api/fundamentals/metrics)フィールドのリクエストをサポート (pinned Post 上)                                                       |                                                                                                                         | ✔                                                                                                                                                                                                                              |
| [conversation\_id](/x-api/fundamentals/conversation-id) フィールドをサポート (pinned Post 上)                                            |                                                                                                                         | ✔                                                                                                                                                                                                                              |
| [Project](/resources/fundamentals/developer-apps) に紐づく [developer App](/resources/fundamentals/developer-apps) の認証情報の使用を必須とする |                                                                                                                         | ✔                                                                                                                                                                                                                              |

**その他の移行リソース**

[User lookup: Standard v1.1 から X API v2 へ](/x-api/users/lookup/migrate/standard-to-twitter-api-v2)

[X API 移行ハブ](/x-api/migrate/overview)

[これらのエンドポイント向けのサンプルコードを確認する](https://github.com/xdevplatform/Twitter-API-v2-sample-code "これらのエンドポイント向けのサンプルコードを確認する")
