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

# 概要

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

これらのガイドでは、次の点に焦点を当てます。

* **API リクエストパラメータ** - X API v2 のエンドポイントでは、新しい一連のリクエストパラメータが導入されています。特に Labs と連携している方にはおなじみのパラメータもありますが、[fields](/ja/x-api/fundamentals/fields) パラメータや [expansions](/ja/x-api/fundamentals/expansions) パラメータの導入など、重要な違いが多数あります。

* **App および Project の要件** - X API v2 にアクセスするには、[Project](/ja/resources/fundamentals/developer-apps) に関連付けられた [developer App](/ja/resources/fundamentals/developer-apps) の認証情報を使用する必要があります。

<div id="likes-lookup">
  #### いいねのルックアップ
</div>

**ポストに「いいね」したユーザー**

liked users エンドポイントは v2 で新たに追加されたエンドポイントで、ポストに「いいね」したユーザーに関する情報を取得できます。

| 説明                                                         | X API v2                                                        |
| :--------------------------------------------------------- | :-------------------------------------------------------------- |
| 対応している HTTP メソッド                                           | GET                                                             |
| ホストドメイン                                                    | [https://api.x.com](https://api.x.com)                          |
| エンドポイントパス                                                  | /2/tweets/:id/liking\_users                                     |
| [認証](/ja/resources/fundamentals/authentication)            | OAuth 2.0 ベアラートークン<br /><br />OAuth 1.0a User Context           |
| デフォルトのリクエスト[レート制限](/ja/resources/fundamentals/rate-limits) | 15 分あたり 75 リクエスト (App ごと) <br /><br />15 分あたり 75 リクエスト (ユーザーごと) |

**ユーザーが「いいね」したポスト**

次の表では、Standard v1.1 の [GET favorites/list](https://developer.x.com/en/docs/twitter-api/v1/tweets/post-and-engage/api-reference/get-favorites-list) エンドポイントと、X API v2 の liked Posts エンドポイントを比較します。

| 説明                                                         | Standard v1.1                          | X API v2                                                                                                                                                                                                                                    |
| :--------------------------------------------------------- | :------------------------------------- | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| 対応している HTTP メソッド                                           | GET                                    | GET                                                                                                                                                                                                                                         |
| ホストドメイン                                                    | [https://api.x.com](https://api.x.com) | [https://api.x.com](https://api.x.com)                                                                                                                                                                                                      |
| エンドポイントパス                                                  | /1.1/favorites/list.json               | /2/users/:id/liked\_tweets                                                                                                                                                                                                                  |
| [認証](/ja/resources/fundamentals/authentication)            | OAuth 1.0a User Context                | OAuth 2.0 ベアラートークン<br /><br />OAuth 1.0a User Context                                                                                                                                                                                       |
| デフォルトのリクエスト[レート制限](/ja/resources/fundamentals/rate-limits) | 15 分あたり 75 リクエスト                       | 15 分あたり 75 リクエスト (App ごと) <br /><br />15 分あたり 75 リクエスト (ユーザーごと)                                                                                                                                                                             |
| データ形式                                                      | 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)をご覧ください。 |

<div id="manage-likes">
  #### いいねを管理する
</div>

v2 の「いいね」管理エンドポイントは、v1.1 の [POST favorites/create](https://developer.x.com/en/docs/twitter-api/v1/tweets/post-and-engage/api-reference/post-favorites-create) と [POST favorites/destroy](https://developer.x.com/en/docs/twitter-api/v1/tweets/post-and-engage/api-reference/post-favorites-destroy) エンドポイントを置き換えます。

次の表では、標準の v1.1 エンドポイントと X API v2 の「いいね」管理エンドポイントを比較します。

<div id="like-a-post">
  #### ポストにいいねする
</div>

| 説明                                                         | 標準 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/favorites/create.json                                            | /2/users/:id/likes                                                            |
| [認証](/ja/resources/fundamentals/authentication)            | OAuth 1.0a ユーザーコンテキスト                                                 | OAuth 1.0a ユーザーコンテキスト                                                         |
| デフォルトのリクエスト[レート制限](/ja/resources/fundamentals/rate-limits) | 24 時間あたり 1000 リクエスト (ユーザーごと) <br /><br />24 時間あたり 1000 リクエスト (App ごと) | 15 分あたり 50 リクエスト (ユーザーごと) <br /><br />24 時間あたり 1000 リクエスト (ユーザーごと、DELETE と共有) |

<div id="unlike-a-post">
  #### ポストのいいねを取り消す
</div>

| 説明                                                         | 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/favorites/destroy.json                                           | /2/users/:id/likes/:tweet\_id                                               |
| [認証](/ja/resources/fundamentals/authentication)            | OAuth 1.0a User Context                                               | OAuth 1.0a User Context                                                     |
| リクエストのデフォルト[レート制限](/ja/resources/fundamentals/rate-limits) | 24 時間あたり 1000 リクエスト (ユーザーごと) <br /><br />24 時間あたり 1000 リクエスト (App ごと) | 15 分あたり 50 リクエスト (ユーザーごと) <br /><br />24 時間あたり 1000 リクエスト (ユーザーごと、POST と共用) |

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

[いいねのルックアップ：Standard v1.1 から X API v2 への移行](/ja/x-api/posts/likes/migrate/likes-lookup-standard-to-twitter-api-v2)

[いいねの管理：Standard v1.1 と X API v2 の比較](/ja/x-api/posts/likes#manage-likes-standard-v1-1-compared-to-x-api-v2)

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