# twexapi.io ## Docs - [Get All Tweets and Replies by User](https://docs.twexapi.io/api-reference/all-tweets-replies-endpoints/get-all-tweets-and-replies-by-user.md): Get all tweets and replies posted by a specific Twitter user. Returns a comprehensive list including both original tweets and reply tweets posted by the user. $0.14/1000 items. - [Get All Tweets and Replies by User by Page](https://docs.twexapi.io/api-reference/all-tweets-replies-endpoints/get-all-tweets-and-replies-by-user-by-page.md): Retrieve a paginated list of a user's tweets and replies using cursor-based pagination. Each page returns up to 20 items. Pass next_cursor from the previous response to continue. Pricing: $0.14 per 1,000 items. - [[Quick] One-step article publish](https://docs.twexapi.io/api-reference/article-endpoints/[quick]-one-step-article-publish.md): Publish a complete X Article in a single call. Suitable for simple, one-shot use cases. - [[Step 1/5] Create a new article draft](https://docs.twexapi.io/api-reference/article-endpoints/[step-15]-create-a-new-article-draft.md): **Step 1 of 5** — Create an empty draft and get an `article_id`. - [[Step 2/5] Upload and set article cover image (optional)](https://docs.twexapi.io/api-reference/article-endpoints/[step-25]-upload-and-set-article-cover-image-optional.md): **Step 2 of 5 (optional)** — Upload a cover image and attach it to the draft. - [[Step 3/5] Set article title](https://docs.twexapi.io/api-reference/article-endpoints/[step-35]-set-article-title.md): **Step 3 of 5** — Set the title of the draft. - [[Step 4/5] Set article content from Markdown](https://docs.twexapi.io/api-reference/article-endpoints/[step-45]-set-article-content-from-markdown.md): **Step 4 of 5** — Set the article body by providing Markdown text. - [[Step 5/5] Publish an article draft](https://docs.twexapi.io/api-reference/article-endpoints/[step-55]-publish-an-article-draft.md): **Step 5 of 5** — Publish the draft. Returns `article_id` and `tweet_id`. - [Batch Fetch X Articles](https://docs.twexapi.io/api-reference/article-endpoints/batch-fetch-x-articles.md): Retrieves detailed article content for a specified list of X (Twitter) IDs. Use this endpoint to fetch full text, metadata, and media links for multiple posts in a single request. - [Fetch Article as Markdown](https://docs.twexapi.io/api-reference/article-endpoints/fetch-article-as-markdown.md): Retrieves the content of an X (Twitter) article formatted as **clean, valid Markdown**. The response body is delivered as a raw UTF-8 string, optimized for direct import into static site generators, Obsidian, Notion, or any standard Markdown editor. - [Get Balance](https://docs.twexapi.io/api-reference/balance-endpoints/get-balance.md): Get Balance - [Get Community](https://docs.twexapi.io/api-reference/communities-endpoints/get-community.md): Get community - [Get Community Members](https://docs.twexapi.io/api-reference/communities-endpoints/get-community-members.md): Get community members - [Get Community Members by Page](https://docs.twexapi.io/api-reference/communities-endpoints/get-community-members-by-page.md): Retrieve a paginated list of community members using cursor-based pagination. Each page returns up to 20 members. Pass next_cursor from the previous response to continue. Pricing: $0.14 per 1,000 members. - [Get Community Tweets](https://docs.twexapi.io/api-reference/communities-endpoints/get-community-tweets.md): Get community tweets - [Get Community Tweets by Page](https://docs.twexapi.io/api-reference/communities-endpoints/get-community-tweets-by-page.md): Retrieve a paginated list of community tweets using cursor-based pagination. Each page returns up to 20 tweets. Pass next_cursor from the previous response to continue. Pricing: $0.14 per 1,000 tweets. - [Search Community](https://docs.twexapi.io/api-reference/communities-endpoints/search-community.md): Search community - [Search Community Tweets](https://docs.twexapi.io/api-reference/communities-endpoints/search-community-tweets.md): Search community tweets - [Get cookie by auth token](https://docs.twexapi.io/api-reference/cookie-endpoints/get-cookie-by-auth-token.md): Retrieve Twitter authentication cookie using the provided auth token. This endpoint converts an auth token into a usable cookie for Twitter API requests. - [Get user info by auth token](https://docs.twexapi.io/api-reference/cookie-endpoints/get-user-info-by-auth-token.md): Retrieve Twitter user info using the provided auth token. - [Check DM Permissions (V2)](https://docs.twexapi.io/api-reference/dm-endpoints/check-dm-permissions-v2.md): Retrieves the Direct Message (DM) availability status for a list of users. This endpoint checks if the specified accounts can receive messages based on their privacy settings, follow status, or verified permissions. - [Get DM History](https://docs.twexapi.io/api-reference/dm-endpoints/get-dm-history.md): Get DM history - [Send DM](https://docs.twexapi.io/api-reference/dm-endpoints/send-dm.md): Send DM to a user, $0.0025 per call. - [Consume Next Page of Followers Task](https://docs.twexapi.io/api-reference/followers-&-following-endpoints/consume-next-page-of-followers-task.md): Pop and return the next available page (~200 followers) from the task queue. Each page is deleted from Redis after being returned, keeping memory usage low. Keep polling until status=done and data=[] (all pages consumed). - [Consume Next Page of Following Task](https://docs.twexapi.io/api-reference/followers-&-following-endpoints/consume-next-page-of-following-task.md): Pop and return the next available page (~200 following) from the task queue. Each page is deleted from Redis after being returned, keeping memory usage low. Keep polling until status=done and data=[] (all pages consumed). - [Get Followers](https://docs.twexapi.io/api-reference/followers-&-following-endpoints/get-followers.md): Get followers of a user, $0.14/1000 followers. When count > 5000, returns a task_id immediately (HTTP 202). Use GET /twitter/followers/task/{task_id}/status to check progress, and GET /twitter/followers/task/{task_id}/next to consume pages one by one. - [Get Followers by Page](https://docs.twexapi.io/api-reference/followers-&-following-endpoints/get-followers-by-page.md): Retrieve a paginated list of followers using cursor-based pagination. Each page returns up to 200 followers. Pass next_cursor from the previous response to continue. Pricing: $0.14 per 1,000 followers. - [Get Followers Task Status](https://docs.twexapi.io/api-reference/followers-&-following-endpoints/get-followers-task-status.md): Check progress of a large followers task. status: pending | running | done | error. - [Get Following](https://docs.twexapi.io/api-reference/followers-&-following-endpoints/get-following.md): Get following of a user, $0.14/1000 following. When count > 5000, returns a task_id immediately (HTTP 202). Use GET /twitter/following/task/{task_id}/status to check progress, and GET /twitter/following/task/{task_id}/next to consume pages one by one. - [Get Following by Page](https://docs.twexapi.io/api-reference/followers-&-following-endpoints/get-following-by-page.md): Retrieve a paginated list of following users using cursor-based pagination. Each page returns up to 200 users. Pass next_cursor from the previous response to continue. Pricing: $0.14 per 1,000 following users. - [Get Following Task Status](https://docs.twexapi.io/api-reference/followers-&-following-endpoints/get-following-task-status.md): Check progress of a large following task. status: pending | running | done | error. - [Get Latest Followers](https://docs.twexapi.io/api-reference/followers-&-following-endpoints/get-latest-followers.md): Get latest followers of a user, $0.14/1000 followers. - [Get Latest Following](https://docs.twexapi.io/api-reference/followers-&-following-endpoints/get-latest-following.md): Get latest following of a user, $0.14/1000 following. - [Create List](https://docs.twexapi.io/api-reference/lists-endpoints/create-list.md): Create a list, $0.0025 per call. - [Get List Members](https://docs.twexapi.io/api-reference/lists-endpoints/get-list-members.md): Get list members - [Get List Members by Page](https://docs.twexapi.io/api-reference/lists-endpoints/get-list-members-by-page.md): Retrieve a paginated list of list members using cursor-based pagination. Each page returns up to 20 members. Pass next_cursor from the previous response to continue. Pricing: $0.14 per 1,000 members. - [Get List Subscribers](https://docs.twexapi.io/api-reference/lists-endpoints/get-list-subscribers.md): Get list subscribers - [Get List Tweets](https://docs.twexapi.io/api-reference/lists-endpoints/get-list-tweets.md): Get list tweets - [Get List Tweets by Page](https://docs.twexapi.io/api-reference/lists-endpoints/get-list-tweets-by-page.md): Retrieve a paginated list of list tweets using cursor-based pagination. Each page returns up to 20 tweets. Pass next_cursor from the previous response to continue. Pricing: $0.14 per 1,000 tweets. - [Search List](https://docs.twexapi.io/api-reference/lists-endpoints/search-list.md): Search list - [Get Notifications](https://docs.twexapi.io/api-reference/notifications-endpoints/get-notifications.md): Get notifications,one minute most call 12 times - [Advanced Twitter Search](https://docs.twexapi.io/api-reference/search-endpoints/advanced-twitter-search.md): Perform advanced search on Twitter with multiple search terms and filters, $0.14/1000 tweets. - [Advanced Twitter Search by Page](https://docs.twexapi.io/api-reference/search-endpoints/advanced-twitter-search-by-page.md): Perform advanced Twitter search with cursor-based pagination. Each page returns up to 20 tweets. Pass next_cursor from the previous response to continue. Pricing: $0.14 per 1,000 tweets. - [Search Cashtags](https://docs.twexapi.io/api-reference/search-endpoints/search-cashtags.md): Search for tweets containing specific cashtags (stock symbols), $0.14/1000 tweets. - [Search Hashtags](https://docs.twexapi.io/api-reference/search-endpoints/search-hashtags.md): Search for tweets containing specific hashtags - [Sentiment Analysis](https://docs.twexapi.io/api-reference/sentiment-analysis-endpoints/sentiment-analysis.md): Sentiment Analysis, 50 credits per call. - [Check Order Status](https://docs.twexapi.io/api-reference/social-media-services-endpoints/check-order-status.md): Check the delivery status and progress of your Twitter engagement order. - [Purchase Twitter Engagement Services](https://docs.twexapi.io/api-reference/social-media-services-endpoints/purchase-twitter-engagement-services.md): Purchase various Twitter engagement services to boost your social media presence. - [Get User Timeline and Fill Count](https://docs.twexapi.io/api-reference/timeline-endpoints/get-user-timeline-and-fill-count.md): Fetch a user's timeline across pages using POST and try to fill the requested count. - [Get User Timeline by Page](https://docs.twexapi.io/api-reference/timeline-endpoints/get-user-timeline-by-page.md): Fetch a single page from a user's timeline using POST. Pass next_cursor in the body to continue. - [Get Global Trending Tweets](https://docs.twexapi.io/api-reference/trending-endpoints/get-global-trending-tweets.md): Get trending tweets for a country, with optional topic and content tag filters. - [Get Trending Topics](https://docs.twexapi.io/api-reference/trending-endpoints/get-trending-topics.md): Get trending topics for a given country. Use 'worldwide' for global trends or specific country codes. - [List Global Trend Content Tags](https://docs.twexapi.io/api-reference/trending-endpoints/list-global-trend-content-tags.md): Get content tags for a selected country and topic so tweets can be filtered more precisely. - [List Global Trend Countries](https://docs.twexapi.io/api-reference/trending-endpoints/list-global-trend-countries.md): Get the supported country and global options that can be used to filter trending tweets. - [List Global Trend Topics](https://docs.twexapi.io/api-reference/trending-endpoints/list-global-trend-topics.md): Get the topic categories available for filtering global trending tweets. - [Bookmark a Tweet](https://docs.twexapi.io/api-reference/tweet-actions-endpoints/bookmark-a-tweet.md): Adds a specific tweet to the bookmarks of the user associated with the provided cookie,$0.0025 per call. - [Create a Quote Tweet](https://docs.twexapi.io/api-reference/tweet-actions-endpoints/create-a-quote-tweet.md): Posts a new tweet that quotes an existing tweet. Requires the URL of the tweet to be quoted and the new content,$0.0025 per call. - [Create a Tweet or Reply](https://docs.twexapi.io/api-reference/tweet-actions-endpoints/create-a-tweet-or-reply.md): Posts a new tweet. To create a reply, provide the `reply_tweet_id`. This endpoint does not handle quote tweets,$0.0025 per call. - [Delete Bookmark](https://docs.twexapi.io/api-reference/tweet-actions-endpoints/delete-bookmark.md): Delete a bookmark, $0.0025 per call. - [Delete One or More Tweets](https://docs.twexapi.io/api-reference/tweet-actions-endpoints/delete-one-or-more-tweets.md): Deletes one or more tweets from a specified user account. This endpoint supports two modes: - [Delete Retweet](https://docs.twexapi.io/api-reference/tweet-actions-endpoints/delete-retweet.md): Delete a retweet, $0.0025 per call. - [Like a Tweet](https://docs.twexapi.io/api-reference/tweet-actions-endpoints/like-a-tweet.md): Likes a specific tweet on behalf of the user associated with the provided cookie,$0.0025 per call. - [Post Tweet (Auto Cookie)](https://docs.twexapi.io/api-reference/tweet-actions-endpoints/post-tweet-auto-cookie.md): Post a tweet using a random cookie from the pool, [cookie management](https://twitterxapi.com/cookies/management) $0.0025 per call. - [Retweet a Tweet](https://docs.twexapi.io/api-reference/tweet-actions-endpoints/retweet-a-tweet.md): Retweets a specific tweet on behalf of the user associated with the provided cookie,$0.0025 per call. - [Unlike a Tweet](https://docs.twexapi.io/api-reference/tweet-actions-endpoints/unlike-a-tweet.md): Unlike a tweet, $0.0025 per call. - [Get Favoriters](https://docs.twexapi.io/api-reference/tweet-engagement-endpoints/get-favoriters.md): Get favoriters - [Get Quote Tweets](https://docs.twexapi.io/api-reference/tweet-engagement-endpoints/get-quote-tweets.md): Retrieve quote tweets in a single request. Automatically paginates upstream until count is reached or no more results. Use `Latest` for chronological order or `Top` for ranked results. Minimum 10, maximum 5000 tweets. - [Get Quote Tweets by Page](https://docs.twexapi.io/api-reference/tweet-engagement-endpoints/get-quote-tweets-by-page.md): Retrieve quote tweets using cursor-based pagination. Each page returns up to 20 tweets. Use `Latest` for chronological order or `Top` for ranked results. Pass next_cursor from the previous response to continue. - [Get Retweeters](https://docs.twexapi.io/api-reference/tweet-engagement-endpoints/get-retweeters.md): Retrieve retweeters in a single request. Automatically paginates upstream until count is reached or no more results. Minimum 10, maximum 5000 users. - [Get Retweeters by Page](https://docs.twexapi.io/api-reference/tweet-engagement-endpoints/get-retweeters-by-page.md): Retrieve retweeters using cursor-based pagination. Each page returns up to 20 users. Pass next_cursor from the previous response to continue. - [Get Replies by Page (Recommended)](https://docs.twexapi.io/api-reference/tweet-replies-endpoints/get-replies-by-page-recommended.md): **Recommended** for fetching tweet replies. Uses cursor-based pagination and avoids timeouts on large threads. The first request (omit next_cursor) returns root_tweet plus the first batch of replies. Pass next_cursor from the previous response to fetch the next page until has_next_page is false. Pri… - [Get Replies by Tweet ID (Legacy)](https://docs.twexapi.io/api-reference/tweet-replies-endpoints/get-replies-by-tweet-id-legacy.md): Get replies for a specific tweet, returned as a nested Tweet object. $0.14/1000 replies. **For new integrations, use POST /twitter/tweets/{tweet_id}/replies/page instead** — it supports cursor pagination, is more reliable for large reply threads, and avoids request timeouts. - [Batch Get Tweets by ID](https://docs.twexapi.io/api-reference/tweets-endpoints/batch-get-tweets-by-id.md): Retrieve detailed information for multiple Tweets by their IDs. - [Get Similar Tweets](https://docs.twexapi.io/api-reference/tweets-endpoints/get-similar-tweets.md): Get similar tweets - [Get Tweet Thread by ID](https://docs.twexapi.io/api-reference/tweets-endpoints/get-tweet-thread-by-id.md): Given a tweet ID, fetches the author's screen name and then uses advanced search (from:user to:user conversation_id:tweet_id) to retrieve all tweets in the thread. - [Get Twitter Account Based in](https://docs.twexapi.io/api-reference/twitter-account-based-in-endpoints/get-twitter-account-based-in.md): Get Twitter Account Based in - [Modify the profile bio, image and banner of the user](https://docs.twexapi.io/api-reference/twitter-profile-actions-endpoints/modify-the-profile-bio-image-and-banner-of-the-user.md): Modify the profile bio, image and banner of the user - [Get Twitter User About by Screen Name](https://docs.twexapi.io/api-reference/twitter-user-about-endpoints/get-twitter-user-about-by-screen-name.md): Get Twitter User About for a specific twitter user. get account_based_in,location_accurate - [Batch Get User account status](https://docs.twexapi.io/api-reference/users-endpoints/batch-get-user-account-status.md): Retrieve detailed account status for multiple Twitter users by their usernames. - [Block a User](https://docs.twexapi.io/api-reference/users-endpoints/block-a-user.md): Block a user - [Follow User](https://docs.twexapi.io/api-reference/users-endpoints/follow-user.md): Follow a user, $0.0025 per call. - [Get Multiple Users by Usernames](https://docs.twexapi.io/api-reference/users-endpoints/get-multiple-users-by-usernames.md): Retrieve detailed profile information for multiple Twitter users by their usernames or profile URLs, $0.14/1000 users. - [Search User](https://docs.twexapi.io/api-reference/users-endpoints/search-user.md): Search user - [Unblock User](https://docs.twexapi.io/api-reference/users-endpoints/unblock-user.md): Unblock a user, $0.0025 per call. - [Unfollow User](https://docs.twexapi.io/api-reference/users-endpoints/unfollow-user.md): Unfollow a user, $0.0025 per call. - [Users Details by ID](https://docs.twexapi.io/api-reference/users-endpoints/users-details-by-id.md): Users Details by ID - [Verify Account Status](https://docs.twexapi.io/api-reference/users-endpoints/verify-account-status.md): Retrieves the verification metadata for a specific account. This endpoint identifies whether an account holds a **Blue Verified** status (authenticity check) or is an **Official Organization Affiliate** (gold/grey labels). - [Authentication](https://docs.twexapi.io/authentication.md): Bearer token authentication for Twexapi — use with Cursor, Claude Code, GitHub Copilot, ChatGPT, and AI coding agents. Get started in minutes. - [Twexapi Documentation](https://docs.twexapi.io/index.md): Enterprise-grade Twitter API for Cursor, Claude Code, GitHub Copilot, ChatGPT, and AI coding agents — exceptional reliability, lightning-fast performance, and developer-friendly pricing. ## OpenAPI Specs - [openapi](https://docs.twexapi.io/openapi.json) - [openapi copy 5](https://docs.twexapi.io/openapi copy 5.json) - [openapi copy 4](https://docs.twexapi.io/openapi copy 4.json) - [openapi copy 3](https://docs.twexapi.io/openapi copy 3.json) - [openapi copy 2](https://docs.twexapi.io/openapi copy 2.json) - [openapi copy](https://docs.twexapi.io/openapi copy.json)