계정 가입 국가 조회
계정 가입 국가 조회.
API 참조로 돌아가기
/Twitter Account Based in Endpoints
POST
/twitter/account/basedAPI 인증
AuthorizationBearer token · header필수TwexAPI 전역 인증 토큰 (Bearer Token). 헤더에 포함되어야 합니다: Authorization: Bearer <YOUR_TWEXAPI_KEY>.
요청 본문
필수application/jsonArray of
stringstring응답
200The Twitter Account Based in data.
codeintegerHTTP 상태 코드 (200은 성공)
default: 200
msgstring응답 메시지 (예: 'success')
default: "success"
dataTwitterUserAboutResponse[] | any엔드포인트가 반환한 핵심 데이터
속성 표시속성 숨기기
Any of:
TwitterUserAboutResponse[]
Array of
TwitterUserAboutResponseuser_idstring필수트위터 사용자 고유 ID
avatarstring필수Profile avatar image URL
namestring필수사용자 이름
screen_namestring필수트위터 사용자명 (@ 제외)
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
any422요청 매개변수 유효성 검사 오류
detailValidationError[]속성 표시속성 숨기기
Array of
ValidationErrorlocstring | integer[]필수속성 표시속성 숨기기
Array of
string | integerAny of:
string
stringinteger
integermsgstring필수응답 메시지 (예: 'success')
typestring필수inputanyctxobject⚡대화형 콘솔POST
⚡대화형 콘솔 / API 테스트POSTLive Console
🌐대상 서버:
https://api.twexapi.io● 프로덕션 준비 완료
🔍
공개 데이터 조회 (TwexAPI 키만 필요, Twitter 쿠키 불필요)
이 엔드포인트는 공개 Twitter 데이터를 조회합니다. Twitter 계정이나 쿠키가 필요하지 않습니다! 아래 "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"
]'const response = await fetch("https://api.twexapi.io/twitter/account/based", {
method: "POST",
headers: {
"Authorization": "Bearer YOUR_TOKEN",
"Content-Type": "application/json"
},
body: JSON.stringify([
"screen_name",
"elonmusk"
])
});import requests
response = requests.post(
"https://api.twexapi.io/twitter/account/based",
headers={
"Authorization": "Bearer YOUR_TOKEN",
"Content-Type": "application/json"
},
json=[
"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
}
]
}{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string",
"input": null,
"ctx": {}
}
]
}