Twitter / X
GET /v1/twitter/community-tweets

Twitter/X Community Tweets API

Posts in an X Community — same 6-metric tweet shape as search. Flat 2 credits.

2 credits per request
TL;DR
Posts in an X Community — same 6-metric tweet shape as search. Flat 2 credits. The Twitter/X Community Tweets API (Twitter / X) is a single authenticated GET request to /v1/twitter/community-tweets that responds with clean JSON and costs 2 credits. Pass cache=true for a free 24h cache hit; default is always fresh. Start with 100 free credits — no credit card.

What is the Twitter/X Community Tweets API?

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 tweets[] using the shared contract: ISO-8601 publishedAt, engagement{views,likes,replies,retweets,quotes,bookmarks}, hashtags[], media[]. Flat 2 credits (same guest surface as Search). Pass cache=true for the 24h shared cache.

What you get

  • communityName + memberCount + community url/id
  • Same engagement 6-key shape + ISO publishedAt as search
  • Flat 2 credits
  • hashtags[] + media[] always present on each tweet

Try it

Open in Playground

Fill in the parameters below and copy a ready-to-run request, or open the live Playground to run it against your account (no API key paste).

Parameters

Sign in to run live
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_..."

Edit the parameters and the code updates instantly. Switch languages and hit copy.

Example response

{
  "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 is returned in response headers: X-Captapi-Credits (credits charged), X-Captapi-Cache (hit or miss), and X-Captapi-Source. Failed requests (4xx/5xx) are never charged. See the full list of error codes in the error reference.

Response structure

A successful call returns success, cached, creditsUsed, and a data object with the following fields:

Top-level fields

  • communityIdCommunity id. Example: "1493446837214187523".
  • urlCanonical URL of the item.
  • communityNameDisplay name of the X Community.
  • memberCountHow many members the community has (same signal as /community).
  • totalReturnedNumber of items returned in this response.

Tweets

Each item in tweets contains:

  • platformPlatform identifier for this response (matches the endpoint's platform).
  • urlCanonical URL of the item.
  • idStable platform ID for the item.
  • textText content.
  • langLanguage code of the content.
  • publishedAtTweet publish time as ISO-8601 UTC.
  • authorAuthor name or handle.
  • isReplyWhether the tweet is a reply.
  • isRetweetWhether the tweet is a retweet.
  • isQuoteIs quote. Example: false.
  • possiblySensitivePossibly sensitive. Example: false.
  • conversationIdConversation id. Example: "2082466198495662562".
  • engagementEngagement metrics for the item.
  • hashtagsHashtags extracted from the text.
  • mediaMedia attached to the item.

Parameters

NameTypeRequiredDescription
urlstringYesX 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.
limitintegerNoMax items to return (default 25, max 200). Flat 2 credits per call.
cachebooleanNoSet true to serve from the 24h response cache (0 credits on hit). Default false — always fetch fresh. Envelope includes cached + cachedAt on hits.

Authentication: send your key as Authorization: Bearer capt_live_.... A typical call costs 2 credits. Pass cache=true for a free 24h cache hit; default is always fresh.

Using an AI agent? This endpoint is the MCP tool twitter_community_tweets via @captapi/mcp. Set it up →

How it works

  1. 1. Sign up — get 100 free credits, no card required.
  2. 2. Create a key from your dashboard.
  3. 3. Send one request to /v1/twitter/community-tweets and parse the JSON response.

Use cases

Discovery

Surface items matching a topic, tag, sound, or trend query.

Monitoring

Watch a list feed over time for new activity.

Research

Sample structured list results for analysis.

Pipelines

Ingest list results into your own store or CRM.

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.

More Twitter / X APIs

Ready to use the Twitter/X Community Tweets API?

Sign up, grab your key, and make your first call in 60 seconds.