コンテンツにスキップ
Twexapi
日本語
Esc
移動開く⌘Jプレビュー

アカウント登録国の確認

アカウント登録国の確認.

APIリファレンスに戻る
/Twitter Account Based in Endpoints
POST/twitter/account/based
API 認証
AuthorizationBearer token · header必須
TwexAPIのグローバル認証トークン (Bearer Token)。ヘッダーに含める必要があります:Authorization: Bearer <YOUR_TWEXAPI_KEY>。
リクエストボディ
必須application/json
Array of string
string
レスポンス
200The Twitter Account Based in data.
codeinteger
HTTP ステータスコード(200 は成功)
default: 200
msgstring
レスポンスメッセージ(例: 'success')
default: "success"
dataTwitterUserAboutResponse[] | any
返却されるコアデータオブジェクトまたは配列
プロパティを表示
Any of:
TwitterUserAboutResponse[]
Array of TwitterUserAboutResponse
user_idstring必須
対象ユーザーのTwitter数字ID
avatarstring必須
Profile avatar image URL
namestring必須
ユーザー表示名
screen_namestring必須
Twitterユーザー名(Handle、@なし)
created_atstring必須
作成日時(UTC標準時)
profile_image_shapestring必須
Profile image shape (e.g., Circle, Square)
verificationboolean必須
Whether the user account is verified
userLabelDisplayTypestring必須
User label display type (e.g., Badge)
userLabelTypestring必須
User label type (e.g., BusinessLabel)
is_blue_verifiedboolean必須
Whether the user has blue verification badge (Twitter Blue/X Premium)
privacy_policy_urlstring必須
Privacy policy or learn more URL
account_based_instring必須
Country or region where the account is based
location_accurateboolean必須
Whether the location information is accurate
affiliate_usernamestring必須
Affiliated username (e.g., business account username)
sourcestring必須
Source of account creation (e.g., 'United States App Store')
username_changes_countinteger必須
Number of times the username has been changed
override_verified_yearinteger必須
Override verified year (if applicable, negative values indicate special cases)
verified_since_msecinteger必須
Timestamp in milliseconds when the account was verified (negative values indicate special cases)
any
any
422パラメータバリデーションエラー
detailValidationError[]
プロパティを表示
Array of ValidationError
locstring | integer[]必須
プロパティを表示
Array of string | integer
Any of:
string
string
integer
integer
msgstring必須
レスポンスメッセージ(例: 'success')
typestring必須
inputany
ctxobject
インタラクティブテストPOST
インタラクティブテスト / Try APIPOST
Live 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/twitter/account/based" \
  -H "Authorization: Bearer YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '[
  "screen_name",
  "elonmusk"
]'
レスポンス例
{
  "code": 200,
  "msg": "success",
  "data": [
    {
      "user_id": "44196397",
      "avatar": "https://pbs.twimg.com/profile_images/1983681414370619392/oTT3nm5Z_normal.jpg",
      "name": "Elon Musk",
      "screen_name": "elonmusk",
      "created_at": "Tue Jun 02 20:12:29 +0000 2009",
      "profile_image_shape": "Circle",
      "verification": false,
      "userLabelDisplayType": "Badge",
      "userLabelType": "BusinessLabel",
      "is_blue_verified": true,
      "privacy_policy_url": "https://help.twitter.com/managing-your-account/about-twitter-verified-accounts",
      "account_based_in": "United States",
      "location_accurate": true,
      "affiliate_username": "X",
      "source": "United States App Store",
      "username_changes_count": 0,
      "override_verified_year": -3000,
      "verified_since_msec": -156836000000000
    }
  ]
}