Get community posts — X API
Returns public posts from an X community timeline.
GET
/v1/x/communities/{communityId}/posts1 credit per requestExample response200OK
{
"data": {
"@context": [
"https://www.w3.org/ns/activitystreams#",
"https://konbiniapi.com/ns/social#"
],
"type": "OrderedCollectionPage",
"partOf": "https://api.konbiniapi.com/v1/x/communities/1669501013441806336/posts",
"totalItems": null,
"cursor": null,
"nextCursor": "DAABCgABHOkX2xF__-8LAAIAAAATMj",
"next": "https://api.konbiniapi.com/v1/x/communities/1669501013441806336/posts?cursor=DAABCgABHOkX2xF__-8LAAIAAAATMj&count=40",
"itemCount": 30,
"orderedItems": [
{
"permission": {
"comment": "members"
},
"type": "Note",
"id": "https://x.com/elonmusk/status/2110913107094606330",
"url": "https://x.com/elonmusk/status/2110913107094606330",
"entityId": "2110913107094606330",
"content": "Turns out the future does have flying cars https://t.co/6fexPp6SXI",
"published": "2026-10-16T01:57:58.000Z",
"likeCount": 824681,
"replyCount": 46110,
"viewCount": 73268619,
"repostCount": 99345,
"quoteCount": 32050,
"saveCount": 63751,
"contentFormat": "post",
"language": "en",
"isAdult": false,
"isEdited": false,
"attributedTo": {
"type": "Person",
"id": "https://x.com/elonmusk",
"url": "https://x.com/elonmusk",
"entityId": "44196397",
"preferredUsername": "elonmusk",
"name": "Elon Musk",
"icon": {
"type": "Image",
"url": "https://pbs.twimg.com/amplify_video_thumb/2110913027490934784/img/Ya3Xqn9K4XmCb-h5.jpg",
"name": "Starship lifting off",
"summary": "Starship on the launch pad at Starbase",
"status": "Dmcaed",
"tag": [
{
"type": "Tag",
"name": "Starship",
"href": "https://x.com/hashtag/Starship",
"startIndex": 3,
"endIndex": 7
}
],
"width": 1920,
"height": 1080
},
"role": "Member",
"isPrivate": false,
"isVerified": false,
"isPaidVerified": true,
"summary": "https://t.co/ZdBx5WABYx",
"attachment": [
{
"type": "Link",
"href": "http://Terafab.AI",
"rel": "preferred"
}
],
"affiliation": {
"name": "NASA"
},
"withheldIn": [
"IN"
],
"followerCount": 241511987,
"followingCount": 1420,
"likeCount": 253904,
"postCount": 110457,
"mediaCount": 4741,
"listedCount": 171022,
"location": "Austin, Texas"
},
"inReplyTo": "https://x.com/elonmusk/status/1519480761749016577",
"context": {
"type": "Note",
"id": "https://x.com/elonmusk/status/2110913107094606330",
"url": "https://x.com/elonmusk/status/2110913107094606330",
"entityId": "2110913107094606330"
},
"audience": {
"type": "Group",
"id": "https://x.com/i/communities/1669501013441806336",
"url": "https://x.com/i/communities/1669501013441806336",
"entityId": "1669501013441806336",
"name": "Memes"
},
"quote": {
"permission": {
"comment": "members"
},
"type": "Note",
"id": "https://x.com/elonmusk/status/2110913107094606330",
"url": "https://x.com/elonmusk/status/2110913107094606330",
"entityId": "2110913107094606330",
"content": "Turns out the future does have flying cars https://t.co/6fexPp6SXI",
"published": "2026-10-16T01:57:58.000Z",
"likeCount": 824681,
"replyCount": 46110,
"viewCount": 73268619,
"repostCount": 99345,
"quoteCount": 32050,
"saveCount": 63751,
"contentFormat": "post",
"language": "en",
"isAdult": false,
"isEdited": false,
"attributedTo": {
"type": "Person",
"id": "https://x.com/elonmusk",
"url": "https://x.com/elonmusk",
"entityId": "44196397",
"preferredUsername": "elonmusk",
"name": "Elon Musk",
"icon": {
"type": "Image",
"url": "https://pbs.twimg.com/amplify_video_thumb/2110913027490934784/img/Ya3Xqn9K4XmCb-h5.jpg",
"name": "Starship lifting off",
"summary": "Starship on the launch pad at Starbase",
"status": "Dmcaed",
"tag": [
{
"type": "Tag",
"name": "Starship",
"href": "https://x.com/hashtag/Starship",
"startIndex": 3,
"endIndex": 7
}
],
"width": 1920,
"height": 1080
},
"role": "Member",
"isPrivate": false,
"isVerified": false,
"isPaidVerified": true,
"summary": "https://t.co/ZdBx5WABYx",
"attachment": [
{
"type": "Link",
"href": "http://Terafab.AI",
"rel": "preferred"
}
],
"affiliation": {
"name": "NASA"
},
"withheldIn": [
"IN"
],
"followerCount": 241511987,
"followingCount": 1420,
"likeCount": 253904,
"postCount": 110457,
"mediaCount": 4741,
"listedCount": 171022,
"location": "Austin, Texas"
},
"inReplyTo": "https://x.com/elonmusk/status/1519480761749016577",
"context": {
"type": "Note",
"id": "https://x.com/elonmusk/status/2110913107094606330",
"url": "https://x.com/elonmusk/status/2110913107094606330",
"entityId": "2110913107094606330"
},
"audience": {
"type": "Group",
"id": "https://x.com/i/communities/1669501013441806336",
"url": "https://x.com/i/communities/1669501013441806336",
"entityId": "1669501013441806336",
"name": "Memes"
},
"image": [
{
"type": "Image",
"url": "https://pbs.twimg.com/amplify_video_thumb/2110913027490934784/img/Ya3Xqn9K4XmCb-h5.jpg",
"name": "Starship lifting off",
"summary": "Starship on the launch pad at Starbase",
"status": "Dmcaed",
"tag": [
{
"type": "Tag",
"name": "Starship",
"href": "https://x.com/hashtag/Starship",
"startIndex": 3,
"endIndex": 7
}
],
"width": 1920,
"height": 1080
}
],
"attachment": [
{
"type": "Video",
"url": [
"https://video.twimg.com/amplify_video/2110913027490934784/vid/avc1/480x270/-5TS0Hah7_RnCNYX.mp4?tag=29"
],
"mediaType": "video/mp4",
"width": 1920,
"height": 1080,
"name": "Starship lifting off",
"summary": "Starship on the launch pad at Starbase",
"status": "Dmcaed",
"tag": [
{
"type": "Tag",
"name": "Starship",
"href": "https://x.com/hashtag/Starship",
"startIndex": 3,
"endIndex": 7
}
],
"bitrate": 10368000,
"duration": 15.395
}
],
"tag": [
{
"type": "Tag",
"name": "Starship",
"href": "https://x.com/hashtag/Starship",
"startIndex": 3,
"endIndex": 7
}
],
"generator": {
"type": "Application",
"name": "Twitter for iPhone",
"url": "https://help.x.com/en/using-x/how-to-post"
}
},
"image": [
{
"type": "Image",
"url": "https://pbs.twimg.com/amplify_video_thumb/2110913027490934784/img/Ya3Xqn9K4XmCb-h5.jpg",
"name": "Starship lifting off",
"summary": "Starship on the launch pad at Starbase",
"status": "Dmcaed",
"tag": [
{
"type": "Tag",
"name": "Starship",
"href": "https://x.com/hashtag/Starship",
"startIndex": 3,
"endIndex": 7
}
],
"width": 1920,
"height": 1080
}
],
"attachment": [
{
"type": "Video",
"url": [
"https://video.twimg.com/amplify_video/2110913027490934784/vid/avc1/480x270/-5TS0Hah7_RnCNYX.mp4?tag=29"
],
"mediaType": "video/mp4",
"width": 1920,
"height": 1080,
"name": "Starship lifting off",
"summary": "Starship on the launch pad at Starbase",
"status": "Dmcaed",
"tag": [
{
"type": "Tag",
"name": "Starship",
"href": "https://x.com/hashtag/Starship",
"startIndex": 3,
"endIndex": 7
}
],
"bitrate": 10368000,
"duration": 15.395
}
],
"tag": [
{
"type": "Tag",
"name": "Starship",
"href": "https://x.com/hashtag/Starship",
"startIndex": 3,
"endIndex": 7
}
],
"generator": {
"type": "Application",
"name": "Twitter for iPhone",
"url": "https://help.x.com/en/using-x/how-to-post"
}
}
]
}
}Make the request.
One authenticated GET to /v1/x/communities/{communityId}/posts. Authentication and error conventions stay consistent across endpoints. This page shows the path, parameters, response shape, limits, and credit rule for this operation.
Built for
- Data Analytics
- Market Research
- Platform Integration
const response = await fetch("https://api.konbiniapi.com/v1/x/communities/1669501013441806336/posts", {
headers: { "Authorization": "Bearer YOUR_API_KEY" }
});
const data = await response.json();
Parameters3
ParameterInTypeNotes
- communityIdrequiredIn · PathType · stringX community ID
- countIn · QueryType · integerMaximum number of posts to return from the community timeline (maximum: 100)1–100default 40
- cursorIn · QueryType · stringPagination cursor
What you will probably call next.
The X endpoints around this one — the same object at a different depth, or the same kind of read.
Try it on your own data.
Get a free API key and make this request in minutes. Failed and timed-out requests are automatically refunded.