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": 264133,
"totalReturned": 5,
"tweets": [
{
"platform": "twitter",
"url": "https://x.com/FilipPanoski/status/2082466198495662562",
"id": "2082466198495662562",
"text": "a little over a year ago: $0 MRR, no customers, 10 followers.\n\ntoday: $7k MRR, 70+ customers, 3k followers.\n\nnot the smartest or fastest founder.\njust consistent. https://t.co/9BmKeqbcNi",
"lang": "en",
"publishedAt": "2026-07-29T14:00:06.000Z",
"author": {
"username": "FilipPanoski",
"displayName": "Filip Panoski",
"url": "https://x.com/FilipPanoski",
"followers": 3584,
"verified": true,
"profileImage": "https://pbs.twimg.com/profile_images/1842181486587297792/Ia5ilmNs_normal.jpg"
},
"isReply": false,
"isRetweet": false,
"isQuote": false,
"possiblySensitive": false,
"conversationId": "2082466198495662562",
"engagement": {
"views": 27877,
"likes": 339,
"replies": 108,
"retweets": 5,
"quotes": 3,
"bookmarks": 131
},
"hashtags": [],
"media": [
"https://pbs.twimg.com/media/HOZn-JwXcAASz1f.png"
]
},
{
"platform": "twitter",
"url": "https://x.com/ericdjav/status/2082216601059770771",
"id": "2082216601059770771",
"text": "I launched my first app in 2026...\n\nToday, I finally crossed $10k revenue with it 🎊 https://t.co/hziIEliJn1",
"lang": "en",
"publishedAt": "2026-07-28T21:28:18.000Z",
"author": {
"username": "ericdjav",
"displayName": "Eric Djavid",
"url": "https://x.com/ericdjav",
"followers": 9792,
"verified": true,
"profileImage": "https://pbs.twimg.com/profile_images/1884705640246915072/4Y39VboE_normal.jpg"
},
"isReply": false,
"isRetweet": false,
"isQuote": false,
"possiblySensitive": false,
"conversationId": "2082216601059770771",
"engagement": {
"views": 10720,
"likes": 319,
"replies": 94,
"retweets": 5,
"quotes": 1,
"bookmarks": 36
},
"hashtags": [],
"media": [
"https://pbs.twimg.com/media/HOWE9npXQAAqfUH.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. Envelope includes cached + cachedAt on hits. |
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. Hits include cached + cachedAt. 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 proxies, 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. Hits include cached + cachedAt. 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