# Tweet Bank API

> Browse the shared viral tweet database and import tweets by handle or URL.

Source: https://xbeast.io/docs/api-tweet-bank

The Tweet Bank is XBeast's shared database of high-performing X posts. Browse it to find formats and hooks that work, or import tweets into it for style examples and research.

### Browse the tweet bank

**`GET /api/v1/tweet-bank`**

#### Query

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| sort_by | string | No | virality_score (default), engagement_score, likes, views, bookmarks, retweets, replies, post_time, created_at. |
| sort_order | string | No | asc or desc. Default desc. |
| handle | string | No | Exact handle (no @). |
| search_account | string | No | Partial handle search. |
| tweet_type | string | No | tweet, thread or long. |
| min_followers | number | No | Minimum author followers. |
| max_followers | number | No | Maximum author followers. |
| time_filter | string | No | 1day, 7days, 1month, 3months or all. |
| limit | number | No | Default 20, max 100. |
| offset | number | No | Pagination offset. |

```bash
curl "https://xbeast.io/api/v1/tweet-bank?tweet_type=thread&time_filter=7days&limit=10" \
  -H "Authorization: Bearer xb_live_YOUR_KEY"
```

Response: `{ data: [ ...tweet ], total, limit, offset, has_more }`. Each entry includes the author, followers, format, tweets, metrics and post time.

### Import tweets

**`POST /api/v1/tweet-bank/import`**

#### Body

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| handle | string | see note | Import the recent top tweets of a handle. |
| urls | string[] | see note | Import up to 20 specific X post URLs. |

Send exactly one of `handle` or `urls`. Requires a connected X account and a full-access key.

## Related

- [Use tweet-bank entries as writing style examples](https://xbeast.io/docs/api-styles.md)
- [Leaderboard and account analytics](https://xbeast.io/docs/api-workspace.md)
- [Browse the tweet bank from an AI agent over MCP](https://xbeast.io/docs/mcp.md)
