X
Introducing the free Twitter/X API, your gateway to effortless real-time access to the entire spectrum of Twitter/X data. With our API, you can effortlessly dissect posts, comments, likes, and reposts, or delve deep into the intricacies of user profiles. We're committed to enhancing our API continually, so whether you have feature requests or questions, don't hesitate to get in touch with us!…
X endpoints
| Method | Endpoint | Description |
|---|---|---|
| Posts | ||
| GET |
Single Post Details /tweet/{postId} |
Get the overall information for a post on X by the ID. |
| GET |
Post Reposts /tweet/{postId}/retweets |
Receive all reposts for a post. |
| GET |
Post likes /tweet/{postId}/favorites |
Receive all likes for a post. |
| Users | ||
| GET |
Followings [userId] /user/{userId}/followings |
Receive all followings of a user. You can use the cursor and count to navigate around. |
| GET |
Followers [userId] /user/{userId}/followers |
Receive all followers of a user. You can use the cursor and count to navigate around. |
| GET |
Likes [userId] /user/{userId}/likes |
Receive all likes of a user. You can use the cursor and count to navigate around. |
| GET |
Media [userId] /user/{userId}/media |
Receive all media items ordered by most recent. You can use the cursor and count to navigate around. |
| GET |
Posts and Replies [userId] /user/{userId}/tweetsAndReplies |
Receive all posts and replies ordered by most recent. You can use the cursor and count to navigate around. |
| GET |
Posts [userId] /user/{userId}/tweets |
Receive all posts ordered by most recent. You can use the cursor and count to navigate around. |
| GET |
User details [userId] /user/{userId} |
This is the prefered method of getting any information. Receive follower counts, images and more user related data with this endpoint. |
| GET |
User details [username] /user/by/username/{username} |
Receive follower counts, images and more user related data with this endpoint. |
| GET |
username to userId convertion /username/to/id/{username} |
You'll need the userId to receive tweets, media and replies. |
| Other endpoints | ||
| GET |
Search Posts/Users/Media /search/{term} |
Use the search endpoint to search for posts, users or media sorted by top or latest. |
X pricing
| Plan | Price | Rate limit | Quotas |
|---|---|---|---|
| BASIC | Free | — |
|