restIdstring필수
The unique numeric identifier (Rest ID) for the X user.
https://api.sandbase.ai/v1/api/twitter/user-postsGet posts published by an X (Twitter) user identified by Rest ID, with cursor pagination. Use it to browse a known account's timeline or continue through its public post history.
출력이 여기에 표시됩니다
입력을 완료한 다음 Run을 클릭하세요.
Returns recent posts published by an X (Twitter) account, plus the account's pinned post and basic profile data. It needs the numeric restId of the user and supports cursor pagination.
next_cursor.curl -X POST "https://api.sandbase.ai/v1/api/twitter/user-posts" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"restId": "44196397"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
restId | string | Yes | The unique numeric identifier (Rest ID) for the X user. |
cursor | string | No | Pagination cursor for navigating through long timelines. |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"next_cursor": "DAAHCgABHWL0Tx3__-oLAAIAAAATMjExNzI3MjgyNDgzMDIxMDM5MQgAAwAAAAIAAA",
"pinned": {
"author": {
"avatar": "https://pbs.twimg.com/profile_images/2103567689515954176/aR-Kjpp4_normal.jpg",
"blue_verified": true,
"followers_count": 241472215,
"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": 366430,
"lang": "en",
"media": [],
"quotes": 6905,
"replies": 41562,
"retweets": 69932,
"sensitive": null,
"source": null
},
"prev_cursor": "DAAHCgABHWL0Tx4AJxELAAIAAAATMjExNzQ4MjU3MDc1NzY1NjgzNggAAwAAAAEAAA",
"status": "ok",
"timeline": [
{
"author": {
"avatar": "https://pbs.twimg.com/profile_images/2103567689515954176/aR-Kjpp4_normal.jpg",
"blue_verified": true,
"followers_count": 241472215,
"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[] | List of posts on the account's timeline, newest first. Includes original posts, retweets and quote posts. |
timeline[].tweet_id / timeline[].conversation_id | ID of the post and ID of the conversation it belongs to. Both are numeric strings. |
timeline[].text / timeline[].created_at / timeline[].lang | Post text, creation time (for example Tue Nov 03 05:02:40 +0000 2026) and language code. |
timeline[].favorites / timeline[].retweets / timeline[].replies / timeline[].quotes / timeline[].bookmarks | Engagement counts for the post. |
timeline[].views | View count for the post, returned as a string. |
timeline[].retweeted_tweet / timeline[].quoted | Original post details when the item is a retweet (retweeted_tweet) or a quote post (quoted). Each has its own author, counts and media. |
timeline[].author.screen_name / timeline[].author.rest_id / timeline[].author.followers_count | Handle, Rest ID and follower count of the account that published the post. |
pinned | The account's pinned post, with the same fields as a timeline[] item. |
user.name / user.profile / user.id / user.created_at | Display name, handle, Rest ID and account creation time of the requested user. |
next_cursor / prev_cursor | Cursor values for the next and previous page of the timeline. |
restId is the numeric user ID, such as 44196397. Get it from the rest_id field of a profile call like Twitter User Profile.next_cursor from the response as cursor with the same restId.user, such as desc, friends and statuses_count, can be null. Use Twitter User Profile for full profile data.tweet_id to Twitter Post Detail.$0.014286 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.
빌드를 시작하세요
통합 인증 및 사용량 추적이 있는 플랫폼 API 엔드포인트입니다.
curl -X POST "https://api.sandbase.ai/v1/api/twitter/user-posts" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"restId": "44196397"
}'서버 환경에 SandBase API 키를 설정하세요. 요청에는 Bearer 인증이 사용됩니다.
export SANDBASE_API_KEY="YOUR_API_KEY"키는 서버에 보관하세요. 브라우저 코드에 노출하지 마세요.
restIdstring필수The unique numeric identifier (Rest ID) for the X user.
cursorstringPagination cursor for navigating through long timelines.
이 API의 저장된 예시 응답입니다. 확인할 때 라이브 요청은 실행되지 않습니다.
저장된 응답이 게시되지 않았습니다. Playground에서 API를 실행해 응답을 확인하세요.
더 살펴보기
| API | 가격 | 응답 |
|---|---|---|
Twitter | $0.014286 / 호출 | JSON |
X (Twitter) | 호출당 $0.00054부터 | JSON |
Twitter | 호출당 $0.0006부터 | 비동기 JSON |
X (Twitter) | 호출당 $0.0001부터 | JSON |
X (Twitter) | 호출당 $0.0036부터 | JSON |
X (Twitter) | 호출당 $0.00045부터 | JSON |
가이드:X API alternative: pay per call, not per postBest Twitter API in 2026: X API Pricing Compared
질문
Authorization 헤더(Bearer)에 SandBase API 키를 넣고, 매개변수를 JSON 본문으로 담아 https://api.sandbase.ai/v1/api/twitter/user-posts에 POST 요청을 보내세요. 이 페이지의 Playground에서도 코드를 작성하지 않고 직접 테스트할 수 있습니다.
호출당 $0.014286, SandBase 잔액에서 청구됩니다. 사용한 호출에 대해서만 요금이 부과되며, 구독은 없습니다.
필수: restId (string). 선택: cursor (string). 이 페이지의 Parameters 표와 Playground에 모든 필드가 나와 있습니다.
같은 HTTP 요청에서 반환되는 JSON 응답입니다(동기식). 이 페이지의 README에 샘플 응답이 포함되어 있습니다.
아니요. Twitter User Published Posts은 SandBase를 통해 실행되므로, SandBase API 키 하나로 이 엔드포인트와 카탈로그의 다른 모든 API 및 모델을 사용할 수 있습니다. Twitter API 액세스를 별도로 신청할 필요는 없습니다.