POST /2/users/:id/likes

Causes the user ID identified in the path parameter to Like the target Tweet.

Endpoint URL

Authentication and rate limits

Authentication methods
supported by this endpoint

OAuth 1.0a User context

Rate limit

User rate limit: 50 requests per 15-minute window

Max operations

User limit: 1000 successful requests per 24-hour window
(Shared with DELETE /2/users/:id/likes/:tweet_id)

Path parameters

Name Type Description
string The user ID who you are liking a Tweet on behalf of. It must match your own user ID or that of an authenticating user, meaning that you must pass the Access Tokens associated with the user ID when authenticating your request.

JSON body parameters

Name Type Description
string The ID of the Tweet that you would like the user id to Like.

Example requests

      curl -X POST -H "Authorization: OAuth $OAUTH_SIGNATURE" -H "Content-type: application/json" -d '{"tweet_id": "1228393702244134912"}'
      twurl -X POST /2/users/2244994945/likes/  -A "Content-type: application/json" -d '{"tweet_id": "1228393702244134912"}'

Example responses

  "data": {
    "liked": true

Response fields

likedbooleanIndicates whether the user likes the specified Tweet as a result of this request.
Was this document helpful?
Thank you

Thank you for the feedback. We’re really glad we could help!

Thank you for the feedback. How could we improve this document?
Thank you for the feedback. Your comments will help us improve our documents in the future.