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

# Likes エンドポイント移行概要

> Standard v1.1 の Likes エンドポイント (favorites/list、favorites/create、favorites/destroy) を X API v2 の likes エンドポイントにマッピングし、移行を計画します。

## X API の Likes エンドポイントを比較する

これらのガイドでは、以下の領域に焦点を当てます:

* **API リクエストパラメーター** - X API v2 エンドポイントは新しいリクエストパラメーターセットを導入しています。Labs と統合していた方には馴染みのあるパラメーターもありますが、[fields](/x-api/fundamentals/fields) や [expansions](/x-api/fundamentals/expansions) パラメーターの導入など、多くの重要な違いがあります。

* **App と Project の要件** - X API v2 にアクセスするには、[Project](/resources/fundamentals/developer-apps) に紐づく[開発者 App](/resources/fundamentals/developer-apps) の認証情報を使用する必要があります

#### Likes lookup

**投稿にいいねを付けたユーザー**

liked users エンドポイントは v2 の新機能で、投稿にいいねを付けたユーザーの情報を取得できます。

| Description                                             | X API v2                                                     |
| :------------------------------------------------------ | :----------------------------------------------------------- |
| サポートする HTTP メソッド                                        | GET                                                          |
| Host domain                                             | [https://api.x.com](https://api.x.com)                       |
| Endpoint path                                           | /2/tweets/:id/liking\_users                                  |
| [認証](/resources/fundamentals/authentication)            | OAuth 2.0 Bearer Token<br /><br />OAuth 1.0a User Context    |
| デフォルトのリクエスト[レート制限](/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 エンドポイントを比較しています:

| Description                                             | Standard v1.1                          | X API v2                                                                                                                                                                                                                                      |
| :------------------------------------------------------ | :------------------------------------- | :-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| サポートする HTTP メソッド                                        | GET                                    | GET                                                                                                                                                                                                                                           |
| Host domain                                             | [https://api.x.com](https://api.x.com) | [https://api.x.com](https://api.x.com)                                                                                                                                                                                                        |
| Endpoint path                                           | /1.1/favorites/list.json               | /2/users/:id/liked\_tweets                                                                                                                                                                                                                    |
| [認証](/resources/fundamentals/authentication)            | OAuth 1.0a User Context                | OAuth 2.0 Bearer Token<br /><br />OAuth 1.0a User Context                                                                                                                                                                                     |
| デフォルトのリクエスト[レート制限](/resources/fundamentals/rate-limits) | 15 分あたり 75 リクエスト                       | 15 分あたり 75 リクエスト(App ごと)<br /><br />15 分あたり 75 リクエスト(ユーザーごと)                                                                                                                                                                                  |
| データフォーマット                                               | 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)を参照してください。 |

#### Manage Likes

v2 の manage Likes エンドポイントは、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) エンドポイントを置き換えます。

以下の表は、standard v1.1 と X API v2 の manage Like エンドポイントを比較しています:

#### 投稿にいいねを付ける

| Description                                             | Standard v1.1                                                      | X API v2                                                                   |
| :------------------------------------------------------ | :----------------------------------------------------------------- | :------------------------------------------------------------------------- |
| サポートする HTTP メソッド                                        | POST                                                               | POST                                                                       |
| Host domain                                             | [https://api.x.com](https://api.x.com)                             | [https://api.x.com](https://api.x.com)                                     |
| Endpoint path                                           | /1.1/favorites/create.json                                         | /2/users/:id/likes                                                         |
| [認証](/resources/fundamentals/authentication)            | OAuth 1.0a User Context                                            | OAuth 1.0a User Context                                                    |
| デフォルトのリクエスト[レート制限](/resources/fundamentals/rate-limits) | 24 時間あたり 1000 リクエスト(ユーザーごと)<br /><br />24 時間あたり 1000 リクエスト(App ごと) | 15 分あたり 50 リクエスト(ユーザーごと)<br /><br />24 時間あたり 1000 リクエスト(ユーザーごと、DELETE と共有) |

#### 投稿のいいねを外す

| Description                                             | Standard v1.1                                                      | X API v2                                                                 |
| :------------------------------------------------------ | :----------------------------------------------------------------- | :----------------------------------------------------------------------- |
| サポートする HTTP メソッド                                        | POST                                                               | DELETE                                                                   |
| Host domain                                             | [https://api.x.com](https://api.x.com)                             | [https://api.x.com](https://api.x.com)                                   |
| Endpoint path                                           | /1.1/favorites/destroy.json                                        | /2/users/:id/likes/:tweet\_id                                            |
| [認証](/resources/fundamentals/authentication)            | OAuth 1.0a User Context                                            | OAuth 1.0a User Context                                                  |
| デフォルトのリクエスト[レート制限](/resources/fundamentals/rate-limits) | 24 時間あたり 1000 リクエスト(ユーザーごと)<br /><br />24 時間あたり 1000 リクエスト(App ごと) | 15 分あたり 50 リクエスト(ユーザーごと)<br /><br />24 時間あたり 1000 リクエスト(ユーザーごと、POST と共有) |

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

[Likes lookup: Standard v1.1 から X API v2](/x-api/posts/likes/migrate/likes-lookup-standard-to-twitter-api-v2)

[Manage Likes: Standard v1.1 から X API v2](/x-api/posts/likes#manage-likes-standard-v1-1-compared-to-x-api-v2)

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