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

<div id="comparing-x-apis-users-lookup-endpoints">
  ## X API の users lookup エンドポイントの比較
</div>

v2 の user lookup エンドポイントは、標準の 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 エンドポイントを使用しているコード、App、またはツールがあり、より新しい X API v2 エンドポイントへの移行を検討している場合は、この一連のガイドが適しています。 
 

次の表では、さまざまな種類の user 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`                                                                                                                                                                 |
| [Authentication](/ja/resources/fundamentals/authentication)                                                                          | OAuth 1.0a User Context                                                                                                | OAuth 1.0a User Context<br /><br />App のみ<br /><br />OAuth 2.0 Authorization Code (PKCE 使用)                                                                                                                                                                      |
| デフォルトのリクエスト [rate limits](/ja/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 フォーマット](/ja/x-api/fundamentals/data-dictionary) (fields および expansions リクエストパラメータによって決定され、v1.1 フォーマットとの後方互換性はありません) <br /><br />Standard v1.1 フォーマットから X API v2 フォーマットへの移行方法の詳細については、[データフォーマット移行ガイド](/ja/x-api/migrate/data-format-migration)をご覧ください。 |
| どの [fields](/ja/x-api/fundamentals/data-dictionary) をペイロードに含めて返すか選択可能                                                                |                                                                                                                        | ✔                                                                                                                                                                                                                                                                |
| [annotations](/ja/x-api/fundamentals/post-annotations) フィールド (固定ポスト上) をサポート                                                          |                                                                                                                        | ✔                                                                                                                                                                                                                                                                |
| 新しい [metrics](/ja/x-api/fundamentals/metrics) フィールド (固定ポスト上) のリクエストをサポート                                                             |                                                                                                                        | ✔                                                                                                                                                                                                                                                                |
| [conversation\_id](/ja/x-api/fundamentals/conversation-id) フィールド (固定ポスト上) をサポート                                                      |                                                                                                                        | ✔                                                                                                                                                                                                                                                                |
| [project](/ja/resources/fundamentals/developer-apps) に関連付けられた [developer App](/ja/resources/fundamentals/developer-apps) の認証情報の使用が必須 |                                                                                                                        | ✔                                                                                                                                                                                                                                                                |

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

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

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

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