ユーザーの記事をページ単位で取得
Fetch one page of X Articles by screen_name. Requires only a TwexAPI Bearer key. The request body is optional; omitted or null count defaults to 20, and integer values are clamped to 1–20. Pass next_cursor from the previous response to continue. The current implementation returns a continuation cursor only when at least count articles were parsed and the upstream supplied a cursor; a short or empty page therefore ends pagination. A missing user or exhausted result quota returns an empty page.
APIリファレンスに戻る
/Article Endpoints
POST
/twitter/{screen_name}/articles/pageAPI 認証
AuthorizationBearer token · header必須TwexAPIのグローバル認証トークン (Bearer Token)。ヘッダーに含める必要があります:Authorization: Bearer <YOUR_TWEXAPI_KEY>。
パスパラメータ
screen_namestring必須X username with or without @.
matches \S
リクエストボディ
application/jsonAny of:
object
countinteger | anyOmitted or null uses 20. Values below 1 are clamped to 1 and values above 20 to 20.
default: 20
プロパティを表示プロパティを非表示
Any of:
integer
integerany
anynext_cursorstring | anyプロパティを表示プロパティを非表示
Any of:
string
stringany
anyany
anyレスポンス
200Success
codeinteger必須msgstring必須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
has_next_pageboolean必須next_cursorstring | any必須プロパティを表示プロパティを非表示
Any of:
string
stringany
any403Authentication or credit access denied
codeinteger必須msgstring必須dataany[] | any必須プロパティを表示プロパティを非表示
Any of:
any[]
Array of
anyanyany
any422Invalid request
codeinteger必須msgstring必須dataany[] | any必須プロパティを表示プロパティを非表示
Any of:
any[]
Array of
anyanyany
any500Upstream or server error
codeinteger必須msgstring必須dataany[] | any必須プロパティを表示プロパティを非表示
Any of:
any[]
Array of
anyanyany
any⚡インタラクティブテストPOST
⚡インタラクティブテスト / Try APIPOSTLive Console
🌐対象サーバー:
https://api.twexapi.io● 本番環境レディ
🔍
公開データ取得(TwexAPIキーのみ、Twitter Cookie不要)
本エンドポイントは公開Twitterデータの検索・取得用です。TwitterアカウントやCookieは一切不要です!下記の「API認証」に TwexAPIプラットフォームキー (Bearer Token) を入力するだけで即座にテストできます。
🔑API 認証
⚙️リクエストパラメータ (1)
📝リクエストボディapplication/json
📡
暂无响应数据
请在「请求配置」中确认参数后,点击底部的「发送请求」按钮。
リクエスト例
curl -X POST "https://api.twexapi.io/twitter/example_user/articles/page" \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"count": 20,
"next_cursor": null
}'const response = await fetch("https://api.twexapi.io/twitter/example_user/articles/page", {
method: "POST",
headers: {
"Authorization": "Bearer YOUR_TOKEN",
"Content-Type": "application/json"
},
body: JSON.stringify({
"count": 20,
"next_cursor": null
})
});import requests
response = requests.post(
"https://api.twexapi.io/twitter/example_user/articles/page",
headers={
"Authorization": "Bearer YOUR_TOKEN",
"Content-Type": "application/json"
},
json={
"count": 20,
"next_cursor": None
},
)レスポンス例
{
"code": 200,
"msg": "success",
"data": [],
"has_next_page": false,
"next_cursor": null
}{
"code": 403,
"msg": "Authentication or credit access denied",
"data": []
}{
"code": 422,
"msg": "Invalid request",
"data": []
}{
"code": 500,
"msg": "Upstream or server error",
"data": []
}