---
seo:
  description: >-
    TwexAPI は https://api.twexapi.io にて標準的な RESTful API を提供し、X/Twitter
    データの読み取り、高度な検索、ユーザープロフィールとフォロワーのエクスポート、ツ…
sidebar:
  label: Overview
title: TwexAPI REST API リファレンス
---
TwexAPI は `https://api.twexapi.io` にて標準的な RESTful API を提供し、X/Twitter データの読み取り、高度な検索、ユーザープロフィールとフォロワーのエクスポート、ツイート投稿、DM 送受信、X 記事処理、および AI Agent 統合を網羅しています。

**主な機能群：**
* **高度なツイート検索 (Search)** — キーワード、ハッシュタグ、キャッシュタグによる柔軟な全文検索
* **ツイートとエンゲージメント (Tweets)** — スレッド全件取得、ツイート詳細、リプライ一覧、いいね・リツイートユーザーのエクスポート
* **プロフィールと関係グラフ (Users)** — プロフィール照会、一括取得、カーソルページネーションによるフォロワー・フォロー中リストのエクスポート
* **投稿と書き込み操作 (Tweet Actions)** — 自動投稿、返信、スレッド一括作成、いいね、リツイート、ブックマーク、フォロー
* **ダイレクトメッセージ (DM)** — 1対1 DM 送信、権限確認、会話スレッド一覧とチャット履歴取得
* **グローバルトレンド (Trending)** — 世界各国および地域別の話題トレンドツイート
* **X 記事 (Articles)** — X 長文記事を Markdown 形式で抽出（LLM RAG に最適）、下書きと自動投稿

すべてのエンドポイントは一貫したレスポンス構造（`code: 200`、`msg: "success"`、`data`）を返します。詳細は [エラーハンドリングガイド](/ja/guides/error-handling) を参照してください。

## 認証 (Authentication)

すべての API リクエストヘッダーに API キーを指定します：

```txt
Authorization: Bearer YOUR_API_KEY
```

書き込み操作（投稿、いいね、フォロー、DM 等）には Twitter Cookie または `auth_token` も必要です。詳細は [認証ガイド](/ja/authentication) を参照してください。

<ApiOverview source="ja-api-reference" />

## Cookie Endpoints

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

## Search Endpoints

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

## Tweet Actions Endpoints

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

## Users Endpoints

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

## Followers & Following Endpoints

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

## Tweet Replies Endpoints

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

## DM Endpoints

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

## Article Endpoints

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

## Tweets Endpoints

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

## Grok Endpoints

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

## Tweet Engagement Endpoints

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

## Lists Endpoints

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

## Communities Endpoints

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

## Twitter Profile Actions Endpoints

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

## Trending Endpoints

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

## Timeline Endpoints

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

## All Tweets Replies Endpoints

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

## Twitter Account Based in Endpoints

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

## Twitter User About Endpoints

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

## Balance Endpoints

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