auth_tokenによるユーザー情報取得
auth_tokenによるユーザー情報取得.
APIリファレンスに戻る
/Cookie Endpoints
GET
/twitter/{auth_token}/user_infoAPI 認証
AuthorizationBearer token · header必須TwexAPIのグローバル認証トークン (Bearer Token)。ヘッダーに含める必要があります:Authorization: Bearer <YOUR_TWEXAPI_KEY>。
パスパラメータ
auth_tokenstring必須ブラウザCookieから取得したauth_token
レスポンス
200Twitter user info
codeinteger必須HTTP ステータスコード(200 は成功)
msgstring必須レスポンスメッセージ(例: 'success')
dataUserInfo | any必須返却されるコアデータオブジェクトまたは配列
プロパティを表示プロパティを非表示
Any of:
UserInfo
userIdstring必須User ID
isBlueVerifiedboolean必須Blue verification status
createdAtstring必須Account creation date
createdAtDatetimestring | anyAccount creation datetime in ISO format
プロパティを表示プロパティを非表示
Any of:
string
stringany
anydefaultProfileboolean必須Default profile flag
defaultProfileImageboolean必須Default profile image flag
descriptionstring必須プロフィール自己紹介文(Bio)
locationstring必須Location
fastFollowersCountinteger必須Fast followers count
favouritesCountinteger必須Likes count
followersCountinteger必須Followers count
followingCountinteger必須Following count
hasCustomTimelinesboolean必須Has custom timelines flag
isTranslatorboolean必須Is translator flag
listedCountinteger必須Listed count
mediaCountinteger必須Media count
namestring必須ユーザー表示名
normalFollowersCountinteger必須Normal followers count
pinnedTweetIdsStrany[] | anyPinned tweet IDs
プロパティを表示プロパティを非表示
Any of:
any[]
Array of
anyanyany
anypossiblySensitiveboolean必須Possibly sensitive flag
profileImageUrlHttpsstring必須Profile image URL
usernamestring必須Username
statusesCountinteger必須Tweets count
translatorTypestring | anyTranslator type
プロパティを表示プロパティを非表示
Any of:
string
stringany
anyverifiedboolean必須Legacy verification status
verified_typestring | anyVerification badge type: blue, business, government, etc.
プロパティを表示プロパティを非表示
Any of:
string
stringany
anywithheldInCountriesany[] | anyWithheld in countries
プロパティを表示プロパティを非表示
Any of:
any[]
Array of
anyanyany
anyprotectedboolean必須Protected account flag
urlstring | anyUser profile URL
プロパティを表示プロパティを非表示
Any of:
string
stringany
anydescriptionUrlsany[] | anyDescription URLs
プロパティを表示プロパティを非表示
Any of:
any[]
Array of
anyanyany
anyurlsany[] | anyUser URLs
プロパティを表示プロパティを非表示
Any of:
any[]
Array of
anyanyany
anypinnedTweetIdsany[] | anyPinned tweet IDs
プロパティを表示プロパティを非表示
Any of:
any[]
Array of
anyanyany
anyany
any422パラメータバリデーションエラー
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)
1. TwexAPIプラットフォームキー (Bearer Token): 下記の「API認証」に入力してください(API呼び出しと課金認証に使用)。
2. TwitterアカウントCookie: ツイート・いいね・フォロー等の書き込み操作のため、下記リクエストボディの cookie フィールドに対象TwitterアカウントのCookie(例: auth_token=...; ct0=...)を入力してください。
🔑API 認証
⚙️リクエストパラメータ (1)
📡
暂无响应数据
请在「请求配置」中确认参数后,点击底部的「发送请求」按钮。
リクエスト例
curl -X GET "https://api.twexapi.io/twitter/string/user_info" \
-H "Authorization: Bearer YOUR_TOKEN"const response = await fetch("https://api.twexapi.io/twitter/string/user_info", {
method: "GET",
headers: {
"Authorization": "Bearer YOUR_TOKEN"
}
});import requests
response = requests.get(
"https://api.twexapi.io/twitter/string/user_info",
headers={
"Authorization": "Bearer YOUR_TOKEN"
},
)レスポンス例
{
"code": 0,
"msg": "string",
"data": {
"userId": "string",
"isBlueVerified": true,
"createdAt": "string",
"createdAtDatetime": "string",
"defaultProfile": true,
"defaultProfileImage": true,
"description": "string",
"location": "string",
"fastFollowersCount": 0,
"favouritesCount": 0,
"followersCount": 0,
"followingCount": 0,
"hasCustomTimelines": true,
"isTranslator": true,
"listedCount": 0,
"mediaCount": 0,
"name": "string",
"normalFollowersCount": 0,
"pinnedTweetIdsStr": [
null
],
"possiblySensitive": true,
"profileImageUrlHttps": "string",
"username": "string",
"statusesCount": 0,
"translatorType": "string",
"verified": true,
"verified_type": "blue",
"withheldInCountries": [
null
],
"protected": true,
"url": "string",
"descriptionUrls": [
null
],
"urls": [
null
],
"pinnedTweetIds": [
null
]
}
}{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string",
"input": null,
"ctx": {}
}
]
}