Skip to main content

Comparing X API’s Likes endpoints

These guides will focus on the following areas:
  • API request parameters - The X API v2 endpoint introduces a new set of request parameters. While some parameters will be familiar, especially for those integrating with Labs, there are many important differences such as the introduction of the fields and expansions parameters.
  • App and Project requirements - To access the X API v2, you will need to use credentials from a developer App that is associated with a Project

Likes lookup

Users who have liked a Post The liked users endpoint is new functionality for v2, allowing you to get information about a Post’s liking users. Posts liked by a user The following tables compare the standard v1.1 GET favorites/list endpoint and the X API v2 liked Posts endpoints:

Manage Likes

The v2 manage Likes endpoints replace the v1.1 POST favorites/create and POST favorites/destroy endpoints. The following tables compare the standard v1.1 and X API v2 manage Like endpoints:

Like a Post

Unlike a Post

Other migration resources Likes lookup: Standard v1.1 to X API v2 Manage Likes: Standard v1.1 to X API v2 X API migration hub