X (Twitter) — 推文详情
SpiderHubs OpenAPI 文档:X (Twitter) — 推文详情,分类 X (Twitter)。接口 GET /openapi/v1/contentcreator/twitter/web/fetch_tweet_detail。按 tweet_id 获取单条推文的完整数据(正文、互动数、媒体、作者)。
OpId:
tw-tweet-detail · 最近更新: 2026-05-23说明
按 tweet_id 获取单条推文的完整数据(正文、互动数、媒体、作者)。
基础信息
- Endpoint:
- GET /openapi/v1/contentcreator/twitter/web/fetch_tweet_detail
- 计费:
- 1 积分 / 次
- 限流:
- 300 次 / 分钟 / 用户
请求参数说明
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
| tweet_id | string | 是 | 推文 ID(URL /status/ 后的数字) |
响应字段说明
| 字段 | 类型 | 说明 |
|---|---|---|
| code | int | 业务状态码,200 表示成功 |
| request_id | string | 本次请求唯一标识,排查问题时可提供 |
| data | object | 业务数据容器,具体字段见下 |
| data.id | string | 推文 ID |
| data.text | string | 推文正文(含短链) |
| data.display_text | string | 展示文本(去掉媒体短链) |
| data.created_at | string | 发布时间,如 "Wed Oct 26 18:45:58 +0000 2022" |
| data.likes | int | 点赞数 |
| data.retweets | int | 转推数 |
| data.replies | int | 回复数 |
| data.quotes | int | 引用数 |
| data.bookmarks | int | 收藏数 |
| data.views | string | 浏览量(字符串,可能为 null) |
| data.lang | string | 语言代码 |
| data.author | object | 作者信息(rest_id / name / screen_name / avatar / followers_count / blue_verified) |
| data.media | array | 媒体列表(图片 / 视频) |
| data.entities | object | 实体(话题、@、链接、媒体原始信息) |
请求示例 · cURL
curl 'https://api.spiderhubs.com/openapi/v1/contentcreator/twitter/web/fetch_tweet_detail?tweet_id=1585341984679469056' \
-H 'Authorization: Bearer sk_live_xxxxxxxxxxxxxxxxxxxxxxxx'响应示例
{
"code": 200,
"request_id": "44b7dbe5-3f18-4910-ae38-3f5cf51d9e41",
"data": {
"id": "1585341984679469056",
"status": "active",
"text": "Entering Twitter HQ – let that sink in! https://t.co/D68z4K2wq7",
"display_text": "Entering Twitter HQ – let that sink in!",
"created_at": "Wed Oct 26 18:45:58 +0000 2022",
"likes": 1230207,
"retweets": 155586,
"replies": 58378,
"quotes": 42452,
"bookmarks": 13276,
"views": null,
"lang": "en",
"sensitive": false,
"conversation_id": "1585341984679469056",
"author": {
"rest_id": "44196397",
"name": "Elon Musk",
"screen_name": "elonmusk",
"avatar": "https://pbs.twimg.com/profile_images/...jpg",
"followers_count": 240919659,
"blue_verified": true
},
"media": [ { "type": "video", "url": "..." } ],
"entities": { "media": [ "..." ] }
}
}开始调用 SpiderHubs API
使用账户中心生成的 API Key,通过 Authorization: Bearer sk_live_xxx 调用接口。