跳到主要内容
所有网站
Data API

X Data API

来自 X(原 Twitter)的帖子、个人资料、搜索和趋势。

8 个端点已为你处理速率限制 · TLS 指纹 · login_wall
twitter.comGET/twitter/trendsGET/twitter/trend…GET/twitter/tweet…{ } JSON
示例(实时抓取) 打开演练场
x.com
示例
JSON 响应点击页面以追踪字段
{
"ids": [
"20",
"1131258528402776064"
],
"results": [
{
"id": "20",
"scraped_at": "2026-11-19T10:48:30.386549+00:00",
"text": "just setting up my twttr",
"created_at": "2006-03-21T20:50:14.000Z",
"lang": "en",
"likes": 324821,
"retweets": null,
"replies": 19261,
"quotes": null,
"is_edited": false,
"possibly_sensitive": null,
"reply_to_username": null,
"reply_to": null,
"is_reply": false,
"display_text_range": [
0,
24
],
"hashtags": [
],
"urls": [
],
"mentions": [
],
"symbols": [
],
"media": [
],
"author": {
"id": "12",
"username": "jack",
"name": "jack",
"verified": true,
"profile_image": "https://pbs.twimg.com/profile_images/1661201415899951105/azNjKOSH_normal.jpg",
"verified_type": null
},
"url": "https://x.com/jack/status/20",
"edit_control": {
"edit_tweet_ids": [
"20"
],
"is_edit_eligible": true,
"edits_remaining": "5",
"editable_until": "1142976014000"
}
},
{
"id": "1131258528402776064",
"scraped_at": "2026-11-19T10:48:31.595216+00:00",
"text": "Frankly, I rarely tweet anything other than a link, because I don’t enjoy debating with strangers in a public setting. Even polite ones. I can think of fewer activities that are as time-consuming *and* frustrating. Perhaps golf. But at least then you get nature.",
"created_at": "2019-05-22T18:00:25.000Z",
"lang": "en",
"likes": 275,
"retweets": null,
"replies": 9,
"quotes": null,
"is_edited": false,
"possibly_sensitive": null,
"reply_to_username": "ev",
"reply_to": "1131258525714341888",
"is_reply": true,
"display_text_range": [
0,
262
],
"hashtags": [
],
"urls": [
],
"mentions": [
],
"symbols": [
],
"media": [
],
"author": {
"id": "20",
"username": "ev",
"name": "Ev",
"verified": true,
"profile_image": "https://pbs.twimg.com/profile_images/1112521685045923840/PNTlqJOF_normal.jpg",
"verified_type": null
},
"url": "https://x.com/ev/status/1131258528402776064",
"edit_control": {
"edit_tweet_ids": [
"1131258528402776064"
],
"is_edit_eligible": true,
"edits_remaining": "5",
"editable_until": "1558549825595"
}
}
]
}
GET/v1/twitter/tweets/by-ids1 额度 / 次 已验证

Tweets by IDs

Fetch multiple tweets by id.

已为你处理:速率限制TLS 指纹login_wall
参数
名称类型必填描述
idsstring是Comma-separated tweet ids.