> ## 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-follows-endpoints">
  ## X API のフォロー関連エンドポイントの比較
</div>

<div id="follows-lookup">
  ### フォローのルックアップ
</div>

v2 のフォローのルックアップエンドポイントは、Standard v1.1 の [followers/ids](https://developer.x.com/en/docs/twitter-api/v1/accounts-and-users/follow-search-get-users/api-reference/get-followers-ids)、v1.1 [followers/list](https://developer.x.com/en/docs/twitter-api/v1/accounts-and-users/follow-search-get-users/api-reference/get-followers-list)、v1.1 [friends/ids](https://developer.x.com/en/docs/twitter-api/v1/accounts-and-users/follow-search-get-users/api-reference/get-friends-ids)、および v1.1 [friends/list](https://developer.x.com/en/docs/twitter-api/v1/accounts-and-users/follow-search-get-users/api-reference/get-friends-list) エンドポイントに取って代わるものです。

次の表は、さまざまな種類のフォローのルックアップエンドポイントを比較したものです。

|                                                                                                                                      |                                                                                                                                                                         |                                                                                                                                                                                                                                               |
| :----------------------------------------------------------------------------------------------------------------------------------- | :---------------------------------------------------------------------------------------------------------------------------------------------------------------------- | :-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **説明**                                                                                                                               | **Standard v1.1**                                                                                                                                                       | **X API v2**                                                                                                                                                                                                                                  |
| サポートされている HTTP メソッド                                                                                                                  | `GET`                                                                                                                                                                   | `GET`                                                                                                                                                                                                                                         |
| ホストドメイン                                                                                                                              | `https://api.x.com`                                                                                                                                                     | `https://api.x.com`                                                                                                                                                                                                                           |
| エンドポイントパス                                                                                                                            | /1.1/friends/ids.json<br /><br />/1.1/friends/list.json<br /><br />/1.1/followers/ids.json<br /><br />/1.1/followers/list.json                                          | /2/users/:id/following<br /><br />/2/users/:id/followers                                                                                                                                                                                      |
| [Authentication](/ja/resources/fundamentals/authentication)                                                                          | OAuth 1.0a User Context<br /><br />App のみ                                                                                                                               | OAuth 1.0a User Context<br /><br />OAuth 2.0 Authorization Code with PKCE<br /><br />App のみ                                                                                                                                                   |
| デフォルトのリクエスト[レート制限](/ja/resources/fundamentals/rate-limits)                                                                           | 15 分あたり 15 リクエスト (ユーザーごと) <br /><br />15 分あたり 15 リクエスト (App ごと)                                                                                                         | 15 分あたり 15 リクエスト (ユーザーごと) <br /><br />15 分あたり 15 リクエスト (App ごと)                                                                                                                                                                               |
| レスポンスあたりの最大ユーザー数                                                                                                                     | GET friends/id および GET followers/id は、ページあたり最大 5000 件のユーザー ID を返します。<br /><br />  <br /><br />GET friends/list および GET followers/list は、ページあたり最大 200 件のユーザーオブジェクトを返します。 | ページあたり最大 1000 件のユーザーオブジェクト                                                                                                                                                                                                                    |
| ページネーション                                                                                                                             | トークンは next\_cursor フィールドで返され、次のページの結果を取得するために cursor パラメータの値として渡すことができます。                                                                                               | トークンは next\_token フィールドで返され、次のページの結果を取得するために token パラメータの値として渡すことができます。<br /><br />v2 のペイロードでは previous\_token フィールドも返され、前のページの結果を取得するために pagination\_token パラメータとともに渡すことができます。                                                               |
| JSON 形式                                                                                                                              | Standard v1.1 形式                                                                                                                                                        | [X API v2 形式](/ja/x-api/fundamentals/data-dictionary) (v1.1 の形式とは後方互換性がなく、fields および expansions リクエストパラメータによって決定されます) <br /><br />Standard v1.1 形式から X API v2 形式への移行方法の詳細については、[データ形式の移行ガイド](/ja/x-api/migrate/data-format-migration)をご覧ください。 |
| ペイロードで返す[フィールド](/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) の認証情報の使用が必須 |                                                                                                                                                                         | ✔                                                                                                                                                                                                                                             |

<div id="manage-follows">
  #### フォローの管理
</div>

v2 のフォロー管理用エンドポイントは、標準の v1.1 の [POST friendships/create](https://developer.x.com/en/docs/twitter-api/v1/accounts-and-users/follow-search-get-users/api-reference/post-friendships-create) と [POST friendships/destroy](https://developer.x.com/en/docs/twitter-api/v1/accounts-and-users/follow-search-get-users/api-reference/post-friendships-destroy) エンドポイントを置き換えます。

次の表では、標準の v1.1 と X API v2 のフォロー作成用エンドポイントを比較します。

<div id="follow-a-user">
  #### ユーザーをフォローする
</div>

| 説明                                                                                                                                                    | Standard v1.1                          | X API v2                                                                  |
| :---------------------------------------------------------------------------------------------------------------------------------------------------- | :------------------------------------- | :------------------------------------------------------------------------ |
| 対応している HTTP メソッド                                                                                                                                      | POST                                   | POST                                                                      |
| ホストドメイン                                                                                                                                               | [https://api.x.com](https://api.x.com) | [https://api.x.com](https://api.x.com)                                    |
| エンドポイントパス                                                                                                                                             | /1.1/friendships/create.json           | /2/users/:id/following                                                    |
| [認証](/ja/resources/fundamentals/authentication)                                                                                                       | OAuth 1.0a User Context                | OAuth 1.0a User Context<br /><br />OAuth 2.0 Authorization Code with PKCE |
| 既定のリクエスト[レート制限](/ja/resources/fundamentals/rate-limits)                                                                                               | 15 分あたり 50 リクエスト                       | 15 分あたり 50 リクエスト                                                          |
| ユーザーごとの 1 日あたりの最大操作回数                                                                                                                                 | 400                                    | 400                                                                       |
| App ごとの 1 日あたりの最大操作回数                                                                                                                                 | 1000                                   | 1000                                                                      |
| [developer App](/ja/resources/fundamentals/developer-apps) の認証情報を使用する必要があり、その App が [Project](/ja/resources/fundamentals/developer-apps) に関連付けられていること |                                        | ✔️                                                                        |

<div id="unfollow-a-user">
  #### ユーザーのフォローを解除する
</div>

次の表では、Standard v1.1 と X API v2 のフォロー解除用エンドポイント (delete follow) を比較します。

| 説明                                                                                                                                   | Standard v1.1                          | X API v2                                                                  |
| :----------------------------------------------------------------------------------------------------------------------------------- | :------------------------------------- | :------------------------------------------------------------------------ |
| サポートされている HTTP メソッド                                                                                                                  | POST                                   | DELETE                                                                    |
| ホストドメイン                                                                                                                              | [https://api.x.com](https://api.x.com) | [https://api.x.com](https://api.x.com)                                    |
| エンドポイントパス                                                                                                                            | /1.1/friendships/destroy.json          | /2/users/:source\_user\_id/following/:target\_user\_id                    |
| [認証](/ja/resources/fundamentals/authentication)                                                                                      | OAuth 1.0a User Context                | OAuth 1.0a User Context<br /><br />OAuth 2.0 Authorization Code with PKCE |
| デフォルトのリクエスト[レート制限](/ja/resources/fundamentals/rate-limits)                                                                           | 15 分あたり 15 回のリクエスト (ユーザーごと)            | 15 分あたり 50 回のリクエスト (ユーザーごと)                                               |
| App ごとの 1 日あたりの最大操作回数                                                                                                                | なし                                     | 500                                                                       |
| [Project](/ja/resources/fundamentals/developer-apps) に関連付けられた [developer App](/ja/resources/fundamentals/developer-apps) の認証情報の使用が必須 |                                        | ✔️                                                                        |

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

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

[フォロー管理: Standard v1.1 と X API v2 の比較](/ja/x-api/users/follows#manage-follows-standard-v1-1-compared-to-x-api-v2)

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