cursorstring
Cursor, default is None, used for paging, obtained from the JSON in the last request.
https://api.sandbase.ai/v1/api/twitter/web/user-post-tweetReturns posts and tweets from a specified Twitter (X) user timeline. Users can be identified by either their screen name or numeric user ID, with cursor pagination supported.
[
{
"data": {
"next_cursor": "DAAHCgABHTPlXoP___ALAAIAAAATMjA5OTU3NTQzNjA2MTY2NzgyMQgAAwAAAAIAAA",
"pinned": {
"author": {
"avatar": null,
"blue_verified": true,
"followers_count": null,
"name": null,
"rest_id": "2067551784084889600",
"screen_name": null
},
"bookmarks": 5,
"conversation_id": "2075151551459651685",
"created_at": "Thu Jul 09 09:34:18 +0000 2026",
"favorites": 6,
"lang": "en",
"media": {
"photo": [
{
"id": "2075151531461238784",
"media_url_https": "https://pbs.twimg.com/media/HMxrUr_a4AAq4DX.jpg",
"sizes": {
"h": 1200,
"w": 670
}
},
{
"id": "2075151531477962752",
"media_url_https": "https://pbs.twimg.com/media/HMxrUsDaEAAUQd2.jpg",
"sizes": {
"h": 810,
"w": 1080
}
},
{
"id": "2075151531465408512",
"media_url_https": "https://pbs.twimg.com/media/HMxrUsAagAA_fLp.jpg",
"sizes": {
"h": 1200,
"w": 903
}
},
"… 1 more items in the full response"
]
},
"quotes": 0,
"replies": 0,
"retweets": 1,
"sensitive": false,
"source": "<a href=\"https://mobile.twitter.com\" rel=\"nofollow\">Twitter Web App</a>",
"text": "At GenAI Summit Paris 2026 with SandBaseAI.\nAgent demos are easy now.\nProduction agents are still hard.\nThe next infra layer is emerging around runtime, sandboxing, browser automation, MCP, tools, session, auth, and observability.\nThat’s what we’re building at SandBaseAI. https://t.co/n3sudqGB4S",
"tweet_id": "2075151551459651685",
"views": "667"
},
"prev_cursor": "DAAHCgABHTPlXoQAJxELAAIAAAATMjEwMzExMTI3NzcyODE4MjYxMwgAAwAAAAEAAA",
"status": "ok",
"timeline": [
{
"author": {
"avatar": null,
"blue_verified": true,
"followers_count": null,
"name": null,
"rest_id": "2067551784084889600",
"screen_name": null
},
"bookmarks": 0,
"conversation_id": "2103111277728182613",
"created_at": "Thu Sep 24 13:16:17 +0000 2026",
"entities": [],
"favorites": 3,
"lang": "en",
"media": {
"video": [
{
"aspect_ratio": [
48,
17
],
"duration": 29000,
"id": "2103111134484291584",
"media_url_https": "https://pbs.twimg.com/amplify_video_thumb/2103111134484291584/img/muuS95sRLxe-wIY_.jpg",
"original_info": {
"focus_rects": [],
"height": 680,
"width": 1920
},
"variants": [
{
"content_type": "application/x-mpegURL",
"url": "https://video.twimg.com/amplify_video/2103111134484291584/pl/1y6JKd_vBnPm_5hM.m3u8?tag=29"
},
{
"bitrate": 256000,
"content_type": "video/mp4",
"url": "https://video.twimg.com/amplify_video/2103111134484291584/vid/avc1/762x270/u88GcvC9PJQsIjer.mp4?tag=29"
},
{
"bitrate": 832000,
"content_type": "video/mp4",
"url": "https://video.twimg.com/amplify_video/2103111134484291584/vid/avc1/1016x360/xujlSvOu1RF8h3j9.mp4?tag=29"
},
"… 1 more items in the full response"
]
}
]
},
"quotes": 0,
"replies": 0,
"retweets": 0,
"sensitive": false,
"source": "<a href=\"https://mobile.twitter.com\" rel=\"nofollow\">Twitter Web App</a>",
"text": "Who’s the better AI director? 🎬\n\nGPT-6 Astra vs DeepSeek V4.1 Flash\n\nBuild a bridge across a canyon. Follow a train into a future city as it lights up around you.\n\nTry both models and build your own video workflow on SandBase. https://t.co/NBXztAAHrm",
"tweet_id": "2103111277728182613",
"views": "181"
},
{
"author": {
"avatar": null,
"blue_verified": true,
"followers_count": null,
"name": null,
"rest_id": "2067551784084889600",
"screen_name": null
},
"bookmarks": 0,
"conversation_id": "2102797641008505055",
"created_at": "Wed Sep 23 16:30:00 +0000 2026",
"entities": [],
"favorites": 4,
"lang": "en",
"media": {
"video": [
{
"aspect_ratio": [
48,
17
],
"duration": 12000,
"id": "2102752194051350529",
"media_url_https": "https://pbs.twimg.com/amplify_video_thumb/2102752194051350529/img/3wJuXlEUjCVq90uc.jpg",
"original_info": {
"focus_rects": [],
"height": 680,
"width": 1920
},
"variants": [
{
"content_type": "application/x-mpegURL",
"url": "https://video.twimg.com/amplify_video/2102752194051350529/pl/g0c7L7hgZMjvz4Va.m3u8?tag=29"
},
{
"bitrate": 256000,
"content_type": "video/mp4",
"url": "https://video.twimg.com/amplify_video/2102752194051350529/vid/avc1/762x270/fuSq3kwDw68DIP5e.mp4?tag=29"
},
{
"bitrate": 832000,
"content_type": "video/mp4",
"url": "https://video.twimg.com/amplify_video/2102752194051350529/vid/avc1/1016x360/yB6E2rCPJJt1mrc3.mp4?tag=29"
},
"… 1 more items in the full response"
]
}
]
},
"quotes": 0,
"replies": 1,
"retweets": 0,
"sensitive": false,
"text": "GPT-6 Astra vs DeepSeek V4 Flash\n\nOne idea, two tiny robots.\n\n“A tiny robot moves sunlight to help a shaded plant.”\n\nDifferent shots, different storytelling. Side by side—which one gets your vote?\n\nBuild your own workflow with text and video models on SandBase.\n\nTry it 👇🏻 https://t.co/1UmB6hQ37W",
"tweet_id": "2102797641008505055",
"views": "95"
},
{
"author": {
"avatar": null,
"blue_verified": true,
"followers_count": null,
"name": null,
"rest_id": "2067551784084889600",
"screen_name": null
},
"bookmarks": 0,
"conversation_id": "2102797641008505055",
"created_at": "Wed Sep 23 16:30:00 +0000 2026",
"entities": [],
"favorites": 0,
"lang": "en",
"media": [],
"quotes": 0,
"replies": 0,
"reply_to": "2102797641008505055",
"retweets": 0,
"sensitive": null,
"text": "We used GPT-6 Astra and DeepSeek V4 Flash to wrte the video prompts, then generated both videos using MiniMax H3 on SandBase.\nSame reference image. Same video settings.",
"tweet_id": "2102797641759277167",
"views": "87"
},
"… 17 more items in the full response"
],
"user": {
"affiliates": [],
"avatar": "https://pbs.twimg.com/profile_images/2098059353198845952/u-EQDgXk_normal.jpg",
"blue_verified": true,
"business_account": [],
"created_at": "Thu Jun 18 10:22:00 +0000 2026",
"desc": "Agent infrastructure for building production AI agents. Sandboxed runtime, tools, models, and APIs for developers.",
"friends": 3,
"header_image": "https://pbs.twimg.com/profile_banners/2067551784084889600/1789051305",
"id": "2067551784084889600",
"location": "Global",
"media_count": 37,
"name": "SandBase",
"pinned_tweet_ids_str": [
"2075151551459651685"
],
"profile": "SandbaseAI",
"protected": false,
"rest_id": "2067551784084889600",
"status": "active",
"statuses_count": 97,
"sub_count": 150,
"verification_type": {
"is_identity_verified": false,
"reason": {
"description": {
"entities": [
{
"from_index": 69,
"ref": {
"url": "https://help.twitter.com/en/rules-and-policies/profile-labels",
"url_type": "ExternalUrl"
},
"to_index": 79
}
],
"text": "This account is verified because it's an official organization on X. Learn more"
},
"verified_since_msec": "1781782532448"
}
},
"website": "sandbase.ai"
}
}
}
]Wybierz przykład, aby wczytać jego dane wejściowe i wynik do playgroundu.
Returns a page of posts from one Twitter (X) user's timeline, plus the user's profile summary and the pinned post. Send a screen_name or a numeric rest_id to pick the account.
retweeted_tweet and quoted.curl -X POST "https://api.sandbase.ai/v1/api/twitter/web/user-post-tweet" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"screen_name": "elonmusk", "rest_id": 44196397}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
cursor | string | No | Cursor, default is None, used for paging, obtained from the JSON in the last request. |
rest_id | integer | No | User ID, for example: 44196397, if the user ID is used, the username will be ignored, only one of them can be selected. |
screen_name | string | No | Screen Name, for example: elonmusk, can be obtained from the user's homepage link, for example: elonmusk in https://twitter.com/elonmusk |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"next_cursor": "DAAHCgABHWL0Wy7__-oLAAIAAAATMjExNzI3MjgyNDgzMDIxMDM5MQgAAwAAAAIAAA",
"pinned": {
"author": {
"avatar": "https://pbs.twimg.com/profile_images/2103567689515954176/aR-Kjpp4_normal.jpg",
"blue_verified": true,
"followers_count": 241472218,
"name": "Elon Musk",
"rest_id": "44196397",
"screen_name": "elonmusk"
},
"bookmarks": 21300,
"conversation_id": "2116039632743702637",
"created_at": "Fri Oct 30 05:28:57 +0000 2026",
"favorites": 366432,
"lang": "en",
"media": [],
"quotes": 6905,
"replies": 41562,
"retweets": 69933,
"sensitive": null,
"source": null
},
"prev_cursor": "DAAHCgABHWL0Wy8AJxELAAIAAAATMjExNzQ4MjU3MDc1NzY1NjgzNggAAwAAAAEAAA",
"status": "ok",
"timeline": [
{
"author": {
"avatar": "https://pbs.twimg.com/profile_images/2103567689515954176/aR-Kjpp4_normal.jpg",
"blue_verified": true,
"followers_count": 241472218,
"name": "Elon Musk",
"rest_id": "44196397",
"screen_name": "elonmusk"
},
"bookmarks": 0,
"conversation_id": "2117482570757656836",
"created_at": "Tue Nov 03 05:02:40 +0000 2026",
"entities": {
"user_mentions": [
{
"id_str": "1082912120",
"name": "Jerry Tworek",
"screen_name": "MillionInt"
}
]
},
"favorites": 0,
"lang": "en",
"media": [],
"quotes": 0,
"replies": 0,
"retweeted": {
"id": "2117465116858052725"
},
"retweeted_tweet": {
"author": {
"avatar": "https://pbs.twimg.com/profile_images/1184690787419734016/7ija9HDY_normal.jpg",
"blue_verified": true,
"name": "Jerry Tworek",
"rest_id": "1082912120",
"screen_name": "MillionInt"
},
"bookmarks": 109,
"conversation_id": "2117465116858052725",
"created_at": "Tue Nov 03 03:53:19 +0000 2026",
"entities": [],
"favorites": 1182,
"lang": "en",
"media": []
}
}
],
"user": {
"affiliates": {
"label": {
"badge": {
"url": "https://pbs.twimg.com/profile_images/1955359038532653056/OSHY3ewP_bigger.jpg"
},
"description": "X",
"url": {
"url": "https://twitter.com/X",
"urlType": "DeepLink"
},
"userLabelDisplayType": "Badge",
"userLabelType": "BusinessLabel"
}
},
"avatar": "https://pbs.twimg.com/profile_images/2103567689515954176/aR-Kjpp4_normal.jpg",
"blue_verified": true,
"created_at": "Tue Jun 02 20:12:29 +0000 2009",
"desc": null,
"friends": null,
"header_image": null,
"id": "44196397",
"location": "",
"media_count": null,
"name": "Elon Musk",
"profile": "elonmusk"
}
}
| Field | Meaning |
|---|---|
timeline[] | The list of posts on this page. Each item is one post or repost from the user. |
timeline[].tweet_id | ID of the post, as a string. |
timeline[].text | Text of the post. Reposts start with RT @name: and the text may be cut short. |
timeline[].created_at | Time the post was created, in a format like Tue Nov 03 05:02:40 +0000 2026. |
timeline[].favorites / timeline[].retweets / timeline[].replies / timeline[].quotes / timeline[].bookmarks | Engagement counts for the post: likes, reposts, replies, quote posts and bookmarks. |
timeline[].views | View count of the post, returned as a string. |
timeline[].retweeted_tweet / timeline[].quoted | Details of the original post when the item is a repost or a quote post. Each holds the original author, counts and media. |
timeline[].author.screen_name / timeline[].author.followers_count | Handle and follower count of the account that wrote the post. |
pinned | The user's pinned post, with the same fields as an item in timeline. |
next_cursor / prev_cursor | Cursor values for paging to older and newer results. |
user.id / user.name / user.profile / user.created_at | Numeric ID, display name, handle and account creation time of the requested user. |
screen_name or rest_id. If you send both, rest_id is used and screen_name is ignored.next_cursor from the last response as cursor in the next request.screen_name from the profile link, for example elonmusk in https://twitter.com/elonmusk.tweet_id for one post, or Twitter (X) Tweet Comments for its replies.$0.001 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.
Zacznij tworzyć
Punkt końcowy API platformy z jednolitym uwierzytelnianiem i śledzeniem użycia.
curl -X POST "https://api.sandbase.ai/v1/api/twitter/web/user-post-tweet" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"rest_id": 44196397,
"screen_name": "sandbaseai"
}'Ustaw klucz API SandBase w środowisku serwera. Żądania używają uwierzytelniania Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Przechowuj klucz na serwerze. Nie ujawniaj go w kodzie przeglądarkowym.
cursorstringCursor, default is None, used for paging, obtained from the JSON in the last request.
rest_idintegerUser ID, for example: 44196397, if the user ID is used, the username will be ignored, only one of them can be selected.
screen_namestringScreen Name, for example: elonmusk, can be obtained from the user's homepage link, for example: elonmusk in https://twitter.com/elonmusk
Zapisany przykładowy response dla tego API; podczas wyświetlania nie jest wykonywane żadne żądanie na żywo.
[
{
"data": {
"next_cursor": "DAAHCgABHTPlXoP___ALAAIAAAATMjA5OTU3NTQzNjA2MTY2NzgyMQgAAwAAAAIAAA",
"pinned": {
"author": {
"avatar": null,
"blue_verified": true,
"followers_count": null,
"name": null,
"rest_id": "2067551784084889600",
"screen_name": null
},
"bookmarks": 5,
"conversation_id": "2075151551459651685",
"created_at": "Thu Jul 09 09:34:18 +0000 2026",
"favorites": 6,
"lang": "en",
"media": {
"photo": [
{
"id": "2075151531461238784",
"media_url_https": "https://pbs.twimg.com/media/HMxrUr_a4AAq4DX.jpg",
"sizes": {
"h": 1200,
"w": 670
}
},
{
"id": "2075151531477962752",
"media_url_https": "https://pbs.twimg.com/media/HMxrUsDaEAAUQd2.jpg",
"sizes": {
"h": 810,
"w": 1080
}
},
{
"id": "2075151531465408512",
"media_url_https": "https://pbs.twimg.com/media/HMxrUsAagAA_fLp.jpg",
"sizes": {
"h": 1200,
"w": 903
}
},
"… 1 more items in the full response"
]
},
"quotes": 0,
"replies": 0,
"retweets": 1,
"sensitive": false,
"source": "<a href=\"https://mobile.twitter.com\" rel=\"nofollow\">Twitter Web App</a>",
"text": "At GenAI Summit Paris 2026 with SandBaseAI.\nAgent demos are easy now.\nProduction agents are still hard.\nThe next infra layer is emerging around runtime, sandboxing, browser automation, MCP, tools, session, auth, and observability.\nThat’s what we’re building at SandBaseAI. https://t.co/n3sudqGB4S",
"tweet_id": "2075151551459651685",
"views": "667"
},
"prev_cursor": "DAAHCgABHTPlXoQAJxELAAIAAAATMjEwMzExMTI3NzcyODE4MjYxMwgAAwAAAAEAAA",
"status": "ok",
"timeline": [
{
"author": {
"avatar": null,
"blue_verified": true,
"followers_count": null,
"name": null,
"rest_id": "2067551784084889600",
"screen_name": null
},
"bookmarks": 0,
"conversation_id": "2103111277728182613",
"created_at": "Thu Sep 24 13:16:17 +0000 2026",
"entities": [],
"favorites": 3,
"lang": "en",
"media": {
"video": [
{
"aspect_ratio": [
48,
17
],
"duration": 29000,
"id": "2103111134484291584",
"media_url_https": "https://pbs.twimg.com/amplify_video_thumb/2103111134484291584/img/muuS95sRLxe-wIY_.jpg",
"original_info": {
"focus_rects": [],
"height": 680,
"width": 1920
},
"variants": [
{
"content_type": "application/x-mpegURL",
"url": "https://video.twimg.com/amplify_video/2103111134484291584/pl/1y6JKd_vBnPm_5hM.m3u8?tag=29"
},
{
"bitrate": 256000,
"content_type": "video/mp4",
"url": "https://video.twimg.com/amplify_video/2103111134484291584/vid/avc1/762x270/u88GcvC9PJQsIjer.mp4?tag=29"
},
{
"bitrate": 832000,
"content_type": "video/mp4",
"url": "https://video.twimg.com/amplify_video/2103111134484291584/vid/avc1/1016x360/xujlSvOu1RF8h3j9.mp4?tag=29"
},
"… 1 more items in the full response"
]
}
]
},
"quotes": 0,
"replies": 0,
"retweets": 0,
"sensitive": false,
"source": "<a href=\"https://mobile.twitter.com\" rel=\"nofollow\">Twitter Web App</a>",
"text": "Who’s the better AI director? 🎬\n\nGPT-6 Astra vs DeepSeek V4.1 Flash\n\nBuild a bridge across a canyon. Follow a train into a future city as it lights up around you.\n\nTry both models and build your own video workflow on SandBase. https://t.co/NBXztAAHrm",
"tweet_id": "2103111277728182613",
"views": "181"
},
{
"author": {
"avatar": null,
"blue_verified": true,
"followers_count": null,
"name": null,
"rest_id": "2067551784084889600",
"screen_name": null
},
"bookmarks": 0,
"conversation_id": "2102797641008505055",
"created_at": "Wed Sep 23 16:30:00 +0000 2026",
"entities": [],
"favorites": 4,
"lang": "en",
"media": {
"video": [
{
"aspect_ratio": [
48,
17
],
"duration": 12000,
"id": "2102752194051350529",
"media_url_https": "https://pbs.twimg.com/amplify_video_thumb/2102752194051350529/img/3wJuXlEUjCVq90uc.jpg",
"original_info": {
"focus_rects": [],
"height": 680,
"width": 1920
},
"variants": [
{
"content_type": "application/x-mpegURL",
"url": "https://video.twimg.com/amplify_video/2102752194051350529/pl/g0c7L7hgZMjvz4Va.m3u8?tag=29"
},
{
"bitrate": 256000,
"content_type": "video/mp4",
"url": "https://video.twimg.com/amplify_video/2102752194051350529/vid/avc1/762x270/fuSq3kwDw68DIP5e.mp4?tag=29"
},
{
"bitrate": 832000,
"content_type": "video/mp4",
"url": "https://video.twimg.com/amplify_video/2102752194051350529/vid/avc1/1016x360/yB6E2rCPJJt1mrc3.mp4?tag=29"
},
"… 1 more items in the full response"
]
}
]
},
"quotes": 0,
"replies": 1,
"retweets": 0,
"sensitive": false,
"text": "GPT-6 Astra vs DeepSeek V4 Flash\n\nOne idea, two tiny robots.\n\n“A tiny robot moves sunlight to help a shaded plant.”\n\nDifferent shots, different storytelling. Side by side—which one gets your vote?\n\nBuild your own workflow with text and video models on SandBase.\n\nTry it 👇🏻 https://t.co/1UmB6hQ37W",
"tweet_id": "2102797641008505055",
"views": "95"
},
{
"author": {
"avatar": null,
"blue_verified": true,
"followers_count": null,
"name": null,
"rest_id": "2067551784084889600",
"screen_name": null
},
"bookmarks": 0,
"conversation_id": "2102797641008505055",
"created_at": "Wed Sep 23 16:30:00 +0000 2026",
"entities": [],
"favorites": 0,
"lang": "en",
"media": [],
"quotes": 0,
"replies": 0,
"reply_to": "2102797641008505055",
"retweets": 0,
"sensitive": null,
"text": "We used GPT-6 Astra and DeepSeek V4 Flash to wrte the video prompts, then generated both videos using MiniMax H3 on SandBase.\nSame reference image. Same video settings.",
"tweet_id": "2102797641759277167",
"views": "87"
},
"… 17 more items in the full response"
],
"user": {
"affiliates": [],
"avatar": "https://pbs.twimg.com/profile_images/2098059353198845952/u-EQDgXk_normal.jpg",
"blue_verified": true,
"business_account": [],
"created_at": "Thu Jun 18 10:22:00 +0000 2026",
"desc": "Agent infrastructure for building production AI agents. Sandboxed runtime, tools, models, and APIs for developers.",
"friends": 3,
"header_image": "https://pbs.twimg.com/profile_banners/2067551784084889600/1789051305",
"id": "2067551784084889600",
"location": "Global",
"media_count": 37,
"name": "SandBase",
"pinned_tweet_ids_str": [
"2075151551459651685"
],
"profile": "SandbaseAI",
"protected": false,
"rest_id": "2067551784084889600",
"status": "active",
"statuses_count": 97,
"sub_count": 150,
"verification_type": {
"is_identity_verified": false,
"reason": {
"description": {
"entities": [
{
"from_index": 69,
"ref": {
"url": "https://help.twitter.com/en/rules-and-policies/profile-labels",
"url_type": "ExternalUrl"
},
"to_index": 79
}
],
"text": "This account is verified because it's an official organization on X. Learn more"
},
"verified_since_msec": "1781782532448"
}
},
"website": "sandbase.ai"
}
}
}
]Odkryj więcej
| API | Cena | Odpowiedź |
|---|---|---|
Twitter (X) User PostsTo API Twitter | $0.001 za wywołanie | JSON |
Twitter | $0.001 za wywołanie | JSON |
Twitter | $0.001 za wywołanie | JSON |
Twitter | $0.001 za wywołanie | JSON |
Twitter | $0.001 za wywołanie | JSON |
Twitter | $0.001 za wywołanie | JSON |
Przewodniki:X API alternative: pay per call, not per postBest Twitter API in 2026: X API Pricing Compared
Pytania
Wyślij żądanie POST do https://api.sandbase.ai/v1/api/twitter/web/user-post-tweet z kluczem API SandBase w nagłówku Authorization (Bearer) oraz parametrami w treści JSON. Możesz też wypróbować je w Playground na tej stronie bez pisania kodu.
$0.001 za wywołanie. Każda organizacja otrzymuje 100 bezpłatnych wywołań na dzień UTC, współdzielonych między kwalifikującymi się API SandBase, w tym to; potem każde wywołanie jest rozliczane według tej stawki z salda SandBase. Nie ma subskrypcji.
Nie są wymagane żadne parametry. Opcjonalne: cursor (string), rest_id (integer) i screen_name (string). Tabela Parameters oraz Playground na tej stronie zawierają wszystkie pola.
Odpowiedź JSON zwrócona w tym samym żądaniu HTTP (synchronicznie). README na tej stronie zawiera przykładową odpowiedź.
Nie. Twitter (X) User Posts działa przez SandBase, więc jeden klucz API SandBase obejmuje ten endpoint i każde inne API oraz model w katalogu. Nie musisz osobno ubiegać się o dostęp do API Twitter.