---
seo:
  description: >-
    TwexAPI exposes a REST API at https://api.twexapi.io for X/Twitter search,
    profiles, followers, posting, DMs, and agent integrations.
sidebar:
  label: Overview
title: TwexAPI REST API
---
TwexAPI exposes a REST API at `https://api.twexapi.io` for X/Twitter search, profiles, followers, posting, DMs, and agent integrations.

**Capabilities include:**

* **Search** — Advanced search, hashtags, cashtags
* **Tweets** — Post, like, retweet, quote, bookmark, delete
* **Users** — Batch user information retrieval
* **Influencers** — Get tweets from top influencers

All endpoints return a consistent envelope with `code`, `msg`, and `data` fields. See [Error Handling](/guides/error-handling) for status codes and recovery.

## Authentication

Send your API key on every request:

```txt
Authorization: Bearer YOUR_API_KEY
```

Write actions also require a Twitter cookie or `auth_token`. See [Authentication](/authentication) for setup examples.

<ApiOverview source="api-reference" />

## Cookie Endpoints

<ApiTagOperations source="api-reference" tag="cookie-endpoints" />

## Search Endpoints

<ApiTagOperations source="api-reference" tag="search-endpoints" />

## Tweet Actions Endpoints

<ApiTagOperations source="api-reference" tag="tweet-actions-endpoints" />

## Users Endpoints

<ApiTagOperations source="api-reference" tag="users-endpoints" />

## Followers & Following Endpoints

<ApiTagOperations source="api-reference" tag="followers-following-endpoints" />

## Tweet Replies Endpoints

<ApiTagOperations source="api-reference" tag="tweet-replies-endpoints" />

## DM Endpoints

<ApiTagOperations source="api-reference" tag="dm-endpoints" />

## Article Endpoints

<ApiTagOperations source="api-reference" tag="article-endpoints" />

## Tweets Endpoints

<ApiTagOperations source="api-reference" tag="tweets-endpoints" />

## Grok Endpoints

<ApiTagOperations source="api-reference" tag="grok-endpoints" />

## Tweet Engagement Endpoints

<ApiTagOperations source="api-reference" tag="tweet-engagement-endpoints" />

## Lists Endpoints

<ApiTagOperations source="api-reference" tag="lists-endpoints" />

## Communities Endpoints

<ApiTagOperations source="api-reference" tag="communities-endpoints" />

## Twitter Profile Actions Endpoints

<ApiTagOperations source="api-reference" tag="twitter-profile-actions-endpoints" />

## Trending Endpoints

<ApiTagOperations source="api-reference" tag="trending-endpoints" />

## Timeline Endpoints

<ApiTagOperations source="api-reference" tag="timeline-endpoints" />

## All Tweets Replies Endpoints

<ApiTagOperations source="api-reference" tag="all-tweets-replies-endpoints" />

## Twitter Account Based in Endpoints

<ApiTagOperations source="api-reference" tag="twitter-account-based-in-endpoints" />

## Twitter User About Endpoints

<ApiTagOperations source="api-reference" tag="twitter-user-about-endpoints" />

## Balance Endpoints

<ApiTagOperations source="api-reference" tag="balance-endpoints" />

## Delegate Endpoints

<ApiTagOperations source="api-reference" tag="delegate-endpoints" />
