# TwexAPI TypeScript SDK API

> TwexAPI is an independent third-party service. Not affiliated with X Corp. "Twitter" and "X" are trademarks of X Corp.

# Account

Types:

- <a href="./src/sdk/account.ts">StandardResponse</a>

Methods:

- <a href="./src/sdk/account.ts">client.account.<strong>balance</strong>() -> <code>StandardResponse</code></a>

# Analysis

Types:

- <a href="./src/sdk/analysis.ts">SentimentAnalysisQuery</a>
- <a href="./src/sdk/analysis.ts">SentimentAnalysisResponse</a>

Methods:

- <a href="./src/sdk/analysis.ts">client.analysis.<strong>sentiment</strong>({ ...params }) -> <code>SentimentAnalysisResponse</code></a>

# Articles

Types:

- <a href="./src/sdk/articles.ts">XArticleResponse</a>
- <a href="./src/sdk/articles.ts">ArticlesMarkdownRequest</a>

Methods:

- <a href="./src/sdk/articles.ts">client.articles.<strong>fetch</strong>({ ...params }) -> <code>XArticleResponse</code></a>
- <a href="./src/sdk/articles.ts">client.articles.<strong>markdown</strong>({ ...params }) -> <code>string</code></a>

# Communities

Types:

- <a href="./src/sdk/communities.ts">SearchUserResponse</a>
- <a href="./src/sdk/communities.ts">GetCommunityMembersCursorQuery</a>
- <a href="./src/sdk/communities.ts">GetCommunityMembersCursorResponse</a>
- <a href="./src/sdk/communities.ts">CommunityTweetsResponse</a>
- <a href="./src/sdk/communities.ts">GetCommunityTweetsCursorQuery</a>
- <a href="./src/sdk/communities.ts">GetCommunityTweetsCursorResponse</a>
- <a href="./src/sdk/communities.ts">SearchCommunityQuery</a>
- <a href="./src/sdk/communities.ts">SearchCommunityResponse</a>
- <a href="./src/sdk/communities.ts">GetCommunityResponse</a>
- <a href="./src/sdk/communities.ts">SearchCommunityTweetsQuery</a>

Methods:

- <a href="./src/sdk/communities.ts">client.communities.<strong>members</strong>({ ...params }) -> <code>SearchUserResponse</code></a>
- <a href="./src/sdk/communities.ts">client.communities.<strong>membersPage</strong>({ ...params }) -> <code>GetCommunityMembersCursorResponse</code></a>
- <a href="./src/sdk/communities.ts">client.communities.<strong>tweets</strong>({ ...params }) -> <code>CommunityTweetsResponse</code></a>
- <a href="./src/sdk/communities.ts">client.communities.<strong>tweetsPage</strong>({ ...params }) -> <code>GetCommunityTweetsCursorResponse</code></a>
- <a href="./src/sdk/communities.ts">client.communities.<strong>search</strong>({ ...params }) -> <code>SearchCommunityResponse</code></a>
- <a href="./src/sdk/communities.ts">client.communities.<strong>get</strong>({ ...params }) -> <code>GetCommunityResponse</code></a>
- <a href="./src/sdk/communities.ts">client.communities.<strong>searchTweets</strong>({ ...params }) -> <code>CommunityTweetsResponse</code></a>

# Dm

Types:

- <a href="./src/sdk/dm.ts">DMStatusResponseV2</a>
- <a href="./src/sdk/dm.ts">SendDmV3Query</a>
- <a href="./src/sdk/dm.ts">SendDmResponse</a>
- <a href="./src/sdk/dm.ts">GetDmHistoryV3Query</a>
- <a href="./src/sdk/dm.ts">GetDmHistoryV3Response</a>
- <a href="./src/sdk/dm.ts">GetDmMediaV3Query</a>
- <a href="./src/sdk/dm.ts">GetDmMediaV3Response</a>
- <a href="./src/sdk/dm.ts">GetConversationsV3Query</a>
- <a href="./src/sdk/dm.ts">GetConversationsV3Response</a>

Methods:

- <a href="./src/sdk/dm.ts">client.dm.<strong>status</strong>({ ...params }) -> <code>DMStatusResponseV2</code></a>
- <a href="./src/sdk/dm.ts">client.dm.<strong>send</strong>({ ...params }) -> <code>SendDmResponse</code></a>
- <a href="./src/sdk/dm.ts">client.dm.<strong>history</strong>({ ...params }) -> <code>GetDmHistoryV3Response</code></a>
- <a href="./src/sdk/dm.ts">client.dm.<strong>media</strong>({ ...params }) -> <code>GetDmMediaV3Response</code></a>
- <a href="./src/sdk/dm.ts">client.dm.<strong>conversations</strong>({ ...params }) -> <code>GetConversationsV3Response</code></a>

# Lists

Types:

- <a href="./src/sdk/lists.ts">ListTweetsResponse</a>
- <a href="./src/sdk/lists.ts">GetListTweetsCursorQuery</a>
- <a href="./src/sdk/lists.ts">GetListTweetsCursorResponse</a>
- <a href="./src/sdk/lists.ts">ListSubscribersResponse</a>
- <a href="./src/sdk/lists.ts">ListMembersResponse</a>
- <a href="./src/sdk/lists.ts">GetListMembersCursorQuery</a>
- <a href="./src/sdk/lists.ts">GetListMembersCursorResponse</a>
- <a href="./src/sdk/lists.ts">SearchListQuery</a>
- <a href="./src/sdk/lists.ts">SearchListResponse</a>

Methods:

- <a href="./src/sdk/lists.ts">client.lists.<strong>tweets</strong>({ ...params }) -> <code>ListTweetsResponse</code></a>
- <a href="./src/sdk/lists.ts">client.lists.<strong>tweetsPage</strong>({ ...params }) -> <code>GetListTweetsCursorResponse</code></a>
- <a href="./src/sdk/lists.ts">client.lists.<strong>subscribers</strong>({ ...params }) -> <code>ListSubscribersResponse</code></a>
- <a href="./src/sdk/lists.ts">client.lists.<strong>members</strong>({ ...params }) -> <code>ListMembersResponse</code></a>
- <a href="./src/sdk/lists.ts">client.lists.<strong>membersPage</strong>({ ...params }) -> <code>GetListMembersCursorResponse</code></a>
- <a href="./src/sdk/lists.ts">client.lists.<strong>search</strong>({ ...params }) -> <code>SearchListResponse</code></a>

# Search

Types:

- <a href="./src/sdk/search.ts">AdvancedSearchCursorQuery</a>
- <a href="./src/sdk/search.ts">AdvancedSearchCursorResponse</a>
- <a href="./src/sdk/search.ts">CashtagsQuery</a>
- <a href="./src/sdk/search.ts">HashtagsQuery</a>
- <a href="./src/sdk/search.ts">SearchResponse</a>

Methods:

- <a href="./src/sdk/search.ts">client.search.<strong>advanced</strong>({ ...params }) -> <code>AdvancedSearchCursorResponse</code></a>
- <a href="./src/sdk/search.ts">client.search.<strong>cashtags</strong>({ ...params }) -> <code>SearchResponse</code></a>
- <a href="./src/sdk/search.ts">client.search.<strong>hashtags</strong>({ ...params }) -> <code>SearchResponse</code></a>

# Timelines

Types:

- <a href="./src/sdk/timelines.ts">SearchResponse</a>
- <a href="./src/sdk/timelines.ts">UserTimelinePageResponse</a>
- <a href="./src/sdk/timelines.ts">UserTimelineResponse</a>
- <a href="./src/sdk/timelines.ts">GetAllTweetsRepliesCursorQuery</a>
- <a href="./src/sdk/timelines.ts">GetAllTweetsRepliesCursorResponse</a>

Methods:

- <a href="./src/sdk/timelines.ts">client.timelines.<strong>tweetsAndReplies</strong>({ ...params }) -> <code>SearchResponse</code></a>
- <a href="./src/sdk/timelines.ts">client.timelines.<strong>userPage</strong>({ ...params }) -> <code>UserTimelinePageResponse</code></a>
- <a href="./src/sdk/timelines.ts">client.timelines.<strong>user</strong>({ ...params }) -> <code>UserTimelineResponse</code></a>
- <a href="./src/sdk/timelines.ts">client.timelines.<strong>tweetsAndRepliesPage</strong>({ ...params }) -> <code>GetAllTweetsRepliesCursorResponse</code></a>

# Trending

Types:

- <a href="./src/sdk/trending.ts">StandardResponse</a>
- <a href="./src/sdk/trending.ts">SearchResponse</a>

Methods:

- <a href="./src/sdk/trending.ts">client.trending.<strong>countries</strong>() -> <code>StandardResponse</code></a>
- <a href="./src/sdk/trending.ts">client.trending.<strong>topics</strong>() -> <code>StandardResponse</code></a>
- <a href="./src/sdk/trending.ts">client.trending.<strong>contents</strong>({ ...params }) -> <code>StandardResponse</code></a>
- <a href="./src/sdk/trending.ts">client.trending.<strong>tweets</strong>({ ...params }) -> <code>SearchResponse</code></a>
- <a href="./src/sdk/trending.ts">client.trending.<strong>byCountry</strong>({ ...params }) -> <code>StandardResponse</code></a>

# Tweets

Types:

- <a href="./src/sdk/tweets.ts">TweetThreadByIdBody</a>
- <a href="./src/sdk/tweets.ts">GetTweetsByIdResponse</a>

Methods:

- <a href="./src/sdk/tweets.ts">client.tweets.<strong>detail</strong>({ ...params }) -> <code>any</code></a>
- <a href="./src/sdk/tweets.ts">client.tweets.<strong>thread</strong>({ ...params }) -> <code>any</code></a>
- <a href="./src/sdk/tweets.ts">client.tweets.<strong>lookup</strong>({ ...params }) -> <code>GetTweetsByIdResponse</code></a>
- <a href="./src/sdk/tweets.ts">client.tweets.<strong>similar</strong>({ ...params }) -> <code>GetTweetsByIdResponse</code></a>

## Actions

Types:

- <a href="./src/sdk/actions.ts">TweetActionResponse</a>
- <a href="./src/sdk/actions.ts">CreateThreadQuery</a>
- <a href="./src/sdk/actions.ts">CreateThreadResponse</a>
- <a href="./src/sdk/actions.ts">PostTweetQuery</a>
- <a href="./src/sdk/actions.ts">PostTweetResponse</a>
- <a href="./src/sdk/actions.ts">QuoteTweetQuery</a>
- <a href="./src/sdk/actions.ts">PostTweetWithoutCookieQuery</a>
- <a href="./src/sdk/actions.ts">DeleteTweetQuery</a>
- <a href="./src/sdk/actions.ts">DeleteTweetResponse</a>

Methods:

- <a href="./src/sdk/actions.ts">client.tweets.actions.<strong>like</strong>({ ...params }) -> <code>TweetActionResponse</code></a>
- <a href="./src/sdk/actions.ts">client.tweets.actions.<strong>unlike</strong>({ ...params }) -> <code>TweetActionResponse</code></a>
- <a href="./src/sdk/actions.ts">client.tweets.actions.<strong>retweet</strong>({ ...params }) -> <code>TweetActionResponse</code></a>
- <a href="./src/sdk/actions.ts">client.tweets.actions.<strong>unretweet</strong>({ ...params }) -> <code>TweetActionResponse</code></a>
- <a href="./src/sdk/actions.ts">client.tweets.actions.<strong>createThread</strong>({ ...params }) -> <code>CreateThreadResponse</code></a>
- <a href="./src/sdk/actions.ts">client.tweets.actions.<strong>create</strong>({ ...params }) -> <code>PostTweetResponse</code></a>
- <a href="./src/sdk/actions.ts">client.tweets.actions.<strong>quote</strong>({ ...params }) -> <code>PostTweetResponse</code></a>
- <a href="./src/sdk/actions.ts">client.tweets.actions.<strong>createWithoutCookie</strong>({ ...params }) -> <code>PostTweetResponse</code></a>
- <a href="./src/sdk/actions.ts">client.tweets.actions.<strong>bookmark</strong>({ ...params }) -> <code>TweetActionResponse</code></a>
- <a href="./src/sdk/actions.ts">client.tweets.actions.<strong>unbookmark</strong>({ ...params }) -> <code>TweetActionResponse</code></a>
- <a href="./src/sdk/actions.ts">client.tweets.actions.<strong>deleteBatch</strong>({ ...params }) -> <code>DeleteTweetResponse</code></a>

## Engagement

Types:

- <a href="./src/sdk/engagement.ts">SearchUserResponse</a>
- <a href="./src/sdk/engagement.ts">GetRetweetersCursorQuery</a>
- <a href="./src/sdk/engagement.ts">GetRetweetersCursorResponse</a>
- <a href="./src/sdk/engagement.ts">GetQuotesQuery</a>
- <a href="./src/sdk/engagement.ts">GetQuotesResponse</a>
- <a href="./src/sdk/engagement.ts">GetQuotesCursorQuery</a>
- <a href="./src/sdk/engagement.ts">GetQuotesCursorResponse</a>

Methods:

- <a href="./src/sdk/engagement.ts">client.tweets.engagement.<strong>retweeters</strong>({ ...params }) -> <code>SearchUserResponse</code></a>
- <a href="./src/sdk/engagement.ts">client.tweets.engagement.<strong>retweetersPage</strong>({ ...params }) -> <code>GetRetweetersCursorResponse</code></a>
- <a href="./src/sdk/engagement.ts">client.tweets.engagement.<strong>quotes</strong>({ ...params }) -> <code>GetQuotesResponse</code></a>
- <a href="./src/sdk/engagement.ts">client.tweets.engagement.<strong>quotesPage</strong>({ ...params }) -> <code>GetQuotesCursorResponse</code></a>

## Replies

Types:

- <a href="./src/sdk/replies.ts">GetRepliesPageResponse</a>

Methods:

- <a href="./src/sdk/replies.ts">client.tweets.replies.<strong>page</strong>({ ...params }) -> <code>GetRepliesPageResponse</code></a>

# Users

Types:

- <a href="./src/sdk/users.ts">UsersDetailsResponse</a>
- <a href="./src/sdk/users.ts">AccountVerifyResponse</a>
- <a href="./src/sdk/users.ts">SearchUserResponse</a>
- <a href="./src/sdk/users.ts">FollowUserQuery</a>
- <a href="./src/sdk/users.ts">BlockUserResponse</a>
- <a href="./src/sdk/users.ts">UnfollowUserQuery</a>
- <a href="./src/sdk/users.ts">UnfollowUserResponse</a>
- <a href="./src/sdk/users.ts">TwitterAccountBasedStandardResponse</a>
- <a href="./src/sdk/users.ts">TwitterUserAboutStandardResponse</a>

Methods:

- <a href="./src/sdk/users.ts">client.users.<strong>getByUsernames</strong>({ ...params }) -> <code>any</code></a>
- <a href="./src/sdk/users.ts">client.users.<strong>getByIds</strong>({ ...params }) -> <code>UsersDetailsResponse</code></a>
- <a href="./src/sdk/users.ts">client.users.<strong>verifyAccount</strong>({ ...params }) -> <code>AccountVerifyResponse</code></a>
- <a href="./src/sdk/users.ts">client.users.<strong>getStatuses</strong>({ ...params }) -> <code>any</code></a>
- <a href="./src/sdk/users.ts">client.users.<strong>search</strong>({ ...params }) -> <code>SearchUserResponse</code></a>
- <a href="./src/sdk/users.ts">client.users.<strong>follow</strong>({ ...params }) -> <code>BlockUserResponse</code></a>
- <a href="./src/sdk/users.ts">client.users.<strong>unfollow</strong>({ ...params }) -> <code>UnfollowUserResponse</code></a>
- <a href="./src/sdk/users.ts">client.users.<strong>getAccountBased</strong>({ ...params }) -> <code>TwitterAccountBasedStandardResponse</code></a>
- <a href="./src/sdk/users.ts">client.users.<strong>getAbout</strong>({ ...params }) -> <code>TwitterUserAboutStandardResponse</code></a>

## Followers

Types:

- <a href="./src/sdk/followers.ts">FollowersFollowingV3Query</a>
- <a href="./src/sdk/followers.ts">VerifiedFollowersResponse</a>

Methods:

- <a href="./src/sdk/followers.ts">client.users.followers.<strong>list</strong>({ ...params }) -> <code>VerifiedFollowersResponse</code></a>
- <a href="./src/sdk/followers.ts">client.users.followers.<strong>verified</strong>({ ...params }) -> <code>VerifiedFollowersResponse</code></a>

## Following

Types:

- <a href="./src/sdk/following.ts">FollowersFollowingV3Query</a>
- <a href="./src/sdk/following.ts">VerifiedFollowersResponse</a>

Methods:

- <a href="./src/sdk/following.ts">client.users.following.<strong>list</strong>({ ...params }) -> <code>VerifiedFollowersResponse</code></a>
