Overview
Like a Post
Like a Post on behalf of a user
Unlike a Post
Remove a like from a Post
Liking users
See who liked a Post
Liked Posts
Get Posts a user has liked
Endpoints
Likes lookup
| Method | Endpoint | Description |
|---|---|---|
| GET | /2/tweets/:id/liking_users | Get users who liked a Post |
| GET | /2/users/:id/liked_tweets | Get Posts liked by a user |
Manage likes
| Method | Endpoint | Description |
|---|---|---|
| POST | /2/users/:id/likes | Like a Post |
| DELETE | /2/users/:id/likes/:tweet_id | Unlike a Post |
Important notes
The liking users endpoint returns a maximum of 100 users per Post for all time, regardless of the actual number of likes.
Example: Get liking users
Example: Like a Post
Getting started
Prerequisites
- An approved developer account
- A Project and App in the Developer Console
- Your App’s keys and tokens