How to get Twitter / X community tweets
GET request to /v1/twitter/community-tweets with your input. You get clean JSON back in seconds for 2 credits per call — no OAuth, scraping or platform SDKs. Posts in an X Community — same 6-metric tweet shape as search. Flat 2 credits.How to get Twitter / X community tweets (step by step)
- 1
Get a free API key
Create a free Captapi account (100 credits, no card) and generate an API key from the dashboard.
- 2
Call the Twitter/X Community Tweets API
Send an authenticated GET request to /v1/twitter/community-tweets with your input. No OAuth, no scraping setup.
- 3
Read the JSON response
Parse the clean JSON response. Pass cache=true for a free 24h cache hit; default is always fresh.
Code example
curl "https://api.captapi.com/v1/twitter/community-tweets?url=https%3A%2F%2Fx.com%2Fi%2Fcommunities%2F1493446837214187523" \
-H "Authorization: Bearer capt_live_..."
# or: -H "x-api-key: capt_live_..."What the response looks like
{
"success": true,
"data": {
"communityId": "1493446837214187523",
"url": "https://x.com/i/communities/1493446837214187523",
"communityName": "Build in Public",
"memberCount": 269124,
"requested": 20,
"totalReturned": 2,
"listingHits": 20,
"hasMore": false,
"tweets": [
{
"platform": "twitter",
"url": "https://x.com/ericdjav/status/2109765624637333558",
"id": "2109765624637333558",
"text": "I launched an app 3 weeks ago...\n\nToday, I crossed $100 MRR 🥳 https://t.co/KhZHhcO9TZ",
"lang": "en",
"publishedAt": "2026-10-12T21:58:17.000Z",
"author": {
"username": "ericdjav",
"displayName": "Eric Djavid",
"url": "https://x.com/ericdjav",
"followers": 10056,
"verified": true,
"profileImage": "https://pbs.twimg.com/profile_images/2100598421983723522/d7Wp7Iuu_normal.jpg"
},
"isReply": false,
"isRetweet": false,
"isQuote": false,
"possiblySensitive": false,
"conversationId": "2109765624637333558",
"engagement": {
"likes": 303,
"replies": 137,
"retweets": 5,
"quotes": 0,
"views": 10692,
"bookmarks": 29
},
"hashtags": [],
"media": [
"https://pbs.twimg.com/media/HUdkhAfXMAEhug-.jpg"
]
},
{
"platform": "twitter",
"url": "https://x.com/ericdjav/status/2110415538325221673",
"id": "2110415538325221673",
"text": "I launched an app 3 weeks ago...\n\nWent to bed at $104.\n\nWoke up to $270 MRR 🎉 https://t.co/n5NwyDcNvs",
"lang": "en",
"publishedAt": "2026-10-14T17:00:48.000Z",
"author": {
"username": "ericdjav",
"displayName": "Eric Djavid",
"url": "https://x.com/ericdjav",
"followers": 10056,
"verified": true,
"profileImage": "https://pbs.twimg.com/profile_images/2100598421983723522/d7Wp7Iuu_normal.jpg"
},
"isReply": false,
"isRetweet": false,
"isQuote": false,
"possiblySensitive": false,
"conversationId": "2110415538325221673",
"engagement": {
"likes": 225,
"replies": 76,
"retweets": 1,
"quotes": 1,
"views": 7225,
"bookmarks": 36
},
"hashtags": [],
"media": [
"https://pbs.twimg.com/media/HUmzvu4WoAAbAE9.jpg"
]
}
]
}
}Billing metadata (credits charged, cache hit/miss) is returned in the X-Captapi-Credits and X-Captapi-Cache response headers.
Request parameters
| Name | Type | Required | Description |
|---|---|---|---|
| url | string | Yes | 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. |
| limit | integer | No | Max items to return (default 25, max 200). Flat 2 credits per call. |
| cache | boolean | No | Set true to serve from the 24h response cache (0 credits on hit). Default false — always fetch fresh. |
Frequently asked questions
What does the Twitter/X Community Tweets API do?
The Twitter/X Community Tweets API lets you list items in bulk with metadata from a public Twitter / X tweet using one GET request to /v1/twitter/community-tweets. It returns clean JSON — no OAuth or infrastructure setup required.
How many credits does the Twitter/X Community Tweets API cost?
Each successful call costs 2 credits. Pass cache=true to serve from the 24h cache (0 credits on hit); default is always fresh. Selected profile endpoints also accept cacheMaxAge=1d|3d|7d|14d|30d. Failed or empty results are never charged.
Do I need a Twitter / X API key or OAuth?
No. A single Captapi key works across every platform Captapi supports — YouTube, TikTok, Instagram, Facebook, Twitter/X, Reddit, Threads, Bluesky, Pinterest, LinkedIn, Rumble, Spotify, Kwai, and more. We handle access, rate limits, retries, and authentication for you.
Is the Twitter/X Community Tweets API suitable for production use?
Yes. It is a stable REST endpoint with predictable JSON and automatic retries. Pass cache=true to serve from the 24h cache (0 credits on hit); default is always fresh. Selected profile endpoints also accept cacheMaxAge=1d|3d|7d|14d|30d. Use it for analytics, monitoring, and content automation.
Ready to get Twitter / X community tweets?
Start free with 100 credits — no credit card required.
Get your free API key