X長文記事の一括取得
X長文記事の一括取得.
APIリファレンスに戻る
/Article Endpoints
POST
/x/articleAPI 認証
AuthorizationBearer token · header必須TwexAPIのグローバル認証トークン (Bearer Token)。ヘッダーに含める必要があります:Authorization: Bearer <YOUR_TWEXAPI_KEY>。
リクエストボディ
必須application/jsonArray of
stringstringレスポンス
200A list of objects containing detailed article data for each valid ID provided.
codeinteger必須HTTP ステータスコード(200 は成功)
msgstring必須レスポンスメッセージ(例: 'success')
dataXArticleModel[]必須返却されるコアデータオブジェクトまたは配列
プロパティを表示プロパティを非表示
Array of
XArticleModeltweet_idstring | anyツイートの一意のID
プロパティを表示プロパティを非表示
Any of:
string
stringany
anyfull_textstring | anyツイートの完全な本文テキスト
プロパティを表示プロパティを非表示
Any of:
string
stringany
anycreated_atstring | any作成日時(UTC標準時)
プロパティを表示プロパティを非表示
Any of:
string
stringany
anylangstring | anyツイートの言語コード(例: 'ja', 'en')
プロパティを表示プロパティを非表示
Any of:
string
stringany
anybookmark_countinteger | anyブックマーク追加数
プロパティを表示プロパティを非表示
Any of:
integer
integerany
anyfavorite_countinteger | anyいいね(Favorite)数
プロパティを表示プロパティを非表示
Any of:
integer
integerany
anyreply_countinteger | anyリプライ返信数
プロパティを表示プロパティを非表示
Any of:
integer
integerany
anyretweet_countinteger | anyリツイート数
プロパティを表示プロパティを非表示
Any of:
integer
integerany
anyquote_countinteger | any引用リツイート数
プロパティを表示プロパティを非表示
Any of:
integer
integerany
anyview_countstring | anyインプレッション・閲覧数
プロパティを表示プロパティを非表示
Any of:
string
stringany
anyview_count_statestring | anyView count state
プロパティを表示プロパティを非表示
Any of:
string
stringany
anyconversation_idstring | anyConversation ID
プロパティを表示プロパティを非表示
Any of:
string
stringany
anyauthor_user_idstring | anyAuthor user ID
プロパティを表示プロパティを非表示
Any of:
string
stringany
anyauthor_screen_namestring | any投稿者のTwitterユーザー名(@なし)
プロパティを表示プロパティを非表示
Any of:
string
stringany
anyauthor_namestring | any投稿者の表示名
プロパティを表示プロパティを非表示
Any of:
string
stringany
anyauthor_is_blue_verifiedboolean | any認証バッジ(X Premium)の有無
プロパティを表示プロパティを非表示
Any of:
boolean
booleanany
anyauthor_verifiedboolean | anyWhether author is verified
プロパティを表示プロパティを非表示
Any of:
boolean
booleanany
anyauthor_is_verified_organization_affiliateboolean | anyWhether author is verified organization
プロパティを表示プロパティを非表示
Any of:
boolean
booleanany
anyarticle_idstring | anyX記事の一意のID
プロパティを表示プロパティを非表示
Any of:
string
stringany
anyarticle_titlestring | anyX記事のタイトル
プロパティを表示プロパティを非表示
Any of:
string
stringany
anyarticle_preview_textstring | anyArticle preview text
プロパティを表示プロパティを非表示
Any of:
string
stringany
anyarticle_summary_textstring | anyArticle summary text
プロパティを表示プロパティを非表示
Any of:
string
stringany
anyarticle_cover_image_urlstring | anyArticle cover image URL
プロパティを表示プロパティを非表示
Any of:
string
stringany
anyarticle_blocksArticleBlock[]Article formatting blocks
プロパティを表示プロパティを非表示
Array of
ArticleBlocktypestring必須The type of the article block.
textstring必須メッセージ本文
entityRangesArticleBlockRange[]The entity ranges of the article block.
プロパティを表示プロパティを非表示
Array of
ArticleBlockRangekeyinteger必須The key of the entity range.
lengthinteger必須The length of the entity range.
offsetinteger必須The offset of the entity range.
article_plain_textstring | anyArticle plain text
プロパティを表示プロパティを非表示
Any of:
string
stringany
anyarticle_markdownstring | anyArticle markdown
プロパティを表示プロパティを非表示
Any of:
string
stringany
anyarticle_media_image_urlsstring[]Article media image URLs
422パラメータバリデーションエラー
detailValidationError[]プロパティを表示プロパティを非表示
Array of
ValidationErrorlocstring | integer[]必須プロパティを表示プロパティを非表示
Array of
string | integerAny of:
string
stringinteger
integermsgstring必須レスポンスメッセージ(例: 'success')
typestring必須inputanyctxobject⚡インタラクティブテストPOST
⚡インタラクティブテスト / Try APIPOSTLive Console
🌐対象サーバー:
https://api.twexapi.io● 本番環境レディ
🔍
公開データ取得(TwexAPIキーのみ、Twitter Cookie不要)
本エンドポイントは公開Twitterデータの検索・取得用です。TwitterアカウントやCookieは一切不要です!下記の「API認証」に TwexAPIプラットフォームキー (Bearer Token) を入力するだけで即座にテストできます。
🔑API 認証
📝リクエストボディapplication/json
📡
暂无响应数据
请在「请求配置」中确认参数后,点击底部的「发送请求」按钮。
リクエスト例
curl -X POST "https://api.twexapi.io/x/article" \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '[
"1803006263529541838",
"1803006263529541839"
]'const response = await fetch("https://api.twexapi.io/x/article", {
method: "POST",
headers: {
"Authorization": "Bearer YOUR_TOKEN",
"Content-Type": "application/json"
},
body: JSON.stringify([
"1803006263529541838",
"1803006263529541839"
])
});import requests
response = requests.post(
"https://api.twexapi.io/x/article",
headers={
"Authorization": "Bearer YOUR_TOKEN",
"Content-Type": "application/json"
},
json=[
"1803006263529541838",
"1803006263529541839"
],
)レスポンス例
{
"code": 0,
"msg": "string",
"data": [
{
"tweet_id": "string",
"full_text": "string",
"created_at": "string",
"lang": "string",
"bookmark_count": 0,
"favorite_count": 0,
"reply_count": 0,
"retweet_count": 0,
"quote_count": 0,
"view_count": "string",
"view_count_state": "string",
"conversation_id": "string",
"author_user_id": "string",
"author_screen_name": "string",
"author_name": "string",
"author_is_blue_verified": true,
"author_verified": true,
"author_is_verified_organization_affiliate": true,
"article_id": "string",
"article_title": "string",
"article_preview_text": "string",
"article_summary_text": "string",
"article_cover_image_url": "string",
"article_blocks": [
{
"type": "string",
"text": "string",
"entityRanges": [
{
"key": 0,
"length": 0,
"offset": 0
}
]
}
],
"article_plain_text": "string",
"article_markdown": "string",
"article_media_image_urls": [
"string"
]
}
]
}{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string",
"input": null,
"ctx": {}
}
]
}