community_idstringbắt buộc
Community ID
https://api.sandbase.ai/v1/api/twitter/web/community-timelineGet community timeline on Twitter. Returns the platform data as structured JSON.
Đầu ra của bạn sẽ xuất hiện ở đây
Hoàn tất đầu vào, rồi nhấp Run.
This API returns a page of posts from a Twitter Community timeline. It needs a community_id and returns each post with its text, author, engagement counts and attached media.
views or retweets to find the most active topics in a community.blue_verified.curl -X POST "https://api.sandbase.ai/v1/api/twitter/web/community-timeline" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"community_id": "1493290339532222469"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
community_id | string | Yes | Community ID |
cursor | string | No | Cursor |
ranking | string | No | Ranking |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"cursor": "DAAFCgABHWL0VND__-oLAAIAAADoRW1QQzZ3QUFBZlEvZ0dKTjB2R3AvQUFBQUJNZFlNZzdyWmRCRWgx…",
"timeline": [
{
"author": {
"avatar": null,
"blue_verified": true,
"name": "DPMF",
"rest_id": "1452284866792464395",
"screen_name": "DPMF_XDX"
},
"bookmarks": null,
"created_at": "Mon Nov 02 12:56:30 +0000 2026",
"favorites": 24,
"lang": "en",
"media": {
"video": [
{
"aspect_ratio": [
80
],
"duration": 14280,
"id": "2117239410529869824",
"media_url_https": "https://pbs.twimg.com/amplify_video_thumb/2117239410529869824/img/9LrC8iqrcHuErv…",
"original_info": {
"focus_rects": [],
"height": 976,
"width": 1280
},
"variants": [
{
"content_type": "application/x-mpegURL",
"url": "https://video.twimg.com/amplify_video/2117239410529869824/pl/1FzcdDBLNfg9eZzQ.m3…"
}
]
}
]
},
"quoted": {
"author": {
"avatar": null,
"blue_verified": true,
"name": "DPMF",
"rest_id": "1452284866792464395",
"screen_name": "DPMF_XDX"
},
"bookmarks": 9,
"conversation_id": "2109604567742611954",
"created_at": "Mon Oct 12 11:18:18 +0000 2026",
"favorites": 40,
"lang": "en",
"media": {
"video": [
{
"aspect_ratio": [
9
],
"duration": 26700,
"id": "2109604322098941952",
"media_url_https": "https://pbs.twimg.com/amplify_video_thumb/2109604322098941952/img/7ITOFjzIw1zXzT…",
"original_info": {
"focus_rects": [],
"height": 3840,
"width": 2160
},
"variants": [
{
"content_type": "application/x-mpegURL",
"url": "https://video.twimg.com/amplify_video/2109604322098941952/pl/ZRrfNz5avQmyKcBw.m3…"
}
]
}
]
},
"quotes": 3
},
"quotes": 1,
"replies": 10,
"retweets": 15,
"screen_name": "DPMF_XDX",
"source": null
}
]
}
| Field | Meaning |
|---|---|
timeline[] | List of posts in the community timeline. |
timeline[].tweet_id | ID of the post. |
timeline[].text | Text of the post. Long text may be cut. |
timeline[].created_at | Post time as a string, for example Mon Nov 02 12:56:30 +0000 2026. |
timeline[].author.name / timeline[].author.screen_name / timeline[].author.rest_id | Display name, handle and numeric user ID of the author. |
timeline[].author.blue_verified | Whether the author has the blue verified badge. |
timeline[].favorites / timeline[].replies / timeline[].retweets / timeline[].quotes / timeline[].views | Engagement counts for the post. views is returned as a string. |
timeline[].media.video[].variants[] | Video files for the post. Each has a url and content_type. MP4 variants also have a bitrate. |
timeline[].media.photo[].media_url_https | Image URL for a photo attached to the post. |
timeline[].quoted | The post that this post quotes, with its own author, counts and media. It appears only on quote posts. |
cursor | Value for the next page of the timeline. |
cursor value as the cursor parameter to get the next page.community_id with Twitter Search communities. Use Twitter Community info for details about the community itself.bookmarks, source and avatar can be null.tweet_id with Twitter Tweet Detail to get a single post.$0.001 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.
Bắt đầu xây dựng
Endpoint API của nền tảng với xác thực và theo dõi mức sử dụng thống nhất.
curl -X POST "https://api.sandbase.ai/v1/api/twitter/web/community-timeline" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"community_id": "1493290339532222469"
}'Đặt SandBase API key của bạn trong môi trường máy chủ. Các request sử dụng xác thực Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Giữ key của bạn trên máy chủ. Không hiển thị trong mã chạy trên trình duyệt.
community_idstringbắt buộcCommunity ID
rankingstringRanking
cursorstringCursor
Đây là phản hồi ví dụ đã lưu cho API này; không có request thực nào được gửi khi xem mục này.
Chưa có phản hồi đã lưu nào được công bố. Chạy API trong Playground để xem phản hồi.
Khám phá thêm
| API | Giá | Phản hồi |
|---|---|---|
Twitter Community timelineAPI này X (Twitter) | $0.001 mỗi lần gọi | JSON |
Twitter | $0.001 mỗi lần gọi | JSON |
Twitter | $0.001 mỗi lần gọi | JSON |
Twitter | $0.001 mỗi lần gọi | JSON |
Twitter | $0.001 mỗi lần gọi | JSON |
Twitter | $0.001 mỗi lần gọi | JSON |
Hướng dẫn:X API alternative: pay per call, not per postBest Twitter API in 2026: X API Pricing Compared
Câu hỏi
Gửi yêu cầu POST đến https://api.sandbase.ai/v1/api/twitter/web/community-timeline với khóa API SandBase của bạn trong tiêu đề Authorization (Bearer) và các tham số trong phần thân JSON. Bạn cũng có thể thử trực tiếp trong Playground trên trang này mà không cần viết code.
$0.001 mỗi lần gọi, được tính từ số dư SandBase của bạn. Bạn chỉ bị tính phí cho các lần gọi bạn thực hiện; không có gói đăng ký.
Bắt buộc: community_id (string). Tùy chọn: ranking (string) và cursor (string). Bảng Parameters và Playground trên trang này liệt kê mọi trường.
Phản hồi JSON được trả về trong cùng một yêu cầu HTTP (đồng bộ). README trên trang này có ví dụ phản hồi.
Không. Twitter Community timeline chạy thông qua SandBase, nên chỉ cần một API key SandBase là đủ cho endpoint này và mọi API cùng model khác trong danh mục. Bạn không cần đăng ký riêng để có quyền truy cập API của X (Twitter).