ユーザータイムラインのページネーション取得
ユーザータイムラインのページネーション取得.
APIリファレンスに戻る
/Timeline Endpoints
POST
/twitter/{screen_name}/timeline/pageAPI 認証
AuthorizationBearer token · header必須TwexAPIのグローバル認証トークン (Bearer Token)。ヘッダーに含める必要があります:Authorization: Bearer <YOUR_TWEXAPI_KEY>。
パスパラメータ
screen_namestring必須Twitterユーザー名(Handle、@なし)
リクエストボディ
必須application/jsonnext_cursorstring | any次ページ取得用のカーソル(Cursor)。has_next_page が true の場合に指定
プロパティを表示プロパティを非表示
Any of:
string
stringany
anycountintegerMaximum number of tweets to return for this page.
min 1 · max 100 · default: 20
レスポンス
200Current page data and pagination metadata (has_next_page, next_cursor).
codeintegerHTTP ステータスコード(200 は成功)
default: 200
msgstringレスポンスメッセージ(例: 'success')
default: "success"
dataUserTweetItem[]必須返却されるコアデータオブジェクトまたは配列
プロパティを表示プロパティを非表示
Array of
UserTweetItemtweet_idstring必須ツイートの一意のID
is_paid_promotionbooleanWhether the tweet is associated with a paid promotion
default: false
full_textstring | anyツイートの完全な本文テキスト
プロパティを表示プロパティを非表示
Any of:
string
stringany
anycreated_atstring | any作成日時(UTC標準時)
プロパティを表示プロパティを非表示
Any of:
string
stringany
anylangstring | anyツイートの言語コード(例: 'ja', 'en')
プロパティを表示プロパティを非表示
Any of:
string
stringany
anyconversation_idstring | anyConversation ID
プロパティを表示プロパティを非表示
Any of:
string
stringany
anybookmark_countintegerブックマーク追加数
default: 0
favorite_countintegerいいね(Favorite)数
default: 0
reply_countintegerリプライ返信数
default: 0
retweet_countintegerリツイート数
default: 0
quote_countinteger引用リツイート数
default: 0
view_countstring | anyインプレッション・閲覧数
プロパティを表示プロパティを非表示
Any of:
string
stringany
anyview_count_statestring | anyView count state
プロパティを表示プロパティを非表示
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 | anyLegacy verification flag
プロパティを表示プロパティを非表示
Any of:
boolean
booleanany
anyauthor_is_verified_organization_affiliateboolean | anyVerified organization affiliate flag
プロパティを表示プロパティを非表示
Any of:
boolean
booleanany
anyhas_next_pageboolean必須次ページが存在するかどうか(true の場合さらにデータあり)
next_cursorstring | any次ページ取得用のカーソル(Cursor)。has_next_page が true の場合に指定
プロパティを表示プロパティを非表示
Any of:
string
stringany
anyrequested_countinteger必須Original count requested by the client.
effective_countinteger必須Count after credit throttling was applied.
parsed_countinteger必須Number of tweets actually parsed from the response.
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 認証
⚙️リクエストパラメータ (1)
📝リクエストボディapplication/json
📡
暂无响应数据
请在「请求配置」中确认参数后,点击底部的「发送请求」按钮。
リクエスト例
curl -X POST "https://api.twexapi.io/twitter/Ian_Codes/timeline/page" \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"next_cursor": "",
"count": 20
}'const response = await fetch("https://api.twexapi.io/twitter/Ian_Codes/timeline/page", {
method: "POST",
headers: {
"Authorization": "Bearer YOUR_TOKEN",
"Content-Type": "application/json"
},
body: JSON.stringify({
"next_cursor": "",
"count": 20
})
});import requests
response = requests.post(
"https://api.twexapi.io/twitter/Ian_Codes/timeline/page",
headers={
"Authorization": "Bearer YOUR_TOKEN",
"Content-Type": "application/json"
},
json={
"next_cursor": "",
"count": 20
},
)レスポンス例
{
"code": 200,
"msg": "success",
"data": [
{
"tweet_id": "string",
"is_paid_promotion": false,
"full_text": "string",
"created_at": "string",
"lang": "string",
"conversation_id": "string",
"bookmark_count": 0,
"favorite_count": 0,
"reply_count": 0,
"retweet_count": 0,
"quote_count": 0,
"view_count": "string",
"view_count_state": "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
}
],
"has_next_page": true,
"next_cursor": "DAAHCgABHFeD5h9__-cLAAIAAAATMjAzODIzMzA5NTM4ODY4MDU5NAgAAwAAAAIAAA",
"requested_count": 0,
"effective_count": 0,
"parsed_count": 0
}{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string",
"input": null,
"ctx": {}
}
]
}