跳到主内容

GET /v1/twitter/user/user_detail_v1

Twitter用户资料 API (V1)

stable · 20 credits / 次(成功才计)

通过数字 Rest ID 检索 X (Twitter) 用户资料。用于在监控帖子或进行创作者与账号研究前,查看已知账号信息。

注册即送 500 credits,用自己的 Key 试调。 免费注册

请求

curl
curl -s 'https://api.wellbyte.net/v1/twitter/user/user_detail_v1?restId=demo' \
  -H "Authorization: Bearer dg_live_…"

响应

示例采集于 2026-09-23

data{
code:0
data{
id:"44196397"
desc:"https://t.co/ZdBx5WABYx"
name:"Elon Musk"
avatar:"https://pbs.twimg.com/profile_images/2053244804520427520/m8mdWZCG_normal.jpg"
status:"active"
friends:1411
profile:"elonmusk"
rest_id:"44196397"
location:""
protected:false
sub_count:241702812
affiliates{ 1 item }
created_at:"Tue Jun 02 20:12:29 +0000 2009"
media_count:4722
header_image:"https://pbs.twimg.com/profile_banners/44196397/1774145451"
blue_verified:true
statuses_count:108930
business_account:null
verification_type:null
pinned_tweet_ids_str[ 1 item ]
}
meta{
endpoint:"twitter.user.user_detail_v1"
cache_hit:false
elapsed_ms:0
request_id:"req_sample"
credits_charged:0
}
message:"ok"
}

请求历史

打开完整日志

还没有调用记录。先跑通一次,再换成你的数据。

    请求参数

    参数类型位置必填说明示例
    restIdstringquery是X 用户的唯一数字标识符(Rest ID)。demo

    响应字段

    字段字典待补 —— 右侧可执行区可直接看到真实结构。

    错误码

    codeHTTP含义是否计费
    40001400参数缺失或格式错误否
    40102401API Key 无效或已吊销否
    40201402余额不足,请充值否
    40402404目标资源不存在否
    42201422质量门槛未通过否
    42901429超出速率限制否
    50401504上游超时否
    50201502上游返回异常否

    计费

    成功扣 20 credits;任何失败(含返回 200 但未过质量门槛)扣 0。

    全部Twitter/X端点 →

    搜索

    搜索端点与文档