跳转到主要内容
Schemas.User

属性

affiliation
Record<string, any>
有关用户隶属关系的元数据。
connectionStatus
("following" | "follow_request_received" | "follow_request_sent" | "blocking" | "followed_by" | "muting")[]
返回两个用户之间关系的详细信息。
createdAt
string
该用户的创建时间。
description
string
该用户的个人资料简介文本(亦称 bio),如有提供。
entities
Record<string, any>
在用户个人资料简介中发现的元数据列表。
id
string
required
location
string
用户在个人资料中指定的位置(如有提供)。由于为自由文本,可能不表示有效地点,但在使用位置查询进行搜索时可进行模糊评估。
mostRecentTweetId
string
name
string
required
该用户在其资料中显示的显示名称。
pinnedTweetId
string
profileBannerUrl
string
该用户个人资料横幅的 URL。
profileImageUrl
string
该用户个人资料头像的 URL。
protected
boolean
指示该用户是否选择保护其 Posts(换言之,该用户的 Posts 是否为私密)。
publicMetrics
Record<string, any>
该用户的各项指标列表。
receivesYourDm
boolean
指示你是否可以向该用户发送私信(DM)。
subscriptionType
"Basic" | "Premium" | "PremiumPlus" | "None"
用户的 X Blue 订阅类型,例如:Basic、Premium、PremiumPlus 或 None。
url
string
用户在个人资料中指定的 URL。
username
string
required
verified
boolean
指示该用户是否为已验证的 X 用户。
verifiedType
"blue" | "government" | "business" | "none"
用户的 X Blue 验证类型,例如:blue、government、business 或 none。
withheld
UserWithheld