X 長文記事(Articles)の Markdown 形式取得 API
X (Twitter) 上で公開された長文記事(Articles)の本文を、クリーンで構造化された Markdown 形式で抽出する API。HTML のゴミタグや不要な装飾を除去した純粋な UTF-8 Markdown 文字列を返すため、LLM/AI の RAG(検索拡張生成)ナレッジベース構築、Notion、Obsidian、静的サイトへのインポートに最適です。
APIリファレンスに戻る
/Article Endpoints
GET
/x/article/{tweet_id}/markdownAPI 認証
AuthorizationBearer token · header必須TwexAPIのグローバル認証トークン (Bearer Token)。ヘッダーに含める必要があります:Authorization: Bearer <YOUR_TWEXAPI_KEY>。
パスパラメータ
tweet_idstring必須ツイートの一意のID
レスポンス
200Raw Markdown string representing the article content.
string422パラメータバリデーションエラー
detailValidationError[]プロパティを表示プロパティを非表示
Array of
ValidationErrorlocstring | integer[]必須プロパティを表示プロパティを非表示
Array of
string | integerAny of:
string
stringinteger
integermsgstring必須レスポンスメッセージ(例: 'success')
typestring必須inputanyctxobject⚡インタラクティブテストGET
⚡インタラクティブテスト / Try APIGETLive Console
🌐対象サーバー:
https://api.twexapi.io● 本番環境レディ
🔍
公開データ取得(TwexAPIキーのみ、Twitter Cookie不要)
本エンドポイントは公開Twitterデータの検索・取得用です。TwitterアカウントやCookieは一切不要です!下記の「API認証」に TwexAPIプラットフォームキー (Bearer Token) を入力するだけで即座にテストできます。
🔑API 認証
⚙️リクエストパラメータ (1)
📡
暂无响应数据
请在「请求配置」中确认参数后,点击底部的「发送请求」按钮。
リクエスト例
curl -X GET "https://api.twexapi.io/x/article/string/markdown" \
-H "Authorization: Bearer YOUR_TOKEN"const response = await fetch("https://api.twexapi.io/x/article/string/markdown", {
method: "GET",
headers: {
"Authorization": "Bearer YOUR_TOKEN"
}
});import requests
response = requests.get(
"https://api.twexapi.io/x/article/string/markdown",
headers={
"Authorization": "Bearer YOUR_TOKEN"
},
)レスポンス例
"string"{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string",
"input": null,
"ctx": {}
}
]
}