API ReferenceX
Get community
Get an X community's details and recent posts in one call.
Fans out to two upstream calls internally (details, then recent posts).
Cost: 2 credits per successful call.
Authorization
ApiKeyAuth X-API-Key<token>
Required on every request. Keys are issued manually during early access, see Authentication.
In: header
Query Parameters
id*string
The community ID.
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
curl -X GET "https://example.com/v1/x/community?id=1493446837214187523"{ "success": true, "platform": "x", "data": { "id": "1493446837214187523", "name": "Build in Public", "description": "Share what you're working on. Get feedback. Help each other move forward. – Sponsored by bolt.new ⚡", "member_count": 267427, "posts": [ { "id": "2102173530553032851", "text": "bought a 30g pack of cocoa krispies a few times. anyway i just carried a 1kg bag to checkout. never expected to end up buying cocoa krispies at all.\n\nbe like cocoa krispies on @RevenueCat", "likes": 0, "comments": 0 } ] }, "meta": { "credits_used": 2 }}