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

ブロックを解除

ブロックを解除.

DELETE/twitter/user/block
API 認証
AuthorizationBearer token · header必須
TwexAPIのグローバル認証トークン (Bearer Token)。ヘッダーに含める必要があります:Authorization: Bearer <YOUR_TWEXAPI_KEY>。
リクエストボディ
必須application/json
usernamestring必須
The username of the user to block.
cookiestring必須
ユーザー自身が承認した Twitter セッション資格情報または auth_token(BYOC — Bring Your Own Cookie)。機密情報は保存されず、完全なステートレスプロキシとして実行されます。詳細は [認証・セキュリティガイド](/ja/authentication#write-operations--byoc-bring-your-own-cookie) および [Cookie 取得手順](https://youtube-promotion.pages.dev/how-to-get-twitter-cookie) を参照。
レスポンス
200A confirmation of the action's success.
codeinteger
HTTP ステータスコード(200 は成功)
default: 200
msgstring
レスポンスメッセージ(例: 'success')
default: "success"
dataUserModel | any
返却されるコアデータオブジェクトまたは配列
プロパティを表示
Any of:
UserModel
idstring必須
User ID
namestring必須
ユーザー表示名
screen_namestring必須
Twitterユーザー名(Handle、@なし)
created_atstring | any
作成日時(UTC標準時)
プロパティを表示
Any of:
string
string
any
any
created_at_datetimestring | any
Account creation datetime in ISO format
プロパティを表示
Any of:
string
string
any
any
can_dmboolean | any
Whether the user can be direct messaged
default: false
プロパティを表示
Any of:
boolean
boolean
any
any
can_media_tagboolean | any
Whether the user can be tagged in media
default: false
プロパティを表示
Any of:
boolean
boolean
any
any
default_profileboolean | any
Whether the user has a default profile
default: false
プロパティを表示
Any of:
boolean
boolean
any
any
default_profile_imageboolean | any
Whether the user has a default profile image
default: false
プロパティを表示
Any of:
boolean
boolean
any
any
descriptionstring | any
プロフィール自己紹介文(Bio)
default: ""
プロパティを表示
Any of:
string
string
any
any
description_urlsstring[]
List of URLs found in the user's description
default: []
urlsurlModel[] | any
List of URLs found in the user's profile
プロパティを表示
Any of:
urlModel[]
Array of urlModel
urlstring必須
URL
expanded_urlstring | any
Expanded URL
プロパティを表示
Any of:
string
string
any
any
display_urlstring | any
Display URL
プロパティを表示
Any of:
string
string
any
any
any
any
fast_followers_countinteger | any
Count of fast followers
default: 0
プロパティを表示
Any of:
integer
integer
any
any
favourites_countinteger | any
Number of tweets the user has liked
default: 0
プロパティを表示
Any of:
integer
integer
any
any
followers_countinteger | any
フォロワー総数
default: 0
プロパティを表示
Any of:
integer
integer
any
any
following_countinteger | any
フォロー中の総数
default: 0
プロパティを表示
Any of:
integer
integer
any
any
has_custom_timelinesboolean | any
Whether the user has custom timelines
default: false
プロパティを表示
Any of:
boolean
boolean
any
any
is_blue_verifiedboolean | any
Blue verification status
default: false
プロパティを表示
Any of:
boolean
boolean
any
any
verified_typestring | any
Verification badge type when not blue-only: blue, business, government, etc.
プロパティを表示
Any of:
string
string
any
any
is_verifiedboolean | any
True if the account has any verification badge (blue, business, government, or legacy verified)
default: false
プロパティを表示
Any of:
boolean
boolean
any
any
profile_image_shapestring | any
Profile image shape (Circle or Square; Square often indicates business/government)
プロパティを表示
Any of:
string
string
any
any
is_translatorboolean | any
Whether the user is a translator
default: false
プロパティを表示
Any of:
boolean
boolean
any
any
listed_countinteger | any
Number of public lists the user is a member of
default: 0
プロパティを表示
Any of:
integer
integer
any
any
locationstring | any
User's location
default: ""
プロパティを表示
Any of:
string
string
any
any
media_countinteger | any
Number of media tweets posted by the user
default: 0
プロパティを表示
Any of:
integer
integer
any
any
normal_followers_countinteger | any
Count of normal followers
default: 0
プロパティを表示
Any of:
integer
integer
any
any
pinned_tweet_idsstring[]
List of pinned tweet IDs
default: []
possibly_sensitiveboolean | any
Whether the user's profile may contain sensitive content
default: false
プロパティを表示
Any of:
boolean
boolean
any
any
profile_banner_urlstring | any
URL of the user's profile banner
プロパティを表示
Any of:
string
string
any
any
profile_image_urlstring | any
URL of the user's profile image
プロパティを表示
Any of:
string
string
any
any
protectedboolean | any
Whether the user's tweets are protected
default: false
プロパティを表示
Any of:
boolean
boolean
any
any
statuses_countinteger | any
Number of tweets posted by the user
default: 0
プロパティを表示
Any of:
integer
integer
any
any
any
any
422パラメータバリデーションエラー
detailValidationError[]
プロパティを表示
Array of ValidationError
locstring | integer[]必須
プロパティを表示
Array of string | integer
Any of:
string
string
integer
integer
msgstring必須
レスポンスメッセージ(例: 'success')
typestring必須
inputany
ctxobject
インタラクティブテストDELETE
インタラクティブテスト / Try APIDELETE
Live Console
🌐対象サーバー:https://api.twexapi.io
● 本番環境レディ
✍️
書き込み操作の認証情報ガイド(TwexAPIキー + Twitter Cookie)

1. TwexAPIプラットフォームキー (Bearer Token): 下記の「API認証」に入力してください(API呼び出しと課金認証に使用)。

2. TwitterアカウントCookie: ツイート・いいね・フォロー等の書き込み操作のため、下記リクエストボディの cookie フィールドに対象TwitterアカウントのCookie(例: auth_token=...; ct0=...)を入力してください。

🔑API 認証
📝リクエストボディapplication/json
📡
暂无响应数据

请在「请求配置」中确认参数后,点击底部的「发送请求」按钮。

リクエスト例
curl -X DELETE "https://api.twexapi.io/twitter/user/block" \
  -H "Authorization: Bearer YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "username": "string",
  "cookie": "ct0=abc123... or 2c4a4e1832096aa694c739b83c83b6d96d43eba7"
}'
レスポンス例
{
  "code": 200,
  "msg": "success",
  "data": {
    "id": "1717001045992251392",
    "name": "Cryptoklepto",
    "screen_name": "CK_Cryptoklepto",
    "created_at": "Mon Oct 28 02:32:47 +0000 2024",
    "created_at_datetime": "2024-10-28T02:32:47.000Z",
    "can_dm": false,
    "can_media_tag": false,
    "default_profile": false,
    "default_profile_image": false,
    "description": "",
    "description_urls": [],
    "urls": [
      {
        "url": "https://www.google.com",
        "expanded_url": "https://www.google.com",
        "display_url": "www.google.com"
      }
    ],
    "fast_followers_count": 0,
    "favourites_count": 0,
    "followers_count": 0,
    "following_count": 0,
    "has_custom_timelines": false,
    "is_blue_verified": false,
    "verified_type": "government",
    "is_verified": false,
    "profile_image_shape": "Circle",
    "is_translator": false,
    "listed_count": 0,
    "location": "New York, USA",
    "media_count": 0,
    "normal_followers_count": 0,
    "pinned_tweet_ids": [],
    "possibly_sensitive": false,
    "profile_banner_url": "string",
    "profile_image_url": "string",
    "protected": false,
    "statuses_count": 0
  }
}