Twitter/X Community Tweets API
Posts in an X Community — same 6-metric tweet shape as search.
Pass an X community URL (x.com/i/communities/ID) or community ID — not a tweet/status URL — and get recent posts as clean JSON. Response includes url + communityId + communityName + memberCount (so you often skip a second Community call) plus the listing-window envelope (requested / listingHits / hasMore / truncatedReason=listing-window). There is no cursor — hasMore means raise limit. tweets[] use the shared contract: ISO-8601 publishedAt, engagement{views,likes,replies,retweets,quotes,bookmarks}, isReply / isRetweet / isQuote, hashtags[], media[]. Flat 2 credits (same guest GraphQL surface as Search). Pass cache=true for the 24h shared cache.
Request
- Base URL: https://api.captapi.com
- URL: https://api.captapi.com/v1/twitter/community-tweets
- Auth: one of:
- HTTP bearer
- API key in header X-API-Key
Query parameters
X community URL (x.com/i/communities/ID) or community ID — not a tweet/status URL. The URL platform must match this endpoint's platform. Do not pass cross-platform URLs, e.g. YouTube to TikTok, Instagram to Facebook, LinkedIn to X/Twitter, or Pinterest to Rumble.
Max items to return (default 25, max 200). Flat 2 credits per call.
Set true to serve from the 24h response cache (0 credits on hit). Default false — always fetch fresh.
Response
Success. The data object for this endpoint.
Changes
No recorded changes to this operation across all 3 revisions of this API.