フォローを解除
フォローを解除.
APIリファレンスに戻る
/Users Endpoints
DELETE
/twitter/user/followAPI 認証
AuthorizationBearer token · header必須TwexAPIのグローバル認証トークン (Bearer Token)。ヘッダーに含める必要があります:Authorization: Bearer <YOUR_TWEXAPI_KEY>。
リクエストボディ
必須application/jsonusernamestring必須The username of the user to unfollow.
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 は成功)
msgstring必須レスポンスメッセージ(例: 'success')
dataUserModel | any返却されるコアデータオブジェクトまたは配列
プロパティを表示プロパティを非表示
Any of:
UserModel
idstring必須User ID
namestring必須ユーザー表示名
screen_namestring必須Twitterユーザー名(Handle、@なし)
created_atstring | any作成日時(UTC標準時)
プロパティを表示プロパティを非表示
Any of:
string
stringany
anycreated_at_datetimestring | anyAccount creation datetime in ISO format
プロパティを表示プロパティを非表示
Any of:
string
stringany
anycan_dmboolean | anyWhether the user can be direct messaged
default: false
プロパティを表示プロパティを非表示
Any of:
boolean
booleanany
anycan_media_tagboolean | anyWhether the user can be tagged in media
default: false
プロパティを表示プロパティを非表示
Any of:
boolean
booleanany
anydefault_profileboolean | anyWhether the user has a default profile
default: false
プロパティを表示プロパティを非表示
Any of:
boolean
booleanany
anydefault_profile_imageboolean | anyWhether the user has a default profile image
default: false
プロパティを表示プロパティを非表示
Any of:
boolean
booleanany
anydescriptionstring | anyプロフィール自己紹介文(Bio)
default: ""
プロパティを表示プロパティを非表示
Any of:
string
stringany
anydescription_urlsstring[]List of URLs found in the user's description
default: []
urlsurlModel[] | anyList of URLs found in the user's profile
プロパティを表示プロパティを非表示
Any of:
urlModel[]
Array of
urlModelurlstring必須URL
expanded_urlstring | anyExpanded URL
プロパティを表示プロパティを非表示
Any of:
string
stringany
anydisplay_urlstring | anyDisplay URL
プロパティを表示プロパティを非表示
Any of:
string
stringany
anyany
anyfast_followers_countinteger | anyCount of fast followers
default: 0
プロパティを表示プロパティを非表示
Any of:
integer
integerany
anyfavourites_countinteger | anyNumber of tweets the user has liked
default: 0
プロパティを表示プロパティを非表示
Any of:
integer
integerany
anyfollowers_countinteger | anyフォロワー総数
default: 0
プロパティを表示プロパティを非表示
Any of:
integer
integerany
anyfollowing_countinteger | anyフォロー中の総数
default: 0
プロパティを表示プロパティを非表示
Any of:
integer
integerany
anyhas_custom_timelinesboolean | anyWhether the user has custom timelines
default: false
プロパティを表示プロパティを非表示
Any of:
boolean
booleanany
anyis_blue_verifiedboolean | anyBlue verification status
default: false
プロパティを表示プロパティを非表示
Any of:
boolean
booleanany
anyverified_typestring | anyVerification badge type when not blue-only: blue, business, government, etc.
プロパティを表示プロパティを非表示
Any of:
string
stringany
anyis_verifiedboolean | anyTrue if the account has any verification badge (blue, business, government, or legacy verified)
default: false
プロパティを表示プロパティを非表示
Any of:
boolean
booleanany
anyprofile_image_shapestring | anyProfile image shape (Circle or Square; Square often indicates business/government)
プロパティを表示プロパティを非表示
Any of:
string
stringany
anyis_translatorboolean | anyWhether the user is a translator
default: false
プロパティを表示プロパティを非表示
Any of:
boolean
booleanany
anylisted_countinteger | anyNumber of public lists the user is a member of
default: 0
プロパティを表示プロパティを非表示
Any of:
integer
integerany
anylocationstring | anyUser's location
default: ""
プロパティを表示プロパティを非表示
Any of:
string
stringany
anymedia_countinteger | anyNumber of media tweets posted by the user
default: 0
プロパティを表示プロパティを非表示
Any of:
integer
integerany
anynormal_followers_countinteger | anyCount of normal followers
default: 0
プロパティを表示プロパティを非表示
Any of:
integer
integerany
anypinned_tweet_idsstring[]List of pinned tweet IDs
default: []
possibly_sensitiveboolean | anyWhether the user's profile may contain sensitive content
default: false
プロパティを表示プロパティを非表示
Any of:
boolean
booleanany
anyprofile_banner_urlstring | anyURL of the user's profile banner
プロパティを表示プロパティを非表示
Any of:
string
stringany
anyprofile_image_urlstring | anyURL of the user's profile image
プロパティを表示プロパティを非表示
Any of:
string
stringany
anyprotectedboolean | anyWhether the user's tweets are protected
default: false
プロパティを表示プロパティを非表示
Any of:
boolean
booleanany
anystatuses_countinteger | anyNumber of tweets posted by the user
default: 0
プロパティを表示プロパティを非表示
Any of:
integer
integerany
anyany
any422パラメータバリデーションエラー
detailValidationError[]プロパティを表示プロパティを非表示
Array of
ValidationErrorlocstring | integer[]必須プロパティを表示プロパティを非表示
Array of
string | integerAny of:
string
stringinteger
integermsgstring必須レスポンスメッセージ(例: 'success')
typestring必須inputanyctxobject⚡インタラクティブテストDELETE
⚡インタラクティブテスト / Try APIDELETELive 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/follow" \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"username": "string",
"cookie": "ct0=abc123... or 2c4a4e1832096aa694c739b83c83b6d96d43eba7"
}'const response = await fetch("https://api.twexapi.io/twitter/user/follow", {
method: "DELETE",
headers: {
"Authorization": "Bearer YOUR_TOKEN",
"Content-Type": "application/json"
},
body: JSON.stringify({
"username": "string",
"cookie": "ct0=abc123... or 2c4a4e1832096aa694c739b83c83b6d96d43eba7"
})
});import requests
response = requests.delete(
"https://api.twexapi.io/twitter/user/follow",
headers={
"Authorization": "Bearer YOUR_TOKEN",
"Content-Type": "application/json"
},
json={
"username": "string",
"cookie": "ct0=abc123... or 2c4a4e1832096aa694c739b83c83b6d96d43eba7"
},
)レスポンス例
{
"code": 0,
"msg": "string",
"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
}
}{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string",
"input": null,
"ctx": {}
}
]
}